	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr9800_phy_powerup
_sr9800_phy_powerup:                    ## @sr9800_phy_powerup
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SR_SWRESET_IPPD@GOTPCREL(%rip), %rax
	movq	_SR_SWRESET_IPRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rax), %esi
	callq	_sr_sw_reset
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_sr_sw_reset
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$600, %edi                      ## imm = 0x258
	callq	_msleep
	movq	_SR_SWRESET_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sr_sw_reset
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_sr_sw_reset
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
	movl	%r15d, %ebx
	jmp	LBB0_9
LBB0_1:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_SWRESET_IPPD,4,2            ## @SR_SWRESET_IPPD
	.comm	_SR_SWRESET_IPRL,4,2            ## @SR_SWRESET_IPRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to power down PHY : %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to reset PHY: %d\n"

	.comm	_SR_SWRESET_CLEAR,4,2           ## @SR_SWRESET_CLEAR
L_.str.2:                               ## @.str.2
	.asciz	"Failed to power up PHY: %d\n"

	.no_dead_strip	_sr9800_phy_powerup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr9800_phy_powerup
_sr9800_phy_powerup:                    ; @sr9800_phy_powerup
	.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	x19, x0
Lloh0:
	adrp	x8, _SR_SWRESET_IPPD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR_SWRESET_IPPD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _SR_SWRESET_IPRL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SR_SWRESET_IPRL@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w1, w9, w8
	bl	_sr_sw_reset
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sr_sw_reset
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	w0, #600
	bl	_msleep
Lloh5:
	adrp	x8, _SR_SWRESET_CLEAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SR_SWRESET_CLEAR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sr_sw_reset
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x21]
	mov	x0, x19
	bl	_sr_sw_reset
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	x20, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x20, x0
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x2, x20
	bl	_netdev_err
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_SWRESET_IPPD,4,2            ; @SR_SWRESET_IPPD
	.comm	_SR_SWRESET_IPRL,4,2            ; @SR_SWRESET_IPRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to power down PHY : %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to reset PHY: %d\n"

	.comm	_SR_SWRESET_CLEAR,4,2           ; @SR_SWRESET_CLEAR
l_.str.2:                               ; @.str.2
	.asciz	"Failed to power up PHY: %d\n"

	.no_dead_strip	_sr9800_phy_powerup
.subsections_via_symbols
