	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_usb_tx
_brcmf_usb_tx:                          ## @brcmf_usb_tx
	.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	%rsi, %rbx
	movq	%rdi, %r14
	callq	_brcmf_usb_get_businfo
	movq	%rax, %r13
	movq	_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_brcmf_dbg
	movq	40(%r13), %rax
	movq	_BRCMFMAC_USB_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	leaq	24(%r13), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_brcmf_usb_deq
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rbx, (%rax)
	movq	%r13, 16(%rax)
	movq	8(%rax), %rdi
	movl	32(%r13), %edx
	movl	36(%r13), %esi
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	movq	_brcmf_usb_tx_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	callq	_usb_fill_bulk_urb
	movq	_URB_ZERO_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r12), %rcx
	orl	%eax, (%rcx)
	leaq	28(%r13), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_brcmf_usb_enq
	movq	8(%r12), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	_brcmf_err
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_brcmf_usb_del_fromq
	movq	$0, (%r12)
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_brcmf_usb_enq
	jmp	LBB0_11
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rbx
	addq	$20, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	cmpq	8(%r13), %rax
	jge	LBB0_10
## %bb.8:
	cmpl	$0, 16(%r13)
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_brcmf_proto_bcdc_txflowblock
	movl	$1, 16(%r13)
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_USB,4,2                        ## @USB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, skb=%p\n"

	.comm	_BRCMFMAC_USB_STATE_UP,8,3      ## @BRCMFMAC_USB_STATE_UP
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"no req to send\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_brcmf_usb_tx_complete,4,2      ## @brcmf_usb_tx_complete
	.comm	_URB_ZERO_PACKET,4,2            ## @URB_ZERO_PACKET
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"brcmf_usb_tx usb_submit_urb FAILED\n"

	.no_dead_strip	_brcmf_usb_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_usb_tx
_brcmf_usb_tx:                          ; @brcmf_usb_tx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x20, x0
	bl	_brcmf_usb_get_businfo
	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
	mov	x2, x23
	bl	_brcmf_dbg
	ldr	x8, [x19, #40]
Lloh5:
	adrp	x9, _BRCMFMAC_USB_STATE_UP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRCMFMAC_USB_STATE_UP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	add	x21, x19, #24
	mov	x0, x19
	mov	x1, x21
	mov	x2, x19
	bl	_brcmf_usb_deq
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	str	x23, [x0]
	str	x19, [x0, #16]
	ldr	x0, [x0, #8]
	ldp	w2, w1, [x19, #32]
	ldp	w4, w3, [x23]
Lloh8:
	adrp	x8, _brcmf_usb_tx_complete@GOTPAGE
Lloh9:
	ldr	x8, [x8, _brcmf_usb_tx_complete@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x6, x22
	bl	_usb_fill_bulk_urb
Lloh11:
	adrp	x8, _URB_ZERO_PACKET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _URB_ZERO_PACKET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x22, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	add	x1, x19, #28
	mov	x0, x19
	mov	x2, x22
	mov	x3, #0
	bl	_brcmf_usb_enq
	ldr	x0, [x22, #8]
Lloh14:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_usb_submit_urb
	cbz	w0, LBB0_8
; %bb.3:
	mov	x23, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_brcmf_err
	mov	x0, x19
	mov	x1, x22
	bl	_brcmf_usb_del_fromq
	str	xzr, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_brcmf_usb_enq
	b	LBB0_7
LBB0_4:
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	add	x21, x19, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.9:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_11
; %bb.10:
	mov	w22, #1
	mov	x0, x20
	mov	w1, #1
	bl	_brcmf_proto_bcdc_txflowblock
	str	w22, [x19, #16]
LBB0_11:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w23, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_USB,4,2                        ; @USB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, skb=%p\n"

	.comm	_BRCMFMAC_USB_STATE_UP,8,3      ; @BRCMFMAC_USB_STATE_UP
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"no req to send\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_brcmf_usb_tx_complete,4,2      ; @brcmf_usb_tx_complete
	.comm	_URB_ZERO_PACKET,4,2            ; @URB_ZERO_PACKET
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"brcmf_usb_tx usb_submit_urb FAILED\n"

	.no_dead_strip	_brcmf_usb_tx
.subsections_via_symbols
