	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_probe
_at76_probe:                            ## @at76_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rsi), %r15d
	callq	_interface_to_usbdev
	movl	%eax, %edi
	callq	_usb_get_dev
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	movq	%rax, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	testq	%rax, %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r15d, %esi
	callq	_at76_load_firmware
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_at76_get_op_mode
	movl	%eax, %r12d
	movq	_DBG_DEVSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_at76_dbg
	movq	_OPMODE_HW_CONFIG_MODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %r14
	jmp	LBB0_5
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %ebx
	movl	%ebx, %r12d
	negl	%r12d
	movq	%r13, %rdi
	callq	_kfree
	testl	%ebx, %ebx
	jle	LBB0_26
LBB0_24:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_usb_put_dev
LBB0_26:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_OPMODE_NORMAL_NIC_WITH_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	je	LBB0_11
## %bb.7:
	movq	_OPMODE_NORMAL_NIC_WITHOUT_FLASH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_11
## %bb.8:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_dev_printk
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_at76_load_internal_fw
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_25
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_11:
	cmpq	$0, (%r15)
	jle	LBB0_12
LBB0_14:
	movq	_MIB_FW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	$8, %ecx
	callq	_at76_get_mib
	testl	%eax, %eax
	js	LBB0_16
## %bb.15:
	movl	4(%r13), %eax
	orl	(%r13), %eax
	jne	LBB0_20
	jmp	LBB0_16
LBB0_12:
	cmpl	$99, 8(%r15)
	jg	LBB0_14
## %bb.13:
	cmpl	%eax, %r12d
	je	LBB0_14
LBB0_16:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_dev_printk
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_at76_load_external_fw
	testl	%eax, %eax
	js	LBB0_17
## %bb.18:
	movq	_MIB_FW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	$8, %ecx
	callq	_at76_get_mib
	testl	%eax, %eax
	js	LBB0_19
LBB0_20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_at76_alloc_new_device
	testq	%rax, %rax
	je	LBB0_5
## %bb.21:
	movq	%rax, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_set_intfdata
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_at76_init_new_device
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_22
LBB0_25:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_26
LBB0_17:
	movl	%eax, %r12d
	jmp	LBB0_23
LBB0_19:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_22:
	movq	%rbx, %rdi
	callq	_at76_delete_device
LBB0_23:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_DBG_DEVSTART,4,2               ## @DBG_DEVSTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opmode %d"

	.comm	_OPMODE_HW_CONFIG_MODE,4,2      ## @OPMODE_HW_CONFIG_MODE
L_.str.1:                               ## @.str.1
	.asciz	"cannot handle a device in HW_CONFIG_MODE\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_OPMODE_NORMAL_NIC_WITH_FLASH,4,2 ## @OPMODE_NORMAL_NIC_WITH_FLASH
	.comm	_OPMODE_NORMAL_NIC_WITHOUT_FLASH,4,2 ## @OPMODE_NORMAL_NIC_WITHOUT_FLASH
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"downloading internal firmware\n"

L_.str.3:                               ## @.str.3
	.asciz	"error %d downloading internal firmware\n"

	.comm	_MIB_FW_VERSION,4,2             ## @MIB_FW_VERSION
L_.str.4:                               ## @.str.4
	.asciz	"downloading external firmware\n"

L_.str.5:                               ## @.str.5
	.asciz	"error %d getting firmware version\n"

	.no_dead_strip	_at76_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_probe
_at76_probe:                            ; @at76_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	w22, [x1]
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	bl	_at76_load_firmware
	cbz	x0, LBB0_4
; %bb.2:
	mov	x23, x0
	mov	x0, x19
	bl	_at76_get_op_mode
	mov	x24, x0
Lloh3:
	adrp	x8, _DBG_DEVSTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_DEVSTART@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_at76_dbg
Lloh8:
	adrp	x8, _OPMODE_HW_CONFIG_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OPMODE_HW_CONFIG_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
