	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_gen2_tx_init          ## -- Begin function iwl_pcie_gen2_tx_init
	.p2align	4, 0x90
_iwl_pcie_gen2_tx_init:                 ## @iwl_pcie_gen2_tx_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movl	%ebx, %edx
	movq	%rax, %r13
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_1
LBB0_5:
	xorl	%ecx, %ecx
	cmpl	%edx, (%r13)
	sete	%cl
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%edx, %r12d
	movl	%r14d, %edx
	callq	_iwl_pcie_txq_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_7
LBB0_1:
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	8(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rax,%rcx,8)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	$1, %ecx
	callq	_iwl_pcie_txq_alloc
	testl	%eax, %eax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	%r15, %rdi
	callq	_iwl_pcie_gen2_tx_free
	jmp	LBB0_8
LBB0_9:
	movq	8(%r13), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movl	%r12d, (%rax)
	movl	4(%r13), %esi
	movl	%r12d, %edi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough memory for tx queue\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Tx %d queue init failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Tx %d queue alloc failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_pcie_gen2_tx_init          ; -- Begin function iwl_pcie_gen2_tx_init
	.p2align	2
_iwl_pcie_gen2_tx_init:                 ; @iwl_pcie_gen2_tx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x21, x0
	ldr	x8, [x0, #8]
	mov	x9, x20
	sxtw	x25, w9
	ldr	x24, [x8, w20, sxtw #3]
	cbz	x24, LBB0_3
LBB0_1:
	ldr	w8, [x21]
	cmp	w8, w20
	cset	w3, eq
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	bl	_iwl_pcie_txq_init
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x24, x0
	ldr	x8, [x21, #8]
	str	x0, [x8, x25, lsl #3]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x22
	mov	w3, #1
	bl	_iwl_pcie_txq_alloc
	cbz	w0, LBB0_1
; %bb.5:
	mov	x23, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	str	x20, [sp]
	mov	x0, x19
	bl	_IWL_ERR
	mov	x0, x19
	bl	_iwl_pcie_gen2_tx_free
	b	LBB0_9
LBB0_7:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x25, lsl #3]
	str	w20, [x8]
	ldr	w1, [x21, #4]
	mov	x0, x20
	bl	_set_bit
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough memory for tx queue\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Tx %d queue init failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Tx %d queue alloc failed\n"

.subsections_via_symbols
