	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_reset
_aqc111_reset:                          ## @aqc111_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	_URB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movl	16(%rdi), %edi
	callq	_usb_device_no_sg_constraint
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
LBB0_2:
	movq	_AQ_SUPPORT_HW_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	orl	%eax, 16(%rcx)
	movq	_AQ_SUPPORT_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rcx)
	movq	_AQ_SUPPORT_VLAN_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rcx)
	movq	_AQ_PHY_POWER_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%r15), %r8
	movl	%eax, 8(%r15)
	movq	_AQ_PHY_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_aqc111_write32_cmd
	movq	_AQ_ACCESS_MAC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SFR_NODE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rax
	movq	(%rax), %r9
	movq	%rbx, %rdi
	movl	%ecx, %r8d
	callq	_aqc111_write_cmd
	movl	$255, -44(%rbp)
	movl	(%r12), %esi
	movq	_SFR_BM_INT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_aqc111_write_cmd
	movl	$0, -44(%rbp)
	movl	(%r12), %esi
	movq	_SFR_SWP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_aqc111_write_cmd
	movl	(%r12), %esi
	movq	_SFR_MONITOR_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_aqc111_read_cmd
	movq	_SFR_MONITOR_MODE_EPHYRW@GOTPCREL(%rip), %rax
	movq	_SFR_MONITOR_MODE_RWLC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SFR_MONITOR_MODE_RWMP@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SFR_MONITOR_MODE_RWWF@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_SFR_MONITOR_MODE_RW_FLAG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, -44(%rbp)
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_aqc111_write_cmd
	movq	8(%rbx), %rdi
	callq	_netif_carrier_off
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_aqc111_set_phy_speed
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_URB_SIZE,4,2                   ## @URB_SIZE
	.comm	_AQ_SUPPORT_HW_FEATURE,4,2      ## @AQ_SUPPORT_HW_FEATURE
	.comm	_AQ_SUPPORT_FEATURE,4,2         ## @AQ_SUPPORT_FEATURE
	.comm	_AQ_SUPPORT_VLAN_FEATURE,4,2    ## @AQ_SUPPORT_VLAN_FEATURE
	.comm	_AQ_PHY_POWER_EN,4,2            ## @AQ_PHY_POWER_EN
	.comm	_AQ_PHY_OPS,4,2                 ## @AQ_PHY_OPS
	.comm	_AQ_ACCESS_MAC,4,2              ## @AQ_ACCESS_MAC
	.comm	_SFR_NODE_ID,4,2                ## @SFR_NODE_ID
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_SFR_BM_INT_MASK,4,2            ## @SFR_BM_INT_MASK
	.comm	_SFR_SWP_CTRL,4,2               ## @SFR_SWP_CTRL
	.comm	_SFR_MONITOR_MODE,4,2           ## @SFR_MONITOR_MODE
	.comm	_SFR_MONITOR_MODE_EPHYRW,4,2    ## @SFR_MONITOR_MODE_EPHYRW
	.comm	_SFR_MONITOR_MODE_RWLC,4,2      ## @SFR_MONITOR_MODE_RWLC
	.comm	_SFR_MONITOR_MODE_RWMP,4,2      ## @SFR_MONITOR_MODE_RWMP
	.comm	_SFR_MONITOR_MODE_RWWF,4,2      ## @SFR_MONITOR_MODE_RWWF
	.comm	_SFR_MONITOR_MODE_RW_FLAG,4,2   ## @SFR_MONITOR_MODE_RW_FLAG
	.no_dead_strip	_aqc111_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_reset
