	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aqc111_bind
_aqc111_bind:                           ## @aqc111_bind
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_interface_to_usbdev
	movq	8(%rax), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_1
## %bb.2:
	movl	(%rax), %r12d
	movl	16(%r15), %edi
	callq	_usb_reset_configuration
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_usbnet_get_endpoints
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	callq	_aqc111_read_perm_mac
	testl	%eax, %eax
	je	LBB0_8
## %bb.14:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_1:
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_usb_driver_set_configuration
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %ebx
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	jmp	LBB0_15
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	movq	8(%r15), %rax
	movl	40(%rax), %esi
	movl	44(%rax), %edi
	callq	_ether_addr_copy
	movq	_URB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	8(%r15), %rax
	addl	$4, (%rax)
	addl	$4, 4(%rax)
	movl	$16334, 8(%rax)                 ## imm = 0x3FCE
	movq	_aqc111_netdev_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 32(%rax)
	movq	_aqc111_ethtool_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movl	16(%r15), %edi
	callq	_usb_device_no_sg_constraint
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	$1, (%r15)
LBB0_10:
	movq	_AQ_SUPPORT_HW_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rdi
	orl	%eax, 20(%rdi)
	movq	_AQ_SUPPORT_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rdi)
	movq	_AQ_SUPPORT_VLAN_FEATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rdi)
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_netif_set_gso_max_size
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_aqc111_read_fw_version
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_USB_SPEED_SUPER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
## %bb.12:
	movq	_SPEED_5000@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usbnet_get_endpoints failed"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_URB_SIZE,4,2                   ## @URB_SIZE
	.comm	_aqc111_netdev_ops,4,2          ## @aqc111_netdev_ops
	.comm	_aqc111_ethtool_ops,4,2         ## @aqc111_ethtool_ops
	.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	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_USB_SPEED_SUPER,4,2            ## @USB_SPEED_SUPER
	.comm	_SPEED_5000,4,2                 ## @SPEED_5000
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.no_dead_strip	_aqc111_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aqc111_bind
_aqc111_bind:                           ; @aqc111_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	mov	x0, x1
	bl	_interface_to_usbdev
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	w22, [x0]
	ldr	w0, [x19, #16]
	bl	_usb_reset_configuration
	mov	x0, x19
	mov	x1, x20
	bl	_usbnet_get_endpoints
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_aqc111_read_perm_mac
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	b	LBB0_12
LBB0_5:
	mov	w1, #1
	bl	_usb_driver_set_configuration
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_7:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	ldr	x8, [x19, #8]
	ldp	w1, w0, [x8, #40]
	bl	_ether_addr_copy
Lloh9:
	adrp	x8, _URB_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _URB_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x8, [x19, #8]
	ldr	d0, [x8]
	movi.2s	v1, #4
	add.2s	v0, v0, v1
	str	d0, [x8]
	mov	w9, #16334
Lloh12:
	adrp	x10, _aqc111_netdev_ops@GOTPAGE
Lloh13:
	ldr	x10, [x10, _aqc111_netdev_ops@GOTPAGEOFF]
	str	w9, [x8, #8]
Lloh14:
	adrp	x9, _aqc111_ethtool_ops@GOTPAGE
Lloh15:
	ldr	x9, [x9, _aqc111_ethtool_ops@GOTPAGEOFF]
	stp	x9, x10, [x8, #24]
	ldr	w0, [x19, #16]
	bl	_usb_device_no_sg_constraint
	cbz	x0, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
Lloh16:
	adrp	x8, _AQ_SUPPORT_HW_FEATURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AQ_SUPPORT_HW_FEATURE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	x0, [x19, #8]
	ldr	w9, [x0, #20]
	orr	w8, w9, w8
	str	w8, [x0, #20]
Lloh19:
	adrp	x8, _AQ_SUPPORT_FEATURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AQ_SUPPORT_FEATURE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldp	w10, w9, [x0, #12]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _AQ_SUPPORT_VLAN_FEATURE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AQ_SUPPORT_VLAN_FEATURE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w9, w10, w9
	stp	w9, w8, [x0, #12]
	mov	w1, #65535
	bl	_netif_set_gso_max_size
	mov	x0, x19
	mov	x1, x20
	bl	_aqc111_read_fw_version
	mov	w21, #0
Lloh25:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh28:
	adrp	x8, _USB_SPEED_SUPER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _USB_SPEED_SUPER@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _SPEED_5000@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SPEED_5000@GOTPAGEOFF]
Lloh33:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh34:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
	cmp	w22, w8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usbnet_get_endpoints failed"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_URB_SIZE,4,2                   ; @URB_SIZE
	.comm	_aqc111_netdev_ops,4,2          ; @aqc111_netdev_ops
	.comm	_aqc111_ethtool_ops,4,2         ; @aqc111_ethtool_ops
	.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	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_USB_SPEED_SUPER,4,2            ; @USB_SPEED_SUPER
	.comm	_SPEED_5000,4,2                 ; @SPEED_5000
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.no_dead_strip	_aqc111_bind
.subsections_via_symbols
