	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axienet_mac_link_state
_axienet_mac_link_state:                ## @axienet_mac_link_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	(%rdi), %edi
	callq	_to_net_dev
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_XAE_EMMC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_axienet_ior
	movq	_XAE_EMMC_LINKSPD_1000@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_XAE_EMMC_LINKSPD_100@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	je	LBB0_5
LBB0_4:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$0, 16(%rbx)
	movq	_XAE_FCC_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_axienet_ior
	movq	_XAE_FCC_FCTX_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_MLO_PAUSE_TX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%rbx)
LBB0_7:
	movq	_XAE_FCC_FCRX_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_MLO_PAUSE_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
LBB0_9:
	movq	$0, 8(%rbx)
	movl	$1, (%rbx)
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XAE_EMMC_OFFSET,4,2            ## @XAE_EMMC_OFFSET
	.comm	_XAE_EMMC_LINKSPD_1000,4,2      ## @XAE_EMMC_LINKSPD_1000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_XAE_EMMC_LINKSPD_100,4,2       ## @XAE_EMMC_LINKSPD_100
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_XAE_FCC_OFFSET,4,2             ## @XAE_FCC_OFFSET
	.comm	_XAE_FCC_FCTX_MASK,4,2          ## @XAE_FCC_FCTX_MASK
	.comm	_MLO_PAUSE_TX,4,2               ## @MLO_PAUSE_TX
	.comm	_XAE_FCC_FCRX_MASK,4,2          ## @XAE_FCC_FCRX_MASK
	.comm	_MLO_PAUSE_RX,4,2               ## @MLO_PAUSE_RX
	.no_dead_strip	_axienet_mac_link_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axienet_mac_link_state
_axienet_mac_link_state:                ; @axienet_mac_link_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x0]
	bl	_to_net_dev
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x0]
	str	w8, [x19, #24]
Lloh0:
	adrp	x8, _XAE_EMMC_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XAE_EMMC_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_axienet_ior
Lloh3:
	adrp	x8, _XAE_EMMC_LINKSPD_1000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XAE_EMMC_LINKSPD_1000@GOTPAGEOFF]
Lloh5:
	adrp	x9, _XAE_EMMC_LINKSPD_100@GOTPAGE
Lloh6:
	ldr	x9, [x9, _XAE_EMMC_LINKSPD_100@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh11:
	adrp	x11, _SPEED_100@GOTPAGE
Lloh12:
	ldr	x11, [x11, _SPEED_100@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x10, x11, eq
Lloh13:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
	tst	w8, w0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #16]
Lloh15:
	adrp	x8, _XAE_FCC_OFFSET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XAE_FCC_OFFSET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_axienet_ior
Lloh18:
	adrp	x8, _XAE_FCC_FCTX_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XAE_FCC_FCTX_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh21:
	adrp	x8, _MLO_PAUSE_TX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLO_PAUSE_TX@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_2:
Lloh24:
	adrp	x8, _XAE_FCC_FCRX_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XAE_FCC_FCRX_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _MLO_PAUSE_RX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MLO_PAUSE_RX@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_4:
	str	xzr, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_XAE_EMMC_OFFSET,4,2            ; @XAE_EMMC_OFFSET
	.comm	_XAE_EMMC_LINKSPD_1000,4,2      ; @XAE_EMMC_LINKSPD_1000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_XAE_EMMC_LINKSPD_100,4,2       ; @XAE_EMMC_LINKSPD_100
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_XAE_FCC_OFFSET,4,2             ; @XAE_FCC_OFFSET
	.comm	_XAE_FCC_FCTX_MASK,4,2          ; @XAE_FCC_FCTX_MASK
	.comm	_MLO_PAUSE_TX,4,2               ; @MLO_PAUSE_TX
	.comm	_XAE_FCC_FCRX_MASK,4,2          ; @XAE_FCC_FCRX_MASK
	.comm	_MLO_PAUSE_RX,4,2               ; @MLO_PAUSE_RX
	.no_dead_strip	_axienet_mac_link_state
.subsections_via_symbols
