	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_probe                ## -- Begin function rt2x00usb_probe
	.p2align	4, 0x90
_rt2x00usb_probe:                       ## @rt2x00usb_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_interface_to_usbdev
	movq	%rax, %rdi
	callq	_usb_get_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_usb_reset_device
	movl	(%r13), %esi
	movl	$40, %edi
	callq	_ieee80211_alloc_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_usb_set_intfdata
	movq	(%r12), %rbx
	movq	%r15, 32(%rbx)
	movq	%r13, 24(%rbx)
	movq	%r12, 16(%rbx)
	movq	_RT2X00_CHIP_INTF_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rt2x00_set_chip_intf
	leaq	12(%rbx), %rdi
	movq	_rt2x00usb_work_rxdone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %rdi
	movq	_rt2x00usb_work_txdone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	4(%rbx), %rdi
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hrtimer_init
	movq	%rbx, %rdi
	callq	_rt2x00usb_alloc_reg
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_devm_kmalloc
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %edi
	callq	_init_usb_anchor
	movq	%rbx, %rdi
	callq	_rt2x00lib_probe_dev
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	callq	_usb_kill_anchored_urbs
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_rt2x00_probe_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_8:
	movq	%rbx, %rdi
	callq	_rt2x00usb_free_reg
LBB0_9:
	movq	%r12, %rdi
	callq	_ieee80211_free_hw
LBB0_10:
	movq	%r14, %rdi
	callq	_usb_put_dev
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_usb_set_intfdata
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate hardware\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RT2X00_CHIP_INTF_USB,4,2       ## @RT2X00_CHIP_INTF_USB
	.comm	_rt2x00usb_work_rxdone,4,2      ## @rt2x00usb_work_rxdone
	.comm	_rt2x00usb_work_txdone,4,2      ## @rt2x00usb_work_txdone
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_probe                ; -- Begin function rt2x00usb_probe
	.p2align	2
_rt2x00usb_probe:                       ; @rt2x00usb_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x19, x0
	bl	_interface_to_usbdev
	bl	_usb_get_dev
	mov	x20, x0
	bl	_usb_reset_device
	ldr	w1, [x23]
	mov	w0, #40
	bl	_ieee80211_alloc_hw
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_usb_set_intfdata
	ldr	x22, [x21]
	stp	x23, x19, [x22, #24]
	str	x21, [x22, #16]
Lloh0:
	adrp	x8, _RT2X00_CHIP_INTF_USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT2X00_CHIP_INTF_USB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_rt2x00_set_chip_intf
	add	x0, x22, #12
Lloh3:
	adrp	x8, _rt2x00usb_work_rxdone@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rt2x00usb_work_rxdone@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x22, #8
Lloh6:
	adrp	x8, _rt2x00usb_work_txdone@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rt2x00usb_work_txdone@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x22, #4
Lloh9:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_hrtimer_init
	mov	x0, x22
	bl	_rt2x00usb_alloc_reg
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.2:
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #4
	bl	_devm_kmalloc
	str	w0, [x22]
	cbz	w0, LBB0_6
; %bb.3:
	bl	_init_usb_anchor
	mov	x0, x22
	bl	_rt2x00lib_probe_dev
	mov	x23, x0
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w0, [x22]
	bl	_usb_kill_anchored_urbs
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rt2x00_probe_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x22
	bl	_rt2x00usb_free_reg
LBB0_8:
	mov	x0, x21
	bl	_ieee80211_free_hw
LBB0_9:
	mov	x0, x20
	bl	_usb_put_dev
	mov	x0, x19
	mov	x1, #0
	bl	_usb_set_intfdata
LBB0_10:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate hardware\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RT2X00_CHIP_INTF_USB,4,2       ; @RT2X00_CHIP_INTF_USB
	.comm	_rt2x00usb_work_rxdone,4,2      ; @rt2x00usb_work_rxdone
	.comm	_rt2x00usb_work_txdone,4,2      ; @rt2x00usb_work_txdone
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