_aqc111_reset:                          ; @aqc111_reset
	.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, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x8, _URB_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _URB_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #20]
	ldr	w0, [x0, #16]
	bl	_usb_device_no_sg_constraint
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
Lloh3:
	adrp	x8, _AQ_SUPPORT_HW_FEATURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AQ_SUPPORT_HW_FEATURE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
	str	w8, [x9, #16]
Lloh6:
	adrp	x8, _AQ_SUPPORT_FEATURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AQ_SUPPORT_FEATURE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w11, w10, [x9, #8]
	orr	w8, w10, w8
Lloh9:
	adrp	x10, _AQ_SUPPORT_VLAN_FEATURE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AQ_SUPPORT_VLAN_FEATURE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #8]
Lloh12:
	adrp	x8, _AQ_PHY_POWER_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AQ_PHY_POWER_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x4, x20
	str	w8, [x4, #8]!
Lloh15:
	adrp	x8, _AQ_PHY_OPS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AQ_PHY_OPS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_aqc111_write32_cmd
Lloh18:
	adrp	x21, _AQ_ACCESS_MAC@GOTPAGE
Lloh19:
	ldr	x21, [x21, _AQ_ACCESS_MAC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh20:
	adrp	x8, _SFR_NODE_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SFR_NODE_ID@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	ldr	x8, [x19, #8]
	ldr	x5, [x8]
	mov	x0, x19
	mov	x4, x3
	bl	_aqc111_write_cmd
	mov	w8, #255
	str	w8, [sp, #12]
	ldr	w1, [x21]
Lloh26:
	adrp	x8, _SFR_BM_INT_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SFR_BM_INT_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	str	wzr, [sp, #12]
	ldr	w1, [x21]
Lloh29:
	adrp	x8, _SFR_SWP_CTRL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _SFR_SWP_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	ldr	w1, [x21]
Lloh32:
	adrp	x22, _SFR_MONITOR_MODE@GOTPAGE
Lloh33:
	ldr	x22, [x22, _SFR_MONITOR_MODE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_read_cmd
Lloh34:
	adrp	x8, _SFR_MONITOR_MODE_EPHYRW@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SFR_MONITOR_MODE_EPHYRW@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _SFR_MONITOR_MODE_RWLC@GOTPAGE
Lloh38:
	ldr	x9, [x9, _SFR_MONITOR_MODE_RWLC@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh40:
	adrp	x9, _SFR_MONITOR_MODE_RWMP@GOTPAGE
Lloh41:
	ldr	x9, [x9, _SFR_MONITOR_MODE_RWMP@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
Lloh43:
	adrp	x10, _SFR_MONITOR_MODE_RWWF@GOTPAGE
Lloh44:
	ldr	x10, [x10, _SFR_MONITOR_MODE_RWWF@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh45:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _SFR_MONITOR_MODE_RW_FLAG@GOTPAGE
Lloh47:
	ldr	x9, [x9, _SFR_MONITOR_MODE_RW_FLAG@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x5, sp, #12
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_aqc111_write_cmd
	ldr	x0, [x19, #8]
	bl	_netif_carrier_off
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_aqc111_set_phy_speed
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_URB_SIZE,4,2                   ; @URB_SIZE
	.comm	_AQ_SUPPORT_HW_FEATURE,4,2      ; @AQ_SUPPORT_HW_FEATURE
	.comm	_AQ_SUPPORT_FEATURE,4,2         ; @AQ_SUPPORT_FEATURE
	.comm	_AQ_SUPPORT_VLAN_FEATURE,4,2    ; @AQ_SUPPORT_VLAN_FEATURE
	.comm	_AQ_PHY_POWER_EN,4,2            ; @AQ_PHY_POWER_EN
	.comm	_AQ_PHY_OPS,4,2                 ; @AQ_PHY_OPS
	.comm	_AQ_ACCESS_MAC,4,2              ; @AQ_ACCESS_MAC
	.comm	_SFR_NODE_ID,4,2                ; @SFR_NODE_ID
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_SFR_BM_INT_MASK,4,2            ; @SFR_BM_INT_MASK
	.comm	_SFR_SWP_CTRL,4,2               ; @SFR_SWP_CTRL
	.comm	_SFR_MONITOR_MODE,4,2           ; @SFR_MONITOR_MODE
	.comm	_SFR_MONITOR_MODE_EPHYRW,4,2    ; @SFR_MONITOR_MODE_EPHYRW
	.comm	_SFR_MONITOR_MODE_RWLC,4,2      ; @SFR_MONITOR_MODE_RWLC
	.comm	_SFR_MONITOR_MODE_RWMP,4,2      ; @SFR_MONITOR_MODE_RWMP
	.comm	_SFR_MONITOR_MODE_RWWF,4,2      ; @SFR_MONITOR_MODE_RWWF
	.comm	_SFR_MONITOR_MODE_RW_FLAG,4,2   ; @SFR_MONITOR_MODE_RW_FLAG
	.no_dead_strip	_aqc111_reset
.subsections_via_symbols
