	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wakeup_dma_ir_ctx
_wakeup_dma_ir_ctx:                     ## @wakeup_dma_ir_ctx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	addq	$24, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.1:
	leaq	28(%r12), %r15
	xorl	%ebx, %ebx
	movq	_VIDEO1394_BUFFER_READY@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movslq	4(%r12), %rcx
	movl	-4(%rax,%rcx,4), %r14d
	movl	$-65536, %edi                   ## imm = 0xFFFF0000
	callq	_cpu_to_le32
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_reset_ir_status
	movl	(%r13), %eax
	movq	8(%r12), %rcx
	movq	40(%r12), %rdx
	movq	(%rcx,%rbx,8), %rdi
	movl	%eax, (%rdx,%rdi,4)
	shlq	$2, %rdi
	addq	32(%r12), %rdi
	callq	_do_gettimeofday
	movq	8(%r12), %rax
	movl	16(%r12), %edx
	movl	(%rax,%rbx,8), %esi
	imull	%edx, %esi
	movq	%r15, %rdi
	callq	_dma_region_sync_for_cpu
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	addq	$20, %r12
	movq	%r12, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO1394_BUFFER_READY,4,2     ## @VIDEO1394_BUFFER_READY
	.no_dead_strip	_wakeup_dma_ir_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wakeup_dma_ir_ctx
_wakeup_dma_ir_ctx:                     ; @wakeup_dma_ir_ctx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	add	x22, x19, #28
Lloh0:
	adrp	x23, _VIDEO1394_BUFFER_READY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VIDEO1394_BUFFER_READY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x21, lsl #3]
	ldrsw	x9, [x19, #4]
	add	x8, x8, x9, lsl #2
	ldur	w24, [x8, #-4]
	mov	w0, #-65536
	bl	_cpu_to_le32
	tst	w0, w24
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_reset_ir_status
	ldr	w8, [x23]
	ldr	x9, [x19, #8]
	lsl	x24, x21, #3
	ldr	x9, [x9, x24]
	lsl	x9, x9, #2
	ldp	x11, x10, [x19, #32]
	str	w8, [x10, x9]
	add	x0, x11, x9
	bl	_do_gettimeofday
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x24]
	ldr	w2, [x19, #16]
	mul	w1, w2, w8
	mov	x0, x22
	bl	_dma_region_sync_for_cpu
	b	LBB0_2
LBB0_5:
	mov	x0, x20
	bl	_spin_unlock
	add	x19, x19, #20
	mov	x0, x19
	bl	_waitqueue_active
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wake_up_interruptible
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO1394_BUFFER_READY,4,2     ; @VIDEO1394_BUFFER_READY
	.no_dead_strip	_wakeup_dma_ir_ctx
.subsections_via_symbols
