	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_1394a_enhancements
_configure_1394a_enhancements:          ## @configure_1394a_enhancements
	.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, %rbx
	movq	_OHCI1394_HCControlSet@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_reg_read
	movq	_OHCI1394_HCControl_programPhyEnable@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.1:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_read_phy_reg
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	movq	_PHY_EXTENDED_REGISTERS@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$8, %edx
	callq	_read_paged_phy_reg
	testl	%eax, %eax
	js	LBB0_14
## %bb.4:
	movq	_QUIRK_NO_1394A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_7
## %bb.5:
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_PHY_ENABLE_ACCEL@GOTPCREL(%rip), %rax
	movq	_PHY_ENABLE_MULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_7:
	movq	_PHY_ENABLE_ACCEL@GOTPCREL(%rip), %rax
	movq	_PHY_ENABLE_MULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	movb	$1, %r13b
LBB0_8:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_update_phy_reg
	testl	%eax, %eax
	js	LBB0_14
## %bb.9:
	movq	_OHCI1394_HCControlClear@GOTPCREL(%rip), %rax
	testb	%r13b, %r13b
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rax
LBB0_11:
	movl	(%rax), %esi
	movq	_OHCI1394_HCControl_aPhyEnhanceEnable@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_reg_write
	movq	_OHCI1394_HCControlClear@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_reg_write
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_HCControlSet,4,2      ## @OHCI1394_HCControlSet
	.comm	_OHCI1394_HCControl_programPhyEnable,4,2 ## @OHCI1394_HCControl_programPhyEnable
	.comm	_PHY_EXTENDED_REGISTERS,4,2     ## @PHY_EXTENDED_REGISTERS
	.comm	_QUIRK_NO_1394A,4,2             ## @QUIRK_NO_1394A
	.comm	_PHY_ENABLE_ACCEL,4,2           ## @PHY_ENABLE_ACCEL
	.comm	_PHY_ENABLE_MULTI,4,2           ## @PHY_ENABLE_MULTI
	.comm	_OHCI1394_HCControlClear,4,2    ## @OHCI1394_HCControlClear
	.comm	_OHCI1394_HCControl_aPhyEnhanceEnable,4,2 ## @OHCI1394_HCControl_aPhyEnhanceEnable
	.no_dead_strip	_configure_1394a_enhancements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_1394a_enhancements
_configure_1394a_enhancements:          ; @configure_1394a_enhancements
	.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
Lloh0:
	adrp	x21, _OHCI1394_HCControlSet@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OHCI1394_HCControlSet@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_reg_read
Lloh2:
	adrp	x20, _OHCI1394_HCControl_programPhyEnable@GOTPAGE
Lloh3:
	ldr	x20, [x20, _OHCI1394_HCControl_programPhyEnable@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.1:
	mov	x0, x19
	mov	w1, #2
	bl	_read_phy_reg
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh4:
	adrp	x8, _PHY_EXTENDED_REGISTERS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PHY_EXTENDED_REGISTERS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #8
	bl	_read_paged_phy_reg
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _QUIRK_NO_1394A@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QUIRK_NO_1394A@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w0, #0, #4, eq
	b.ne	LBB0_10
LBB0_5:
	mov	w3, #0
Lloh10:
	adrp	x8, _PHY_ENABLE_ACCEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PHY_ENABLE_ACCEL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PHY_ENABLE_MULTI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PHY_ENABLE_MULTI@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w22, #1
LBB0_6:
	mov	x0, x19
	mov	w1, #5
	bl	_update_phy_reg
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh16:
	adrp	x23, _OHCI1394_HCControlClear@GOTPAGE
Lloh17:
	ldr	x23, [x23, _OHCI1394_HCControlClear@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x23, x21, ne
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _OHCI1394_HCControl_aPhyEnhanceEnable@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OHCI1394_HCControl_aPhyEnhanceEnable@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_reg_write
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_reg_write
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
LBB0_10:
	mov	w22, #0
	mov	w2, #0
Lloh21:
	adrp	x8, _PHY_ENABLE_ACCEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PHY_ENABLE_ACCEL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _PHY_ENABLE_MULTI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PHY_ENABLE_MULTI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w3, w9, w8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_HCControlSet,4,2      ; @OHCI1394_HCControlSet
	.comm	_OHCI1394_HCControl_programPhyEnable,4,2 ; @OHCI1394_HCControl_programPhyEnable
	.comm	_PHY_EXTENDED_REGISTERS,4,2     ; @PHY_EXTENDED_REGISTERS
	.comm	_QUIRK_NO_1394A,4,2             ; @QUIRK_NO_1394A
	.comm	_PHY_ENABLE_ACCEL,4,2           ; @PHY_ENABLE_ACCEL
	.comm	_PHY_ENABLE_MULTI,4,2           ; @PHY_ENABLE_MULTI
	.comm	_OHCI1394_HCControlClear,4,2    ; @OHCI1394_HCControlClear
	.comm	_OHCI1394_HCControl_aPhyEnhanceEnable,4,2 ; @OHCI1394_HCControl_aPhyEnhanceEnable
	.no_dead_strip	_configure_1394a_enhancements
.subsections_via_symbols