Lloh17:
	adrp	x8, _OPMODE_NORMAL_NIC_WITH_FLASH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OPMODE_NORMAL_NIC_WITH_FLASH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _OPMODE_NORMAL_NIC_WITHOUT_FLASH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _OPMODE_NORMAL_NIC_WITHOUT_FLASH@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w24, w8
	ccmp	w24, w9, #4, ne
	b.ne	LBB0_19
; %bb.6:
	ldr	x9, [x23]
Lloh23:
	adrp	x25, _MIB_FW_VERSION@GOTPAGE
Lloh24:
	ldr	x25, [x25, _MIB_FW_VERSION@GOTPAGEOFF]
	cmp	x9, #0
	b.gt	LBB0_8
; %bb.7:
	ldr	w9, [x23, #8]
	cmp	w9, #99
	ccmp	w24, w8, #4, le
	b.ne	LBB0_10
LBB0_8:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #8
	bl	_at76_get_mib
	tbnz	w0, #31, LBB0_10
; %bb.9:
	ldp	w8, w9, [x20]
	orr	w8, w9, w8
	cbnz	w8, LBB0_12
LBB0_10:
Lloh25:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x2, l_.str.4@PAGE
Lloh29:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_dev_printk
	mov	x0, x19
	mov	x1, x23
	bl	_at76_load_external_fw
	tbnz	w0, #31, LBB0_22
; %bb.11:
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #8
	bl	_at76_get_mib
	tbnz	w0, #31, LBB0_23
LBB0_12:
	mov	x0, x19
	bl	_at76_alloc_new_device
	cbz	x0, LBB0_15
; %bb.13:
	mov	x24, x0
	mov	x0, x21
	mov	x1, x24
	bl	_usb_set_intfdata
	add	x0, x24, #4
	mov	x1, x20
	mov	w2, #8
	bl	_memcpy
	str	w22, [x24]
	mov	x0, x24
	mov	x1, x21
	bl	_at76_init_new_device
	mov	x23, x0
	tbz	w0, #31, LBB0_20
; %bb.14:
	mov	x0, x24
	bl	_at76_delete_device
	b	LBB0_24
LBB0_15:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
	neg	w23, w21
	mov	x0, x20
	bl	_kfree
	cmp	w21, #1
	b.lt	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_usb_put_dev
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
Lloh32:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x2, l_.str.2@PAGE
Lloh36:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_dev_printk
	mov	x0, x19
	mov	x1, x23
	bl	_at76_load_internal_fw
	mov	x23, x0
	tbnz	w0, #31, LBB0_21
LBB0_20:
	mov	x0, x20
	bl	_kfree
	b	LBB0_18
LBB0_21:
	str	x23, [sp]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_24
LBB0_22:
	mov	x23, x0
	b	LBB0_24
LBB0_23:
	mov	x23, x0
	str	x23, [sp]
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_24:
	mov	x0, x20
	bl	_kfree
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_DBG_DEVSTART,4,2               ; @DBG_DEVSTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opmode %d"

	.comm	_OPMODE_HW_CONFIG_MODE,4,2      ; @OPMODE_HW_CONFIG_MODE
l_.str.1:                               ; @.str.1
	.asciz	"cannot handle a device in HW_CONFIG_MODE\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_OPMODE_NORMAL_NIC_WITH_FLASH,4,2 ; @OPMODE_NORMAL_NIC_WITH_FLASH
	.comm	_OPMODE_NORMAL_NIC_WITHOUT_FLASH,4,2 ; @OPMODE_NORMAL_NIC_WITHOUT_FLASH
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"downloading internal firmware\n"

l_.str.3:                               ; @.str.3
	.asciz	"error %d downloading internal firmware\n"

	.comm	_MIB_FW_VERSION,4,2             ; @MIB_FW_VERSION
l_.str.4:                               ; @.str.4
	.asciz	"downloading external firmware\n"

l_.str.5:                               ; @.str.5
	.asciz	"error %d getting firmware version\n"

	.no_dead_strip	_at76_probe
.subsections_via_symbols
