	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function aqc111_configure_rx
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	248                             ## 0xf8
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	251                             ## 0xfb
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_aqc111_configure_rx:                   ## @aqc111_configure_rx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movl	(%rax), %r12d
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -100(%rbp)
	movq	$0, -120(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,248,0,0,0,0,0,0,0]
	movaps	%xmm0, -96(%rbp)
	movq	$7, -80(%rbp)
	movl	$-132, %eax
	addl	(%rsi), %eax
	cmpl	$3, %eax
	ja	LBB0_1
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	$5, -120(%rbp)
	movl	$31, -100(%rbp)
	movl	$5000, %eax                     ## imm = 0x1388
	jmp	LBB0_2
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_5:
	movl	$63, -100(%rbp)
	movl	$2500, %eax                     ## imm = 0x9C4
	jmp	LBB0_2
LBB0_6:
	movl	$159, -100(%rbp)
	movl	$1000, %eax                     ## imm = 0x3E8
LBB0_2:
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
LBB0_8:
	movq	_AQ_ACCESS_MAC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SFR_INTER_PACKET_GAP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-120(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_aqc111_write_cmd
	movl	(%r13), %esi
	movq	_SFR_TX_PAUSE_RESEND_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$3, %r15d
	leaq	-96(%rbp), %r9
	movq	%rbx, %rdi
	movl	$3, %ecx
	movl	$3, %r8d
	callq	_aqc111_write_cmd
	addl	$-128, %r12d
	cmpl	$3, %r12d
	ja	LBB0_12
## %bb.9:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movl	$1, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_7:
	movl	$1599, -100(%rbp)               ## imm = 0x63F
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [251,4]
	movups	%xmm0, -88(%rbp)
	movl	$1, %r14d
	movl	$100, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
LBB0_12:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_10:
	movl	$2, %r15d
LBB0_13:
	movq	(%rbx), %rax
	movl	$-12501, %ecx                   ## imm = 0xCF2B
	addl	(%rax), %ecx
	cmpl	$3834, %ecx                     ## imm = 0xEFA
	movl	$2, %esi
	cmovaeq	%r14, %rsi
	movq	_AQC111_BULKIN_SIZE@GOTPCREL(%rip), %rax
	shlq	$2, %rsi
	addq	(%rax), %rsi
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	movl	$5, %edx
	callq	_memcpy
	movl	(%r13), %esi
	movq	_SFR_RX_BULKIN_QCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$5, %ecx
	movl	$5, %r8d
	movq	%r12, %r9
	callq	_aqc111_write_cmd
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpl	$4500, %eax                     ## imm = 0x1194
	jg	LBB0_15
## %bb.14:
	movl	$2064, -100(%rbp)               ## imm = 0x810
	jmp	LBB0_21
LBB0_15:
	cmpl	$9500, %eax                     ## imm = 0x251C
	ja	LBB0_17
## %bb.16:
	movl	$4128, -100(%rbp)               ## imm = 0x1020
	jmp	LBB0_21
LBB0_17:
	cmpl	$12500, %eax                    ## imm = 0x30D4
	ja	LBB0_19
## %bb.18:
	movl	$5152, -100(%rbp)               ## imm = 0x1420
	jmp	LBB0_21
LBB0_19:
	cmpl	$16334, %eax                    ## imm = 0x3FCE
	ja	LBB0_21
## %bb.20:
	movl	$6688, -100(%rbp)               ## imm = 0x1A20
LBB0_21:
	movl	(%r13), %esi
	movq	_SFR_PAUSE_WATERLVL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-100(%rbp), %r8
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_aqc111_write16_cmd
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	callq	_netdev_info
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_11
	.long	L0_1_set_10
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.comm	_AQ_ACCESS_MAC,4,2              ## @AQ_ACCESS_MAC
	.comm	_SFR_INTER_PACKET_GAP_0,4,2     ## @SFR_INTER_PACKET_GAP_0
	.comm	_SFR_TX_PAUSE_RESEND_T,4,2      ## @SFR_TX_PAUSE_RESEND_T
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link Speed %d, USB %d"

	.no_dead_strip	_aqc111_configure_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function aqc111_configure_rx
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	248                             ; 0xf8
lCPI0_1:
	.quad	251                             ; 0xfb
	.quad	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_aqc111_configure_rx:                   ; @aqc111_configure_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x8, [x0, #8]
	ldr	w24, [x8]
	stp	xzr, xzr, [sp, #40]
	str	wzr, [sp, #12]
	str	xzr, [sp]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]
	mov	w8, #7
	str	x8, [sp, #32]
	ldr	w8, [x1]
	sub	w8, w8, #132
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x23, #0
	mov	w8, #5
	str	x8, [sp]
	mov	w8, #31
	str	w8, [sp, #12]
	mov	w20, #5000
	b	LBB0_7
LBB0_3:
	mov	w20, #0
	mov	x23, #0
	b	LBB0_7
LBB0_4:
	mov	x23, #0
	mov	w8, #63
	str	w8, [sp, #12]
	mov	w20, #2500
	b	LBB0_7
LBB0_5:
	mov	x23, #0
	mov	w8, #159
	str	w8, [sp, #12]
	mov	w20, #1000
	b	LBB0_7
LBB0_6:
	mov	w8, #1599
	str	w8, [sp, #12]
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [sp, #24]
	mov	w20, #100
	mov	w23, #1
LBB0_7:
Lloh9:
	adrp	x22, _AQ_ACCESS_MAC@GOTPAGE
Lloh10:
	ldr	x22, [x22, _AQ_ACCESS_MAC@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh11:
	adrp	x8, _SFR_INTER_PACKET_GAP_0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SFR_INTER_PACKET_GAP_0@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x5, sp
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	ldr	w1, [x22]
Lloh14:
	adrp	x8, _SFR_TX_PAUSE_RESEND_T@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SFR_TX_PAUSE_RESEND_T@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w21, #3
	add	x5, sp, #16
	mov	x0, x19
	mov	w3, #3
	mov	w4, #3
	bl	_aqc111_write_cmd
	sub	w8, w24, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.8:
Lloh17:
	adrp	x9, lJTI0_1@PAGE
Lloh18:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_9
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_9:
	mov	x23, #0
	mov	w21, #1
	b	LBB0_12
LBB0_10:
	mov	w21, #0
	b	LBB0_12
LBB0_11:
	mov	w21, #2
LBB0_12:
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #-12501
	add	w8, w8, w9
	cmp	w8, #3834
	mov	w8, #2
	csel	x8, x8, x23, lo
Lloh19:
	adrp	x9, _AQC111_BULKIN_SIZE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AQC111_BULKIN_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8, lsl #2
	add	x0, sp, #16
	mov	w2, #5
	bl	_memcpy
	ldr	w1, [x22]
Lloh22:
	adrp	x8, _SFR_RX_BULKIN_QCTRL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SFR_RX_BULKIN_QCTRL@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x5, sp, #16
	mov	x0, x19
	mov	w3, #5
	mov	w4, #5
	bl	_aqc111_write_cmd
	ldr	x8, [x19]
	ldr	w8, [x8]
	mov	w9, #4500
	cmp	w8, w9
	b.gt	LBB0_14
; %bb.13:
	mov	w8, #2064
	b	LBB0_20
LBB0_14:
	mov	w9, #9500
	cmp	w8, w9
	b.hi	LBB0_16
; %bb.15:
	mov	w8, #4128
	b	LBB0_20
LBB0_16:
	mov	w9, #12500
	cmp	w8, w9
	b.hi	LBB0_18
; %bb.17:
	mov	w8, #5152
	b	LBB0_20
LBB0_18:
	mov	w9, #16334
	cmp	w8, w9
	b.hi	LBB0_21
; %bb.19:
	mov	w8, #6688
LBB0_20:
	str	w8, [sp, #12]
LBB0_21:
	ldr	w1, [x22]
Lloh25:
	adrp	x8, _SFR_PAUSE_WATERLVL_LOW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SFR_PAUSE_WATERLVL_LOW@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x4, sp, #12
	mov	x0, x19
	mov	w3, #2
	bl	_aqc111_write16_cmd
	ldr	x0, [x19]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_netdev_info
	ldr	x8, [sp, #56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_12-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_11-LBB0_9)>>2
	.byte	(LBB0_9-LBB0_9)>>2
                                        ; -- End function
	.comm	_AQ_ACCESS_MAC,4,2              ; @AQ_ACCESS_MAC
	.comm	_SFR_INTER_PACKET_GAP_0,4,2     ; @SFR_INTER_PACKET_GAP_0
	.comm	_SFR_TX_PAUSE_RESEND_T,4,2      ; @SFR_TX_PAUSE_RESEND_T
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link Speed %d, USB %d"

	.no_dead_strip	_aqc111_configure_rx
.subsections_via_symbols
