	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_vendor_request       ## -- Begin function rt2x00usb_vendor_request
	.p2align	4, 0x90
_rt2x00usb_vendor_request:              ## @rt2x00usb_vendor_request
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	24(%rbp), %r13d
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_to_usb_device_intf
	movq	_USB_VENDOR_REQUEST_IN@GOTPCREL(%rip), %rcx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, (%rcx)
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	jne	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
LBB0_3:
	movl	%eax, %r12d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%r13d, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r13
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rbx
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_12
## %bb.4:
	addq	%r14, %r13
	movl	24(%rbp), %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	subq	$8, %rsp
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r15
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jns	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rt2x00usb_check_usb_error
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_6:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_8:
	movq	_DEVICE_STATE_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_rt2x00_err
LBB0_11:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_VENDOR_REQUEST_IN,4,2      ## @USB_VENDOR_REQUEST_IN
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_DEVICE_STATE_PRESENT,4,2       ## @DEVICE_STATE_PRESENT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Vendor Request 0x%02x failed for offset 0x%04x with error %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_vendor_request       ; -- Begin function rt2x00usb_vendor_request
	.p2align	2
_rt2x00usb_vendor_request:              ; @rt2x00usb_vendor_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x28, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	stp	w1, w3, [sp, #8]                ; 8-byte Folded Spill
	mov	x25, x2
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_usb_device_intf
	mov	x26, x0
Lloh0:
	adrp	x8, _USB_VENDOR_REQUEST_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_VENDOR_REQUEST_IN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	bl	_usb_sndctrlpipe
LBB0_3:
	mov	x27, x0
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x8]
	mov	x0, x28
	bl	_msecs_to_jiffies
	mov	x19, x0
Lloh6:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_8
; %bb.4:
	add	x19, x19, x20
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w20, w8, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	w20, [sp]
	mov	x0, x26
	mov	x1, x27
	ldp	w2, w5, [sp, #8]                ; 8-byte Folded Reload
	mov	x3, x25
	mov	x4, x24
	mov	x6, x23
	mov	x7, x22
	bl	_usb_control_msg
	tbz	w0, #31, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x0
	mov	x0, x21
	mov	x1, x28
	bl	_rt2x00usb_check_usb_error
	cbnz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	x0, [x8]
	mov	x1, x19
	bl	_time_before
	cbnz	x0, LBB0_5
	b	LBB0_11
LBB0_8:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w28, w8
	b	LBB0_12
LBB0_9:
	mov	w28, #0
	b	LBB0_12
LBB0_10:
Lloh15:
	adrp	x8, _DEVICE_STATE_PRESENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DEVICE_STATE_PRESENT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
LBB0_11:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	ldp	w2, w3, [sp, #8]                ; 8-byte Folded Reload
	mov	x4, x28
	bl	_rt2x00_err
LBB0_12:
	mov	x0, x28
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_VENDOR_REQUEST_IN,4,2      ; @USB_VENDOR_REQUEST_IN
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_DEVICE_STATE_PRESENT,4,2       ; @DEVICE_STATE_PRESENT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vendor Request 0x%02x failed for offset 0x%04x with error %d\n"

.subsections_via_symbols
