	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_set_link_ksettings
_aqc111_set_link_ksettings:             ## @aqc111_set_link_ksettings
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movl	(%rdx), %edi
	movq	(%rbx), %rsi
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rsi
	jne	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	cmpq	%rsi, (%rcx)
	je	LBB0_19
## %bb.2:
	movq	%rsi, (%rcx)
	movq	_USB_SPEED_SUPER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %edi
	jne	LBB0_3
## %bb.4:
	movq	_SPEED_5000@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_6:
	movq	8(%rbx), %rdx
	movq	_SPEED_100@GOTPCREL(%rip), %r9
	movq	_SPEED_1000@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r10
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %r8
	cmpq	(%r9), %rdx
	je	LBB0_12
## %bb.7:
	cmpq	%r10, %rdx
	je	LBB0_12
## %bb.8:
	movq	_SPEED_2500@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_12
## %bb.9:
	movq	_SPEED_5000@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_12
## %bb.10:
	cmpq	(%r8), %rdx
	jne	LBB0_11
LBB0_12:
	movq	16(%rbx), %rsi
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	jne	LBB0_11
## %bb.13:
	movq	_USB_SPEED_SUPER@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edi
	je	LBB0_15
## %bb.14:
	cmpq	%r10, %rdx
	jle	LBB0_15
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
LBB0_5:
	movq	(%rdx), %rdx
	movq	%rdx, 8(%rcx)
	movq	%rax, %rdi
	callq	_aqc111_set_phy_speed
	jmp	LBB0_19
LBB0_15:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rcx)
	cmpq	(%r8), %rdx
	jne	LBB0_17
## %bb.16:
	movq	8(%rcx), %rdx
	jmp	LBB0_18
LBB0_17:
	movq	%rdx, 8(%rcx)
LBB0_18:
	movq	%rax, %rdi
	callq	_aqc111_set_phy_speed
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_USB_SPEED_SUPER,4,2            ## @USB_SPEED_SUPER
	.comm	_SPEED_5000,8,3                 ## @SPEED_5000
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_2500,8,3                 ## @SPEED_2500
	.comm	_SPEED_UNKNOWN,8,3              ## @SPEED_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.no_dead_strip	_aqc111_set_link_ksettings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_set_link_ksettings
_aqc111_set_link_ksettings:             ; @aqc111_set_link_ksettings
	.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
	bl	_netdev_priv
	ldp	x9, x8, [x0]
	ldr	w9, [x9]
	ldr	x1, [x19]
Lloh0:
	adrp	x10, _AUTONEG_ENABLE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x1, x10
	b.ne	LBB0_6
; %bb.1:
	ldr	x10, [x8]
	cmp	x10, x1
	b.eq	LBB0_5
; %bb.2:
	str	x1, [x8]
Lloh3:
	adrp	x10, _USB_SPEED_SUPER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _USB_SPEED_SUPER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _SPEED_5000@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SPEED_5000@GOTPAGEOFF]
Lloh8:
	adrp	x12, _SPEED_1000@GOTPAGE
Lloh9:
	ldr	x12, [x12, _SPEED_1000@GOTPAGEOFF]
	cmp	w9, w10
	csel	x9, x11, x12, eq
	ldr	x2, [x9]
LBB0_3:
	str	x2, [x8, #8]
LBB0_4:
	bl	_aqc111_set_phy_speed
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ldr	x2, [x19, #8]
Lloh10:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh11:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x10]
Lloh13:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x10]
Lloh16:
	adrp	x10, _SPEED_2500@GOTPAGE
Lloh17:
	ldr	x10, [x10, _SPEED_2500@GOTPAGEOFF]
Lloh18:
	ldr	x13, [x10]
Lloh19:
	adrp	x10, _SPEED_5000@GOTPAGE
Lloh20:
	ldr	x10, [x10, _SPEED_5000@GOTPAGEOFF]
Lloh21:
	ldr	x14, [x10]
Lloh22:
	adrp	x10, _SPEED_UNKNOWN@GOTPAGE
Lloh23:
	ldr	x10, [x10, _SPEED_UNKNOWN@GOTPAGEOFF]
	ldr	x15, [x10]
	cmp	x2, x12
	ccmp	x2, x11, #4, ne
	ccmp	x2, x13, #4, ne
	ccmp	x2, x14, #4, ne
	ccmp	x2, x15, #4, ne
	b.ne	LBB0_10
; %bb.7:
	ldr	x12, [x19, #16]
Lloh24:
	adrp	x13, _DUPLEX_FULL@GOTPAGE
Lloh25:
	ldr	x13, [x13, _DUPLEX_FULL@GOTPAGEOFF]
Lloh26:
	ldr	x13, [x13]
	cmp	x12, x13
	b.ne	LBB0_10
; %bb.8:
Lloh27:
	adrp	x12, _USB_SPEED_SUPER@GOTPAGE
Lloh28:
	ldr	x12, [x12, _USB_SPEED_SUPER@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	cmp	w9, w12
	b.eq	LBB0_12
; %bb.9:
	cmp	x2, x11
	b.le	LBB0_12
LBB0_10:
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh33:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh35:
	ldr	x1, [x9]
	str	x1, [x8]
	ldr	x9, [x10]
	cmp	x2, x9
	b.ne	LBB0_3
; %bb.13:
	ldr	x2, [x8, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_USB_SPEED_SUPER,4,2            ; @USB_SPEED_SUPER
	.comm	_SPEED_5000,8,3                 ; @SPEED_5000
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_2500,8,3                 ; @SPEED_2500
	.comm	_SPEED_UNKNOWN,8,3              ; @SPEED_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.no_dead_strip	_aqc111_set_link_ksettings
.subsections_via_symbols
