	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_change_mtu
_aqc111_change_mtu:                     ## @aqc111_change_mtu
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	movl	$0, -68(%rbp)
	movl	%r15d, (%rbx)
	movslq	%r15d, %rax
	addq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	_AQ_ACCESS_MAC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SFR_MEDIUM_STATUS_MODE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-68(%rbp), %r8
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_aqc111_read16_cmd
	cmpl	$1501, (%rbx)                   ## imm = 0x5DD
	movq	_SFR_MEDIUM_JUMBO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jl	LBB0_2
## %bb.1:
	orl	-68(%rbp), %eax
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	-68(%rbp), %eax
LBB0_3:
	movl	%eax, -68(%rbp)
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	-68(%rbp), %r8
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_aqc111_write16_cmd
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	$12501, %eax                    ## imm = 0x30D5
	jl	LBB0_5
## %bb.4:
	movq	_AQC111_BULKIN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$8, %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	_memcpy
	movl	(%r15), %esi
	movq	_SFR_RX_BULKIN_QCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$5, %ecx
	movl	$5, %r8d
	movq	%rbx, %r9
	callq	_aqc111_write_cmd
	movq	(%r14), %rax
	movl	(%rax), %eax
LBB0_5:
	cmpl	$4500, %eax                     ## imm = 0x1194
	jg	LBB0_7
## %bb.6:
	movl	$2064, -68(%rbp)                ## imm = 0x810
	jmp	LBB0_12
LBB0_7:
	cmpl	$9500, %eax                     ## imm = 0x251C
	ja	LBB0_9
## %bb.8:
	movl	$4128, -68(%rbp)                ## imm = 0x1020
	jmp	LBB0_12
LBB0_9:
	cmpl	$12500, %eax                    ## imm = 0x30D4
	ja	LBB0_11
## %bb.10:
	movl	$5152, -68(%rbp)                ## imm = 0x1420
	jmp	LBB0_12
LBB0_11:
	movl	$6688, -68(%rbp)                ## imm = 0x1A20
LBB0_12:
	movl	(%r15), %esi
	movq	_SFR_PAUSE_WATERLVL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-68(%rbp), %r8
	movq	%r14, %rdi
	movl	$2, %ecx
	callq	_aqc111_write16_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AQ_ACCESS_MAC,4,2              ## @AQ_ACCESS_MAC
	.comm	_SFR_MEDIUM_STATUS_MODE,4,2     ## @SFR_MEDIUM_STATUS_MODE
	.comm	_SFR_MEDIUM_JUMBO_EN,4,2        ## @SFR_MEDIUM_JUMBO_EN
	.comm	_AQC111_BULKIN_SIZE,8,3         ## @AQC111_BULKIN_SIZE
	.comm	_SFR_RX_BULKIN_QCTRL,4,2        ## @SFR_RX_BULKIN_QCTRL
	.comm	_SFR_PAUSE_WATERLVL_LOW,4,2     ## @SFR_PAUSE_WATERLVL_LOW
	.no_dead_strip	_aqc111_change_mtu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_change_mtu
_aqc111_change_mtu:                     ; @aqc111_change_mtu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x19, x0
	str	wzr, [sp]
	str	w20, [x21]
	ldr	x8, [x21, #8]
	add	x8, x8, w20, sxtw
	str	x8, [x0, #8]
Lloh3:
	adrp	x20, _AQ_ACCESS_MAC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AQ_ACCESS_MAC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x22, _SFR_MEDIUM_STATUS_MODE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SFR_MEDIUM_STATUS_MODE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x4, sp
	mov	w3, #2
	bl	_aqc111_read16_cmd
	ldr	w9, [x21]
Lloh7:
	adrp	x8, _SFR_MEDIUM_JUMBO_EN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SFR_MEDIUM_JUMBO_EN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w9, #1501
	b.lt	LBB0_2
; %bb.1:
	ldr	w9, [sp]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [sp]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [sp]
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x4, sp
	mov	x0, x19
	mov	w3, #2
	bl	_aqc111_write16_cmd
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #12501
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _AQC111_BULKIN_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AQC111_BULKIN_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	add	x1, x8, #8
	add	x0, sp, #4
	mov	w2, #5
	bl	_memcpy
	ldr	w1, [x20]
Lloh13:
	adrp	x8, _SFR_RX_BULKIN_QCTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SFR_RX_BULKIN_QCTRL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x5, sp, #4
	mov	x0, x19
	mov	w3, #5
	mov	w4, #5
	bl	_aqc111_write_cmd
	ldr	x8, [x19]
	ldr	w8, [x8]
LBB0_5:
	mov	w9, #4500
	cmp	w8, w9
	b.gt	LBB0_7
; %bb.6:
	mov	w8, #2064
	b	LBB0_12
LBB0_7:
	mov	w9, #9500
	cmp	w8, w9
	b.hi	LBB0_9
; %bb.8:
	mov	w8, #4128
	b	LBB0_12
LBB0_9:
	mov	w9, #12500
	cmp	w8, w9
	b.hi	LBB0_11
; %bb.10:
	mov	w8, #5152
	b	LBB0_12
LBB0_11:
	mov	w8, #6688
LBB0_12:
	str	w8, [sp]
	ldr	w1, [x20]
Lloh16:
	adrp	x8, _SFR_PAUSE_WATERLVL_LOW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SFR_PAUSE_WATERLVL_LOW@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w3, #2
	bl	_aqc111_write16_cmd
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AQ_ACCESS_MAC,4,2              ; @AQ_ACCESS_MAC
	.comm	_SFR_MEDIUM_STATUS_MODE,4,2     ; @SFR_MEDIUM_STATUS_MODE
	.comm	_SFR_MEDIUM_JUMBO_EN,4,2        ; @SFR_MEDIUM_JUMBO_EN
	.comm	_AQC111_BULKIN_SIZE,8,3         ; @AQC111_BULKIN_SIZE
	.comm	_SFR_RX_BULKIN_QCTRL,4,2        ; @SFR_RX_BULKIN_QCTRL
	.comm	_SFR_PAUSE_WATERLVL_LOW,4,2     ; @SFR_PAUSE_WATERLVL_LOW
	.no_dead_strip	_aqc111_change_mtu
.subsections_via_symbols
