	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_phy_init
_marvell_phy_init:                      ## @marvell_phy_init
	.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, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_MII_MARVELL_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_asix_mdio_read
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_MII_MARVELL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MARVELL_CTRL_RXDELAY@GOTPCREL(%rip), %rax
	movq	_MARVELL_CTRL_TXDELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	callq	_asix_mdio_write
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_MII_MARVELL_LED_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_asix_mdio_read
	movl	%eax, %r14d
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
	andl	$63742, %r14d                   ## imm = 0xF8FE
	orl	$257, %r14d                     ## imm = 0x101
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	movl	%r14d, %ecx
	callq	_asix_mdio_write
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	callq	_asix_mdio_read
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_dbg
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell_phy_init()\n"

	.comm	_MII_MARVELL_STATUS,4,2         ## @MII_MARVELL_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"MII_MARVELL_STATUS = 0x%04x\n"

	.comm	_MII_MARVELL_CTRL,4,2           ## @MII_MARVELL_CTRL
	.comm	_MARVELL_CTRL_RXDELAY,4,2       ## @MARVELL_CTRL_RXDELAY
	.comm	_MARVELL_CTRL_TXDELAY,4,2       ## @MARVELL_CTRL_TXDELAY
	.comm	_MII_MARVELL_LED_CTRL,4,2       ## @MII_MARVELL_LED_CTRL
L_.str.2:                               ## @.str.2
	.asciz	"MII_MARVELL_LED_CTRL (1) = 0x%04x\n"

L_.str.3:                               ## @.str.3
	.asciz	"MII_MARVELL_LED_CTRL (2) = 0x%04x\n"

	.no_dead_strip	_marvell_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_phy_init
_marvell_phy_init:                      ; @marvell_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldp	w0, w1, [x19]
Lloh2:
	adrp	x8, _MII_MARVELL_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_MARVELL_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_asix_mdio_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_netdev_dbg
	ldp	w0, w1, [x19]
Lloh7:
	adrp	x8, _MII_MARVELL_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MII_MARVELL_CTRL@GOTPAGEOFF]
Lloh9:
	adrp	x9, _MARVELL_CTRL_RXDELAY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MARVELL_CTRL_RXDELAY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	ldr	w8, [x9]
Lloh13:
	adrp	x9, _MARVELL_CTRL_TXDELAY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MARVELL_CTRL_TXDELAY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w9, w8
	bl	_asix_mdio_write
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	w0, w1, [x19]
Lloh16:
	adrp	x21, _MII_MARVELL_LED_CTRL@GOTPAGE
Lloh17:
	ldr	x21, [x21, _MII_MARVELL_LED_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_asix_mdio_read
	mov	x20, x0
	ldr	w0, [x19]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
	mov	w8, #63742
	and	w8, w20, w8
	mov	w9, #257
	orr	w3, w8, w9
	ldp	w0, w1, [x19]
	ldr	w2, [x21]
	bl	_asix_mdio_write
	ldp	w0, w1, [x19]
	ldr	w2, [x21]
	bl	_asix_mdio_read
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	bl	_netdev_dbg
LBB0_2:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell_phy_init()\n"

	.comm	_MII_MARVELL_STATUS,4,2         ; @MII_MARVELL_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"MII_MARVELL_STATUS = 0x%04x\n"

	.comm	_MII_MARVELL_CTRL,4,2           ; @MII_MARVELL_CTRL
	.comm	_MARVELL_CTRL_RXDELAY,4,2       ; @MARVELL_CTRL_RXDELAY
	.comm	_MARVELL_CTRL_TXDELAY,4,2       ; @MARVELL_CTRL_TXDELAY
	.comm	_MII_MARVELL_LED_CTRL,4,2       ; @MII_MARVELL_LED_CTRL
l_.str.2:                               ; @.str.2
	.asciz	"MII_MARVELL_LED_CTRL (1) = 0x%04x\n"

l_.str.3:                               ; @.str.3
	.asciz	"MII_MARVELL_LED_CTRL (2) = 0x%04x\n"

	.no_dead_strip	_marvell_phy_init
.subsections_via_symbols
