	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_led_status
_marvell_led_status:                    ## @marvell_led_status
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %esi
	movl	4(%rdi), %edi
	movq	_MARVELL_LED_MANUAL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_asix_mdio_read
	movl	%eax, %r12d
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_dbg
	andl	$64527, %r12d                   ## imm = 0xFC0F
	cmpl	$129, %r14d
	movl	$944, %eax                      ## imm = 0x3B0
	movl	$752, %ecx                      ## imm = 0x2F0
	cmovel	%eax, %ecx
	cmpl	$128, %r14d
	movl	$992, %ebx                      ## imm = 0x3E0
	cmovnel	%ecx, %ebx
	orl	%r12d, %ebx
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_dbg
	movl	(%r15), %esi
	movl	4(%r15), %edi
	movl	(%r13), %edx
	movl	%ebx, %ecx
	callq	_asix_mdio_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MARVELL_LED_MANUAL,4,2         ## @MARVELL_LED_MANUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell_led_status() read 0x%04x\n"

L_.str.1:                               ## @.str.1
	.asciz	"marvell_led_status() writing 0x%04x\n"

	.no_dead_strip	_marvell_led_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_led_status
_marvell_led_status:                    ; @marvell_led_status
	.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, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
	ldr	w1, [x20]
Lloh0:
	adrp	x22, _MARVELL_LED_MANUAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MARVELL_LED_MANUAL@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_asix_mdio_read
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netdev_dbg
	mov	w8, #64527
	and	w8, w21, w8
	mov	w9, #752
	mov	w10, #944
	cmp	w19, #129
	csel	w9, w10, w9, eq
	mov	w10, #992
	cmp	w19, #128
	csel	w9, w10, w9, eq
	orr	w19, w8, w9
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_netdev_dbg
	ldp	w1, w0, [x20]
	ldr	w2, [x22]
	mov	x3, x19
	bl	_asix_mdio_write
	mov	w0, #0
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MARVELL_LED_MANUAL,4,2         ; @MARVELL_LED_MANUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell_led_status() read 0x%04x\n"

l_.str.1:                               ; @.str.1
	.asciz	"marvell_led_status() writing 0x%04x\n"

	.no_dead_strip	_marvell_led_status
.subsections_via_symbols
