	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_vendor_req_buff_lock ## -- Begin function rt2x00usb_vendor_req_buff_lock
	.p2align	4, 0x90
_rt2x00usb_vendor_req_buff_lock:        ## @rt2x00usb_vendor_req_buff_lock
	.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	%r9, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	cmpq	$0, (%rbx)
	sete	%al
	movq	_CSR_CACHE_SIZE@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_rt2x00_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movl	16(%rbp), %r10d
	movq	_USB_VENDOR_REQUEST_OUT@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	movl	16(%rbp), %r10d
LBB0_4:
	movq	(%rbx), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	%r15
	callq	_rt2x00usb_vendor_request
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_USB_VENDOR_REQUEST_IN@GOTPCREL(%rip), %rcx
	cmpq	%r13, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_CACHE_SIZE,8,3             ## @CSR_CACHE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSR cache not available\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_USB_VENDOR_REQUEST_OUT,8,3     ## @USB_VENDOR_REQUEST_OUT
	.comm	_USB_VENDOR_REQUEST_IN,8,3      ## @USB_VENDOR_REQUEST_IN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00usb_vendor_req_buff_lock ; -- Begin function rt2x00usb_vendor_req_buff_lock
	.p2align	2
_rt2x00usb_vendor_req_buff_lock:        ; @rt2x00usb_vendor_req_buff_lock
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x6
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x25, x1
	mov	x21, x0
	add	x0, x0, #8
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x8, [x21]
	cmp	x8, #0
Lloh0:
	adrp	x8, _CSR_CACHE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR_CACHE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ccmp	x8, x19, #8, ne
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_rt2x00_err
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh8:
	adrp	x8, _USB_VENDOR_REQUEST_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_VENDOR_REQUEST_OUT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
LBB0_4:
	ldr	x5, [x21]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	mov	x3, x24
	mov	w4, #0
	mov	x6, x19
	mov	x7, x23
	bl	_rt2x00usb_vendor_request
	cbnz	w0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _USB_VENDOR_REQUEST_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_VENDOR_REQUEST_IN@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_7
; %bb.6:
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_CACHE_SIZE,8,3             ; @CSR_CACHE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSR cache not available\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_USB_VENDOR_REQUEST_OUT,8,3     ; @USB_VENDOR_REQUEST_OUT
	.comm	_USB_VENDOR_REQUEST_IN,8,3      ; @USB_VENDOR_REQUEST_IN
.subsections_via_symbols
