	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function iwl_trans_pcie_tx_reset
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_iwl_trans_pcie_tx_reset
	.p2align	4, 0x90
_iwl_trans_pcie_tx_reset:               ## @iwl_trans_pcie_tx_reset
	.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	%rdi, %r15
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %r14
	movq	(%r15), %rax
	movl	16(%rax), %edi
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	sarl	$8, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_iwl_write_direct32
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_iwl_pcie_txq_unmap
	incq	%rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %r12
	movq	(%rax), %r13
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_FH_MEM_CBBC_QUEUE
	movl	(%r12), %edx
	testq	%r13, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_iwl_write_direct64
	jmp	LBB0_6
LBB0_7:
	movq	_FH_KW_MEM_ADDR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	sarl	$4, %edx
	movq	%r15, %rdi
	callq	_iwl_write_direct32
	movq	%r15, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_pcie_tx_start              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FH_KW_MEM_ADDR_REG,4,2         ## @FH_KW_MEM_ADDR_REG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_tx_reset        ; -- Begin function iwl_trans_pcie_tx_reset
	.p2align	2
_iwl_trans_pcie_tx_reset:               ; @iwl_trans_pcie_tx_reset
	.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, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	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_2:
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	asr	w2, w2, #8
	mov	x0, x19
	bl	_iwl_write_direct32
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_pcie_txq_unmap
	add	x21, x21, #1
	stp	xzr, xzr, [x22, #8]
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldrsw	x9, [x9]
	cmp	x21, x9
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #8]
	ldr	x22, [x9, x21, lsl #3]
	ldr	x23, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_FH_MEM_CBBC_QUEUE
	mov	x1, x0
	ldr	w2, [x22]
	cbz	x23, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_iwl_write_direct64
	b	LBB0_5
LBB0_8:
Lloh0:
	adrp	x8, _FH_KW_MEM_ADDR_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FH_KW_MEM_ADDR_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x20]
	asr	w2, w8, #4
	mov	x0, x19
	bl	_iwl_write_direct32
	mov	x0, x19
	mov	w1, #0
	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
	b	_iwl_pcie_tx_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FH_KW_MEM_ADDR_REG,4,2         ; @FH_KW_MEM_ADDR_REG
.subsections_via_symbols
