	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_prec_enq
_brcmf_sdio_prec_enq:                   ## @brcmf_sdio_prec_enq
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$-1, -36(%rbp)
	movl	%edx, %esi
	callq	_pktq_pfull
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_pktq_full
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pktq_pfull
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	%ebx, -36(%rbp)
	movl	%ebx, %esi
LBB0_7:
	testl	%esi, %esi
	js	LBB0_12
## %bb.8:
	xorl	%eax, %eax
	cmpl	%ebx, %esi
	je	LBB0_15
## %bb.9:
	movq	%r15, %rdi
	callq	_brcmu_pktq_pdeq_tail
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	callq	_brcmf_err
LBB0_11:
	movq	%r12, %rdi
	callq	_brcmu_pkt_buf_free_skb
	jmp	LBB0_12
LBB0_5:
	movq	%r15, %rdi
	callq	_pktq_full
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_brcmu_pktq_peek_tail
	movl	-36(%rbp), %esi
	xorl	%eax, %eax
	cmpl	%ebx, %esi
	jle	LBB0_7
	jmp	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_brcmu_pktq_penq
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
LBB0_14:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	setne	%al
	jmp	LBB0_15
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_brcmu_pktq_penq
	movl	$1, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"brcmu_pktq_pdeq_tail() failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"brcmu_pktq_penq() failed\n"

	.no_dead_strip	_brcmf_sdio_prec_enq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_prec_enq
_brcmf_sdio_prec_enq:                   ; @brcmf_sdio_prec_enq
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w8, #-1
	str	w8, [sp, #12]
	mov	x1, x2
	bl	_pktq_pfull
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_pktq_full
	cbz	x0, LBB0_15
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_pktq_pfull
	cbz	x0, LBB0_9
; %bb.3:
	str	w20, [sp, #12]
	mov	x1, x20
LBB0_4:
	tbnz	w1, #31, LBB0_12
; %bb.5:
	cmp	w1, w20
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_brcmu_pktq_pdeq_tail
	mov	x22, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_brcmf_err
LBB0_8:
	mov	x0, x22
	bl	_brcmu_pkt_buf_free_skb
	b	LBB0_12
LBB0_9:
	mov	x0, x21
	bl	_pktq_full
	cbz	x0, LBB0_12
; %bb.10:
	add	x1, sp, #12
	mov	x0, x21
	bl	_brcmu_pktq_peek_tail
	ldr	w1, [sp, #12]
	cmp	w1, w20
	b.le	LBB0_4
LBB0_11:
	mov	w0, #0
	b	LBB0_16
LBB0_12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_brcmu_pktq_penq
	mov	x19, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
LBB0_14:
	cmp	x19, #0
	cset	w0, ne
	b	LBB0_16
LBB0_15:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_brcmu_pktq_penq
	mov	w0, #1
LBB0_16:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"brcmu_pktq_pdeq_tail() failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"brcmu_pktq_penq() failed\n"

	.no_dead_strip	_brcmf_sdio_prec_enq
.subsections_via_symbols
