	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_recv_ctl
_brcmf_usb_recv_ctl:                    ## @brcmf_usb_recv_ctl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_brcmf_dbg
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.5:
	movl	%r15d, -28(%rbp)
	leaq	-28(%rbp), %rdi
	callq	_cpu_to_le16p
	movl	%eax, 16(%rbx)
	movl	-28(%rbp), %eax
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	8(%rbx), %rcx
	movl	%edx, 8(%rbx)
	movl	$1, 12(%rbx)
	movl	20(%rbx), %edx
	movl	24(%rbx), %esi
	movl	-28(%rbp), %r9d
	movq	_brcmf_usb_ctlread_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r14, %r8
	pushq	%rbx
	pushq	%rax
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movq	(%rbx), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_brcmf_err
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_brcmf_usb_ctlread_complete,8,3 ## @brcmf_usb_ctlread_complete
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.1:                               ## @.str.1
	.asciz	"usb_submit_urb failed %d\n"

	.no_dead_strip	_brcmf_usb_recv_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_recv_ctl
_brcmf_usb_recv_ctl:                    ; @brcmf_usb_recv_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _USB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cbz	x19, LBB0_6
; %bb.1:
	cbz	x20, LBB0_6
; %bb.2:
	cbz	w21, LBB0_6
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.4:
	str	w21, [sp, #12]
	add	x0, sp, #12
	bl	_cpu_to_le16p
	ldr	w9, [sp, #12]
	ldr	x8, [x19]
	str	w9, [x8]
Lloh5:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _USB_TYPE_CLASS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _USB_RECIP_INTERFACE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w9, w10
	mov	x3, x19
	str	w9, [x3, #8]!
	mov	w9, #1
	stp	w9, w0, [x19, #12]
	ldp	w2, w1, [x19, #20]
	ldr	w5, [sp, #12]
Lloh14:
	adrp	x9, _brcmf_usb_ctlread_complete@GOTPAGE
Lloh15:
	ldr	x9, [x9, _brcmf_usb_ctlread_complete@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x9]
	mov	x0, x8
	mov	x4, x20
	mov	x7, x19
	bl	_usb_fill_control_urb
	ldr	x0, [x19]
Lloh17:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x19, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_brcmf_err
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_brcmf_usb_ctlread_complete,8,3 ; @brcmf_usb_ctlread_complete
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.1:                               ; @.str.1
	.asciz	"usb_submit_urb failed %d\n"

	.no_dead_strip	_brcmf_usb_recv_ctl
.subsections_via_symbols
