	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq100x_get_link_status
_aq100x_get_link_status:                ## @aq100x_get_link_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AQ_LINK_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movl	-36(%rbp), %ecx
	xorl	%eax, %eax
	andl	$1, %ecx
	movl	%ecx, (%rbx)
	je	LBB0_11
LBB0_3:
	movq	_MDIO_MMD_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AQ_ANEG_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	callq	_t3_mdio_read
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	-36(%rbp), %eax
	andl	$6, %eax
	leaq	l_switch.table.aq100x_get_link_status(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_11
## %bb.7:
	testb	$1, -36(%rbp)
	jne	LBB0_8
## %bb.9:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_AQ_LINK_STAT,4,2               ## @AQ_LINK_STAT
	.comm	_MDIO_MMD_AN,4,2                ## @MDIO_MMD_AN
	.comm	_AQ_ANEG_STAT,4,2               ## @AQ_ANEG_STAT
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.no_dead_strip	_aq100x_get_link_status
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.aq100x_get_link_status
l_switch.table.aq100x_get_link_status:
	.quad	_SPEED_10
	.quad	_SPEED_10000
	.quad	_SPEED_100
	.quad	_SPEED_10000
	.quad	_SPEED_1000
	.quad	_SPEED_10000
	.quad	_SPEED_10000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq100x_get_link_status
_aq100x_get_link_status:                ; @aq100x_get_link_status
	.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, x3
	mov	x20, x2
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x1
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _AQ_LINK_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_LINK_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.2:
	ldr	w8, [sp, #12]
	and	w9, w8, #0x1
	str	w9, [x22]
	tbnz	w8, #0, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x8, _MDIO_MMD_AN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_MMD_AN@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _AQ_ANEG_STAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AQ_ANEG_STAT@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	bl	_t3_mdio_read
	cbnz	w0, LBB0_9
; %bb.5:
	cbz	x20, LBB0_7
; %bb.6:
	ldr	w8, [sp, #12]
	and	x8, x8, #0x6
Lloh12:
	adrp	x9, l_switch.table.aq100x_get_link_status@PAGE
Lloh13:
	add	x9, x9, l_switch.table.aq100x_get_link_status@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_7:
	mov	w0, #0
	cbz	x19, LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh16:
	adrp	x10, _DUPLEX_HALF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _DUPLEX_HALF@GOTPAGEOFF]
	tst	w8, #0x1
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_AQ_LINK_STAT,4,2               ; @AQ_LINK_STAT
	.comm	_MDIO_MMD_AN,4,2                ; @MDIO_MMD_AN
	.comm	_AQ_ANEG_STAT,4,2               ; @AQ_ANEG_STAT
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.no_dead_strip	_aq100x_get_link_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.aq100x_get_link_status
l_switch.table.aq100x_get_link_status:
	.quad	_SPEED_10
	.quad	_SPEED_10000
	.quad	_SPEED_100
	.quad	_SPEED_10000
	.quad	_SPEED_1000
	.quad	_SPEED_10000
	.quad	_SPEED_10000

.subsections_via_symbols
