	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_dl_send_bulk
_brcmf_usb_dl_send_bulk:                ## @brcmf_usb_dl_send_bulk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.3:
	movl	%edx, %r8d
	movq	%rsi, %rcx
	movl	16(%r14), %edx
	movl	20(%r14), %esi
	movq	_brcmf_usb_sync_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, (%rsp)
	callq	_usb_fill_bulk_urb
	movq	_URB_ZERO_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rdi
	orl	%eax, (%rdi)
	movl	$0, (%r14)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_brcmf_err
	jmp	LBB0_6
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_brcmf_usb_ioctl_resp_wait
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_brcmf_usb_sync_complete,8,3    ## @brcmf_usb_sync_complete
	.comm	_URB_ZERO_PACKET,4,2            ## @URB_ZERO_PACKET
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb_submit_urb failed %d\n"

	.no_dead_strip	_brcmf_usb_dl_send_bulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_dl_send_bulk
_brcmf_usb_dl_send_bulk:                ; @brcmf_usb_dl_send_bulk
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x4, x2
	mov	x3, x1
	ldp	w2, w1, [x19, #16]
Lloh0:
	adrp	x8, _brcmf_usb_sync_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _brcmf_usb_sync_complete@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
	mov	x6, x19
	bl	_usb_fill_bulk_urb
Lloh3:
	adrp	x8, _URB_ZERO_PACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _URB_ZERO_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x0, [x19, #8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	str	wzr, [x19]
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_brcmf_err
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_brcmf_usb_ioctl_resp_wait
	cmp	w0, #0
	cset	w20, eq
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_brcmf_usb_sync_complete,8,3    ; @brcmf_usb_sync_complete
	.comm	_URB_ZERO_PACKET,4,2            ; @URB_ZERO_PACKET
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb_submit_urb failed %d\n"

	.no_dead_strip	_brcmf_usb_dl_send_bulk
.subsections_via_symbols
