	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_dyn_txq_alloc   ## -- Begin function iwl_trans_pcie_dyn_txq_alloc
	.p2align	4, 0x90
_iwl_trans_pcie_dyn_txq_alloc:          ## @iwl_trans_pcie_dyn_txq_alloc
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%rdi, %r14
	movl	16(%rbp), %eax
	movq	$0, -32(%rbp)
	movl	$0, -88(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movl	%ecx, -64(%rbp)
	movl	%edx, -60(%rbp)
	movl	%esi, -56(%rbp)
	movl	%r8d, -48(%rbp)
	movq	_CMD_WANT_SKB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -44(%rbp)
	leaq	-88(%rbp), %rcx
	movl	%ecx, -40(%rbp)
	movl	$40, -36(%rbp)
	leaq	-32(%rbp), %rsi
	movl	%r9d, %edx
	movl	%eax, %ecx
	callq	_iwl_trans_pcie_dyn_txq_alloc_dma
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	-32(%rbp), %rax
	movl	4(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -72(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -80(%rbp)
	movl	%r15d, %edi
	callq	_TFD_QUEUE_CB_SIZE
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -88(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_iwl_trans_send_cmd
	movq	-32(%rbp), %rsi
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iwl_pcie_gen2_txq_free_memory
	jmp	LBB0_4
LBB0_2:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_iwl_trans_pcie_txq_alloc_response
	movl	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_WANT_SKB,4,2               ## @CMD_WANT_SKB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_dyn_txq_alloc   ; -- Begin function iwl_trans_pcie_dyn_txq_alloc
	.p2align	2
_iwl_trans_pcie_dyn_txq_alloc:          ; @iwl_trans_pcie_dyn_txq_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x5
	mov	x19, x0
	stur	xzr, [x29, #-40]
	str	wzr, [sp, #16]
	stp	xzr, xzr, [sp, #24]
	stp	w3, w2, [sp, #40]
	str	w1, [sp, #48]
Lloh0:
	adrp	x8, _CMD_WANT_SKB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_WANT_SKB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w4, w8, [sp]
	add	x8, sp, #16
	mov	w9, #40
	stp	w8, w9, [sp, #8]
	sub	x1, x29, #40
	mov	x2, x5
	mov	x3, x6
	bl	_iwl_trans_pcie_dyn_txq_alloc_dma
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldur	x8, [x29, #-40]
	ldr	w0, [x8, #4]
	bl	_cpu_to_le64
	str	x0, [sp, #32]
	ldur	x8, [x29, #-40]
	ldr	w0, [x8]
	bl	_cpu_to_le64
	str	x0, [sp, #24]
	mov	x0, x20
	bl	_TFD_QUEUE_CB_SIZE
	bl	_cpu_to_le32
	str	w0, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_iwl_trans_send_cmd
	ldur	x1, [x29, #-40]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	bl	_iwl_pcie_gen2_txq_free_memory
	b	LBB0_4
LBB0_3:
	mov	x2, sp
	mov	x0, x19
	bl	_iwl_trans_pcie_txq_alloc_response
	mov	x21, x0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_WANT_SKB,4,2               ; @CMD_WANT_SKB
.subsections_via_symbols
