	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ohci_enable_phys_dma
_ohci_enable_phys_dma:                  ## @ohci_enable_phys_dma
	.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, %r13d
	callq	_fw_ohci
	movq	%rax, %r15
	movq	_param_remote_dma@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	%r15, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r12d, (%r15)
	jne	LBB0_2
## %bb.3:
	movl	%r13d, %eax
	andl	$65472, %eax                    ## imm = 0xFFC0
	movq	_LOCAL_BUS@GOTPCREL(%rip), %rcx
	andl	$63, %r13d
	cmpl	(%rcx), %eax
	movl	$63, %eax
	cmovel	%r13d, %eax
	movl	%eax, %ecx
	subl	$32, %ecx
	movq	_OHCI1394_PhyReqFilterHiSet@GOTPCREL(%rip), %rdx
	cmovbq	_OHCI1394_PhyReqFilterLoSet@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmovbl	%eax, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	%r15, %rdi
	callq	_reg_write
	movq	%r15, %rdi
	callq	_flush_writes
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_ESTALE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_param_remote_dma,8,3           ## @param_remote_dma
	.comm	_ESTALE,4,2                     ## @ESTALE
	.comm	_LOCAL_BUS,4,2                  ## @LOCAL_BUS
	.comm	_OHCI1394_PhyReqFilterLoSet,4,2 ## @OHCI1394_PhyReqFilterLoSet
	.comm	_OHCI1394_PhyReqFilterHiSet,4,2 ## @OHCI1394_PhyReqFilterHiSet
	.no_dead_strip	_ohci_enable_phys_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ohci_enable_phys_dma
_ohci_enable_phys_dma:                  ; @ohci_enable_phys_dma
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x22, x2
	mov	x21, x1
	bl	_fw_ohci
Lloh0:
	adrp	x8, _param_remote_dma@GOTPAGE
Lloh1:
	ldr	x8, [x8, _param_remote_dma@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x20]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	and	w8, w21, #0xffc0
Lloh3:
	adrp	x9, _LOCAL_BUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOCAL_BUS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w10, w21, #0x3f
	mov	w11, #63
	cmp	w8, w9
	csel	w8, w10, w11, eq
Lloh6:
	adrp	x9, _OHCI1394_PhyReqFilterHiSet@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OHCI1394_PhyReqFilterHiSet@GOTPAGEOFF]
Lloh8:
	adrp	x10, _OHCI1394_PhyReqFilterLoSet@GOTPAGE
Lloh9:
	ldr	x10, [x10, _OHCI1394_PhyReqFilterLoSet@GOTPAGEOFF]
	subs	w11, w8, #32
	csel	w8, w8, w11, lo
	csel	x9, x10, x9, lo
	ldr	w1, [x9]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x20
	bl	_reg_write
	mov	x0, x20
	bl	_flush_writes
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ESTALE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ESTALE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_param_remote_dma,8,3           ; @param_remote_dma
	.comm	_ESTALE,4,2                     ; @ESTALE
	.comm	_LOCAL_BUS,4,2                  ; @LOCAL_BUS
	.comm	_OHCI1394_PhyReqFilterLoSet,4,2 ; @OHCI1394_PhyReqFilterLoSet
	.comm	_OHCI1394_PhyReqFilterHiSet,4,2 ; @OHCI1394_PhyReqFilterHiSet
	.no_dead_strip	_ohci_enable_phys_dma
.subsections_via_symbols
