	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function initialize_dma_ir_ctx
_initialize_dma_ir_ctx:                 ## @initialize_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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	32(%rdi), %r14
	movl	%edx, (%rdi)
	movl	24(%rdi), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ohci1394_stop_context
	cmpl	$0, 4(%r13)
	jle	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_initialize_dma_ir_prg
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_reset_ir_status
	incl	%ebx
	cmpl	4(%r13), %ebx
	jl	LBB0_1
LBB0_2:
	movl	24(%r13), %esi
	movq	%r14, %rdi
	movl	$-268435456, %edx               ## imm = 0xF0000000
	callq	_reg_write
	movl	20(%r13), %esi
	movq	%r14, %rdi
	movl	$-2147483648, %edx              ## imm = 0x80000000
	callq	_reg_write
	movq	_VIDEO1394_INCLUDE_ISO_HEADERS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	20(%r13), %esi
	movq	%r14, %rdi
	movl	$1073741824, %edx               ## imm = 0x40000000
	callq	_reg_write
LBB0_4:
	movl	16(%r13), %esi
	andl	$15, %r15d
	shll	$8, %r15d
	orl	8(%r13), %r15d
	orl	$-268435456, %r15d              ## imm = 0xF0000000
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_reg_write
	movq	_OHCI1394_IsoRecvIntMaskSet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movb	12(%r13), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reg_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEO1394_INCLUDE_ISO_HEADERS,4,2 ## @VIDEO1394_INCLUDE_ISO_HEADERS
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ## @OHCI1394_IsoRecvIntMaskSet
	.no_dead_strip	_initialize_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 initialize_dma_ir_ctx
_initialize_dma_ir_ctx:                 ; @initialize_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	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #32]
	str	w2, [x0]
	ldr	w1, [x0, #24]
	mov	x0, x19
	mov	x2, #0
	bl	_ohci1394_stop_context
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_initialize_dma_ir_prg
	mov	x0, x20
	mov	x1, x23
	bl	_reset_ir_status
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w1, [x20, #24]
	mov	x0, x19
	mov	w2, #-268435456
	bl	_reg_write
	ldr	w1, [x20, #20]
	mov	x0, x19
	mov	w2, #-2147483648
	bl	_reg_write
Lloh0:
	adrp	x8, _VIDEO1394_INCLUDE_ISO_HEADERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEO1394_INCLUDE_ISO_HEADERS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	w1, [x20, #20]
	mov	x0, x19
	mov	w2, #1073741824
	bl	_reg_write
LBB0_5:
	ldr	w1, [x20, #16]
	ubfiz	w8, w21, #8, #4
	ldr	w9, [x20, #8]
	orr	w8, w8, w9
	orr	w2, w8, #0xf0000000
	mov	x0, x19
	bl	_reg_write
Lloh3:
	adrp	x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OHCI1394_IsoRecvIntMaskSet@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w8, [x20, #12]
	mov	w9, #1
	lsl	w2, w9, w8
	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	_reg_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEO1394_INCLUDE_ISO_HEADERS,4,2 ; @VIDEO1394_INCLUDE_ISO_HEADERS
	.comm	_OHCI1394_IsoRecvIntMaskSet,4,2 ; @OHCI1394_IsoRecvIntMaskSet
	.no_dead_strip	_initialize_dma_ir_ctx
.subsections_via_symbols
