	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pno_remove_request
_brcmf_pno_remove_request:              ## @brcmf_pno_remove_request
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%r12), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdx
	cmpq	%r15, (%rdx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_brcmf_dbg
	movl	(%r12), %r8d
	xorl	%r15d, %r15d
	movl	%r8d, %eax
	decl	%eax
	movl	%eax, (%r12)
	je	LBB0_16
## %bb.9:
	cmpl	%eax, %ebx
	je	LBB0_16
## %bb.10:
	jge	LBB0_16
## %bb.11:
	movl	%ebx, %edi
	movl	%ebx, %esi
	notl	%esi
	addl	%r8d, %esi
	subl	%ebx, %r8d
	addl	$-2, %r8d
	andl	$3, %esi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rbx
	leaq	1(%rdi), %rdx
	movq	8(%rbx,%rdi,8), %rcx
	movq	%rcx, (%rbx,%rdi,8)
	movq	%rdx, %rdi
	decl	%esi
	jne	LBB0_13
## %bb.14:
	cmpl	$3, %r8d
	jae	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	%rdi, %rdx
	cmpl	$3, %r8d
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	8(%rcx,%rdx,8), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	movq	8(%r12), %rcx
	movq	16(%rcx,%rdx,8), %rsi
	movq	%rsi, 8(%rcx,%rdx,8)
	movq	8(%r12), %rcx
	movq	24(%rcx,%rdx,8), %rsi
	movq	%rsi, 16(%rcx,%rdx,8)
	movq	8(%r12), %rcx
	movq	32(%rcx,%rdx,8), %rsi
	movq	%rsi, 24(%rcx,%rdx,8)
	leaq	4(%rdx), %rcx
	movq	%rcx, %rdx
	cmpl	%ecx, %eax
	jg	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reqid not found\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SCAN,4,2                       ## @SCAN
L_.str.1:                               ## @.str.1
	.asciz	"reqid=%llu\n"

	.no_dead_strip	_brcmf_pno_remove_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pno_remove_request
_brcmf_pno_remove_request:              ; @brcmf_pno_remove_request
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	ldr	x9, [x20, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x22, lsl #3]
	ldr	x10, [x10]
	cmp	x10, x21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_2
; %bb.4:
	mov	x22, x8
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	cmp	w22, w8
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_8
; %bb.7:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_8:
Lloh5:
	adrp	x8, _SCAN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCAN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_brcmf_dbg
	mov	w21, #0
	ldr	w8, [x20]
	subs	w8, w8, #1
	str	w8, [x20]
	b.eq	LBB0_14
; %bb.9:
	cmp	w22, w8
	b.eq	LBB0_14
; %bb.10:
	b.ge	LBB0_14
; %bb.11:
	mov	w9, w22
	lsl	x9, x9, #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x20, #8]
	add	x10, x10, x9
	ldr	x11, [x10, #8]
	str	x11, [x10]
	add	x9, x9, #8
	add	w22, w22, #1
	cmp	w8, w22
	b.gt	LBB0_12
; %bb.13:
	mov	w21, #0
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reqid not found\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SCAN,4,2                       ; @SCAN
l_.str.1:                               ; @.str.1
	.asciz	"reqid=%llu\n"

	.no_dead_strip	_brcmf_pno_remove_request
.subsections_via_symbols
