	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_msgbuf_tx_queue_data
_brcmf_msgbuf_tx_queue_data:            ## @brcmf_msgbuf_tx_queue_data
	.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	%rdx, %rbx
	movl	%esi, %r13d
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %r12
	movq	8(%rdx), %rax
	movl	(%rax), %esi
	movl	(%rdx), %edx
	movq	%r12, %rdi
	movl	%r13d, %ecx
	callq	_brcmf_flowring_lookup
	movq	%rax, %r15
	movq	_BRCMF_FLOWRING_INVALID_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%rax, %r13
	callq	_brcmf_msgbuf_flowring_create
	movq	%rax, %r15
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_brcmf_flowring_enqueue
	movq	_BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%rcx
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_6:
	xorl	%eax, %eax
	testq	%rdx, %rdx
	sete	%al
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_brcmf_msgbuf_schedule_txdata
	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	_BRCMF_FLOWRING_INVALID_ID,8,3  ## @BRCMF_FLOWRING_INVALID_ID
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS,8,3 ## @BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS
	.no_dead_strip	_brcmf_msgbuf_tx_queue_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_msgbuf_tx_queue_data
_brcmf_msgbuf_tx_queue_data:            ; @brcmf_msgbuf_tx_queue_data
	.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	x20, x2
	mov	x23, x1
	ldr	x8, [x0]
	ldr	x19, [x8]
	ldr	x21, [x19]
	ldr	x8, [x2, #8]
	ldr	w1, [x8]
	ldr	w2, [x2]
	mov	x0, x21
	mov	x3, x23
	bl	_brcmf_flowring_lookup
	mov	x22, x0
Lloh0:
	adrp	x24, _BRCMF_FLOWRING_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _BRCMF_FLOWRING_INVALID_ID@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_brcmf_msgbuf_flowring_create
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_brcmf_flowring_enqueue
Lloh5:
	adrp	x8, _BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sdiv	x9, x0, x8
	msub	x8, x9, x8, x0
	cmp	x8, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x22
	bl	_brcmf_msgbuf_schedule_txdata
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMF_FLOWRING_INVALID_ID,8,3  ; @BRCMF_FLOWRING_INVALID_ID
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS,8,3 ; @BRCMF_MSGBUF_TRICKLE_TXWORKER_THRS
	.no_dead_strip	_brcmf_msgbuf_tx_queue_data
.subsections_via_symbols
