	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_send_ctl
_brcmf_usb_send_ctl:                    ## @brcmf_usb_send_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
	leaq	8(%rbx), %rcx
	movl	%eax, 8(%rbx)
	movl	-28(%rbp), %eax
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	movl	-28(%rbp), %r9d
	movq	_brcmf_usb_ctlwrite_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	_brcmf_usb_ctlwrite_complete,8,3 ## @brcmf_usb_ctlwrite_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_send_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_send_ctl
_brcmf_usb_send_ctl:                    ; @brcmf_usb_send_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
	mov	x3, x19
	str	w0, [x3, #8]!
	ldr	w8, [sp, #12]
	ldr	x0, [x19]
	str	w8, [x0]
	stp	xzr, xzr, [x19, #24]
	ldp	w2, w1, [x19, #12]
	ldr	w5, [sp, #12]
Lloh5:
	adrp	x8, _brcmf_usb_ctlwrite_complete@GOTPAGE
Lloh6:
	ldr	x8, [x8, _brcmf_usb_ctlwrite_complete@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	mov	x4, x20
	mov	x7, x19
	bl	_usb_fill_control_urb
	ldr	x0, [x19]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	mov	x19, x0
	tbz	w0, #31, LBB0_7
; %bb.5:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_brcmf_err
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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	_brcmf_usb_ctlwrite_complete,8,3 ; @brcmf_usb_ctlwrite_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_send_ctl
.subsections_via_symbols
