	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_txq_alloc_response ## -- Begin function iwl_trans_pcie_txq_alloc_response
	.p2align	4, 0x90
_iwl_trans_pcie_txq_alloc_response:     ## @iwl_trans_pcie_txq_alloc_response
	.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, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r13
	movq	(%r12), %rdi
	callq	_iwl_rx_packet_payload_len
	xorl	%edi, %edi
	cmpl	$8, %eax
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	(%rax), %r15
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_le16_to_cpu
	movl	%eax, %r15d
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_3
## %bb.4:
	movl	8(%r13), %esi
	movl	%ebx, %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
LBB0_6:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_WARN_ONCE
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_iwl_free_resp
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_pcie_gen2_txq_free_memory
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, (%rdx)
	movq	(%r13), %rax
	movslq	%ebx, %rcx
	movq	%rdx, (%rax,%rcx,8)
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	decl	%eax
	andl	%r15d, %eax
	movl	%eax, 4(%rdx)
	movl	%eax, 8(%rdx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_IWL_DEBUG_TX_QUEUES
	movq	%r12, %rdi
	callq	_iwl_free_resp
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue index %d unsupported"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"queue %d already used"

L_.str.2:                               ## @.str.2
	.asciz	"Activate queue %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_txq_alloc_response ; -- Begin function iwl_trans_pcie_txq_alloc_response
	.p2align	2
_iwl_trans_pcie_txq_alloc_response:     ; @iwl_trans_pcie_txq_alloc_response
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x23, x0
	ldr	x0, [x19]
	bl	_iwl_rx_packet_payload_len
	cmp	w0, #8
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
	ldr	x24, [x8]
	ldr	w0, [x24, #4]
	bl	_le16_to_cpu
	mov	x22, x0
	ldr	w0, [x24]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.ge	LBB0_5
; %bb.3:
	ldr	w1, [x23, #8]
	mov	x0, x22
	bl	_test_and_set_bit
	cbz	x0, LBB0_9
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	w0, #1
	mov	x2, x22
	bl	_WARN_ONCE
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x19
	bl	_iwl_free_resp
	mov	x0, x20
	mov	x1, x21
	bl	_iwl_pcie_gen2_txq_free_memory
LBB0_8:
	mov	x0, x22
	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
LBB0_9:
	ldr	x8, [x23]
	str	x21, [x8, w22, sxtw #3]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w8, w8, w24
	stp	w22, w8, [x21]
	str	w8, [x21, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_IWL_DEBUG_TX_QUEUES
	mov	x0, x19
	bl	_iwl_free_resp
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue index %d unsupported"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"queue %d already used"

l_.str.2:                               ; @.str.2
	.asciz	"Activate queue %d\n"

.subsections_via_symbols
