	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_queue_requeue           ## -- Begin function cw1200_queue_requeue
	.p2align	4, 0x90
_cw1200_queue_requeue:                  ## @cw1200_queue_requeue
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	56(%rdi), %r15
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movl	%eax, %edi
	callq	_cw1200_queue_parse_id
	movq	48(%rbx), %r12
	movq	-56(%rbp), %r13
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	-64(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	setne	%dil
	callq	_BUG_ON
	movq	-72(%rbp), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_1
## %bb.3:
	movl	40(%rbx), %eax
	cmpq	%rax, -56(%rbp)
	jae	LBB0_4
## %bb.5:
	leaq	(%r13,%r13,2), %r13
	movq	(%r12,%r13,8), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.7:
	leaq	(%r12,%r13,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	decl	32(%rbx)
	movq	24(%rbx), %rax
	movq	16(%r12,%r13,8), %rcx
	incl	(%rax,%rcx,4)
	movq	%r15, %rdi
	callq	_spin_lock_bh
	incl	16(%r15)
	movq	8(%r15), %rax
	movq	16(%r12,%r13,8), %rcx
	incl	(%rax,%rcx,4)
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	-48(%rbp), %rax
	incq	%rax
	movq	%rax, -48(%rbp)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	-56(%rbp), %rcx
	callq	_cw1200_queue_mk_packet_id
	movl	%eax, 12(%r12,%r13,8)
	leaq	(%r12,%r13,8), %rdi
	addq	$8, %rdi
	addq	$20, %rbx
	movq	%rbx, %rsi
	callq	_list_move
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_queue_requeue           ; -- Begin function cw1200_queue_requeue
	.p2align	2
_cw1200_queue_requeue:                  ; @cw1200_queue_requeue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, x1
	mov	x20, x0
	ldr	x21, [x0, #56]
	add	x1, sp, #24
	add	x2, sp, #16
	add	x3, sp, #8
	mov	x4, sp
	mov	x0, x8
	bl	_cw1200_queue_parse_id
	ldr	x22, [x20, #48]
	ldr	x23, [sp]
	add	x19, x20, #16
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	x8, [sp, #16]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [sp, #24]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [sp]
	ldr	w9, [x20, #40]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
	mov	w8, #24
	madd	x24, x23, x8, x22
	ldr	x8, [x24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x20, #32]
	sub	w8, w8, #1
	str	w8, [x20, #32]
	ldr	x8, [x20, #24]
	mov	w9, #24
	madd	x22, x23, x9, x22
	ldr	x9, [x22, #16]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldr	x8, [x21, #8]
	ldr	x9, [x22, #16]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
	str	x8, [x24]
	ldp	x1, x0, [sp, #16]
	ldp	x3, x2, [sp]
	bl	_cw1200_queue_mk_packet_id
	str	w0, [x22, #12]
	add	x0, x22, #8
	add	x1, x20, #20
	bl	_list_move
	mov	w20, #0
	b	LBB0_8
LBB0_4:
	mov	w0, #1
	bl	_WARN_ON
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
LBB0_6:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
