	.file	"extr_dvd.c_DVD_SetGCMOffset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DVD_SetGCMOffset
	.type	DVD_SetGCMOffset, @function
DVD_SetGCMOffset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR __dvd_setgcmsynccb[rip]
	call	DVD_SetGCMOffsetAsync@PLT
	xor	edi, edi
	call	_CPU_ISR_Disable@PLT
.L4:
	mov	eax, DWORD PTR [rbx]
	lea	edx, 1[rax]
	cmp	edx, 1
	jbe	.L5
	cmp	eax, 10
	jne	.L3
	mov	r12d, DWORD PTR 4[rbx]
.L2:
	xor	edi, edi
	call	_CPU_ISR_Restore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, -1
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR __dvd_wait_queue[rip]
	call	LWP_ThreadSleep@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	DVD_SetGCMOffset, .-DVD_SetGCMOffset
	.comm	__dvd_wait_queue,4,4
	.comm	__dvd_setgcmsynccb,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_dvd.c_DVD_SetGCMOffset.c"
	.text
	.align	2
	.global	DVD_SetGCMOffset
	.syntax unified
	.arm
	.fpu softvfp
	.type	DVD_SetGCMOffset, %function
DVD_SetGCMOffset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	push	{r4, r5, r6, lr}
	ldr	r2, [r3]
	mov	r4, r0
	bl	DVD_SetGCMOffsetAsync
	mov	r0, #0
	bl	_CPU_ISR_Disable
	ldr	r5, .L8+4
.L4:
	ldr	r3, [r4]
	add	r2, r3, #1
	cmp	r2, #1
	bls	.L5
	cmp	r3, #10
	bne	.L3
	ldr	r4, [r4, #4]
.L2:
	mov	r0, #0
	bl	_CPU_ISR_Restore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r4, #0
	b	.L2
.L3:
	ldr	r0, [r5]
	bl	LWP_ThreadSleep
	b	.L4
.L9:
	.align	2
.L8:
	.word	__dvd_setgcmsynccb
	.word	__dvd_wait_queue
	.size	DVD_SetGCMOffset, .-DVD_SetGCMOffset
	.comm	__dvd_wait_queue,4,4
	.comm	__dvd_setgcmsynccb,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
