	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_msgbuf_get_pktid
_brcmf_msgbuf_get_pktid:                ## @brcmf_msgbuf_get_pktid
	.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
	movq	(%rsi), %rax
	cmpq	%rdx, %rax
	jbe	LBB0_1
## %bb.2:
	movq	16(%rsi), %r14
	movq	%rdx, %rbx
	shlq	$5, %rbx
	cmpq	$0, (%r14,%rbx)
	je	LBB0_4
## %bb.3:
	leaq	(%r14,%rbx), %r15
	movl	24(%r14,%rbx), %eax
	movq	8(%r14,%rbx), %rcx
	movq	(%rcx), %rdx
	subq	16(%r14,%rbx), %rdx
	movl	8(%rsi), %ecx
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	8(%r14,%rbx), %rbx
	movq	$0, (%r15)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rdx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_brcmf_err
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rdx, %rsi
	xorl	%eax, %eax
	callq	_brcmf_err
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid packet id %d (max %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid packet id %d (not in use)\n"

	.no_dead_strip	_brcmf_msgbuf_get_pktid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_msgbuf_get_pktid
_brcmf_msgbuf_get_pktid:                ; @brcmf_msgbuf_get_pktid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x1]
	cmp	x8, x2
	b.ls	LBB0_3
; %bb.1:
	ldr	x8, [x1, #16]
	add	x19, x8, x2, lsl #5
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x19, #24]
	ldp	x9, x10, [x19, #8]
	ldr	x9, [x9]
	sub	x2, x9, x10
	ldr	w3, [x1, #8]
	mov	x1, x8
	bl	_dma_unmap_single
	ldr	x0, [x19, #8]
	str	xzr, [x19]
	b	LBB0_6
LBB0_3:
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x2
	bl	_brcmf_err
	mov	x0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid packet id %d (max %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid packet id %d (not in use)\n"

	.no_dead_strip	_brcmf_msgbuf_get_pktid
.subsections_via_symbols
