	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_set_phy_speed
_aqc111_set_phy_speed:                  ## @aqc111_set_phy_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r8
	movq	_AQ_ADV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r8), %eax
	movl	%eax, (%r8)
	movq	_AQ_PAUSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
	movq	_AQ_ASYM_PAUSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
	movq	_AQ_DOWNSHIFT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
	movq	_AQ_DSH_RETRIES_MASK@GOTPCREL(%rip), %r9
	movl	(%r9), %r10d
	notl	%r10d
	andl	%eax, %r10d
	movl	%r10d, (%r8)
	movq	_AQ_DSH_RETRIES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$3, %eax
	shll	%cl, %eax
                                        ## kill: def $edx killed $edx def $rdx
	andl	(%r9), %eax
	orl	%r10d, %eax
	movl	%eax, (%r8)
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jne	LBB0_7
## %bb.1:
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_15
## %bb.2:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_3:
	movq	_AQ_ADV_5G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
LBB0_4:
	movq	_AQ_ADV_2G5@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
LBB0_5:
	movq	_AQ_ADV_1G@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r8)
LBB0_6:
	movl	%eax, %ecx
	movq	_AQ_ADV_100M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_7:
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_15
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_9:
	movq	_AQ_ADV_5G@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_10:
	movq	_AQ_ADV_2G5@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_AQ_ADV_1G@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	_AQ_ADV_100M@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
LBB0_14:
	orl	%ecx, %eax
	movl	%eax, (%r8)
LBB0_15:
	movq	_AQ_PHY_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	popq	%rbp
	jmp	_aqc111_write32_cmd             ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
.set L0_1_set_3, LBB0_3-LJTI0_1
.set L0_1_set_4, LBB0_4-LJTI0_1
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_6, LBB0_6-LJTI0_1
LJTI0_1:
	.long	L0_1_set_3
	.long	L0_1_set_4
	.long	L0_1_set_5
	.long	L0_1_set_6
	.end_data_region
                                        ## -- End function
	.comm	_AQ_ADV_MASK,4,2                ## @AQ_ADV_MASK
	.comm	_AQ_PAUSE,4,2                   ## @AQ_PAUSE
	.comm	_AQ_ASYM_PAUSE,4,2              ## @AQ_ASYM_PAUSE
	.comm	_AQ_DOWNSHIFT,4,2               ## @AQ_DOWNSHIFT
	.comm	_AQ_DSH_RETRIES_MASK,4,2        ## @AQ_DSH_RETRIES_MASK
	.comm	_AQ_DSH_RETRIES_SHIFT,4,2       ## @AQ_DSH_RETRIES_SHIFT
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_AQ_ADV_5G,4,2                  ## @AQ_ADV_5G
	.comm	_AQ_ADV_2G5,4,2                 ## @AQ_ADV_2G5
	.comm	_AQ_ADV_1G,4,2                  ## @AQ_ADV_1G
	.comm	_AQ_ADV_100M,4,2                ## @AQ_ADV_100M
	.comm	_AQ_PHY_OPS,4,2                 ## @AQ_PHY_OPS
	.no_dead_strip	_aqc111_set_phy_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_set_phy_speed
_aqc111_set_phy_speed:                  ; @aqc111_set_phy_speed
	.cfi_startproc
; %bb.0:
	ldr	x4, [x0]
Lloh0:
	adrp	x8, _AQ_ADV_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AQ_ADV_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x4]
	bic	w8, w9, w8
	str	w8, [x4]
Lloh3:
	adrp	x9, _AQ_PAUSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AQ_PAUSE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x4]
Lloh6:
	adrp	x9, _AQ_ASYM_PAUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AQ_ASYM_PAUSE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x4]
Lloh9:
	adrp	x9, _AQ_DOWNSHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AQ_DOWNSHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x4]
Lloh12:
	adrp	x9, _AQ_DSH_RETRIES_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AQ_DSH_RETRIES_MASK@GOTPAGEOFF]
	ldr	w10, [x9]
	bic	w8, w8, w10
Lloh14:
	adrp	x10, _AQ_DSH_RETRIES_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _AQ_DSH_RETRIES_SHIFT@GOTPAGEOFF]
	str	w8, [x4]
Lloh16:
	ldr	w10, [x10]
	mov	w11, #3
	lsl	w10, w11, w10
	ldr	w9, [x9]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x4]
Lloh17:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x1
	b.ne	LBB0_7
; %bb.1:
	sub	w9, w2, #128
	cmp	w9, #3
	b.hi	LBB0_15
; %bb.2:
Lloh20:
	adrp	x10, lJTI0_1@PAGE
Lloh21:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_3
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_3:
Lloh22:
	adrp	x9, _AQ_ADV_5G@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AQ_ADV_5G@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x4]
LBB0_4:
Lloh25:
	adrp	x9, _AQ_ADV_2G5@GOTPAGE
Lloh26:
	ldr	x9, [x9, _AQ_ADV_2G5@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x4]
LBB0_5:
Lloh28:
	adrp	x9, _AQ_ADV_1G@GOTPAGE
Lloh29:
	ldr	x9, [x9, _AQ_ADV_1G@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x4]
LBB0_6:
	mov	x9, x8
Lloh31:
	adrp	x8, _AQ_ADV_100M@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AQ_ADV_100M@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	b	LBB0_14
LBB0_7:
	sub	w9, w2, #128
	cmp	w9, #3
	b.hi	LBB0_15
; %bb.8:
Lloh34:
	adrp	x10, lJTI0_0@PAGE
Lloh35:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_9
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_9:
Lloh36:
	adrp	x9, _AQ_ADV_5G@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AQ_ADV_5G@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
Lloh38:
	adrp	x9, _AQ_ADV_2G5@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AQ_ADV_2G5@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh40:
	adrp	x9, _AQ_ADV_1G@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AQ_ADV_1G@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh42:
	adrp	x9, _AQ_ADV_100M@GOTPAGE
Lloh43:
	ldr	x9, [x9, _AQ_ADV_100M@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x9]
LBB0_14:
	orr	w8, w9, w8
	str	w8, [x4]
LBB0_15:
Lloh44:
	adrp	x8, _AQ_PHY_OPS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AQ_PHY_OPS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	b	_aqc111_write32_cmd
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_10-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_12-LBB0_9)>>2
lJTI0_1:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.comm	_AQ_ADV_MASK,4,2                ; @AQ_ADV_MASK
	.comm	_AQ_PAUSE,4,2                   ; @AQ_PAUSE
	.comm	_AQ_ASYM_PAUSE,4,2              ; @AQ_ASYM_PAUSE
	.comm	_AQ_DOWNSHIFT,4,2               ; @AQ_DOWNSHIFT
	.comm	_AQ_DSH_RETRIES_MASK,4,2        ; @AQ_DSH_RETRIES_MASK
	.comm	_AQ_DSH_RETRIES_SHIFT,4,2       ; @AQ_DSH_RETRIES_SHIFT
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_AQ_ADV_5G,4,2                  ; @AQ_ADV_5G
	.comm	_AQ_ADV_2G5,4,2                 ; @AQ_ADV_2G5
	.comm	_AQ_ADV_1G,4,2                  ; @AQ_ADV_1G
	.comm	_AQ_ADV_100M,4,2                ; @AQ_ADV_100M
	.comm	_AQ_PHY_OPS,4,2                 ; @AQ_PHY_OPS
	.no_dead_strip	_aqc111_set_phy_speed
.subsections_via_symbols
