	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_phy_reg
_get_phy_reg:                           ## @get_phy_reg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_spin_lock_irqsave
	movq	_OHCI1394_PhyControl@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	shll	$8, %ebx
	orl	$32768, %ebx                    ## imm = 0x8000
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_reg_write
	movq	_OHCI_LOOP_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_mdelay
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_3
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_reg_read
	movl	%eax, %r15d
	cmpl	(%r12), %ebx
	jl	LBB0_7
## %bb.6:
	movq	_KERN_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %ecx
	andl	$-2147483648, %ecx              ## imm = 0x80000000
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %r8d
	callq	_PRINT
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	shrl	$16, %r15d
	movzbl	%r15b, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OHCI1394_PhyControl,4,2        ## @OHCI1394_PhyControl
	.comm	_OHCI_LOOP_COUNT,4,2            ## @OHCI_LOOP_COUNT
	.comm	_KERN_ERR,4,2                   ## @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Get PHY Reg timeout [0x%08x/0x%08x/%d]"

	.no_dead_strip	_get_phy_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_phy_reg
_get_phy_reg:                           ; @get_phy_reg
	.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	x20, x1
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _OHCI1394_PhyControl@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OHCI1394_PhyControl@GOTPAGEOFF]
	ldr	w1, [x21]
	lsl	w8, w20, #8
	orr	w2, w8, #0x8000
	mov	x0, x19
	bl	_reg_write
Lloh2:
	adrp	x22, _OHCI_LOOP_COUNT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _OHCI_LOOP_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_reg_read
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_mdelay
	add	w20, w20, #1
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_reg_read
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w20, w8
	b.lt	LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _KERN_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KERN_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	and	w3, w21, #0x80000000
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x4, x20
	bl	_PRINT
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ubfx	w0, w21, #16, #8
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_OHCI1394_PhyControl,4,2        ; @OHCI1394_PhyControl
	.comm	_OHCI_LOOP_COUNT,4,2            ; @OHCI_LOOP_COUNT
	.comm	_KERN_ERR,4,2                   ; @KERN_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Get PHY Reg timeout [0x%08x/0x%08x/%d]"

	.no_dead_strip	_get_phy_reg
.subsections_via_symbols
