	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_trans_pcie_txq_disable     ## -- Begin function iwl_trans_pcie_txq_disable
	.p2align	4, 0x90
_iwl_trans_pcie_txq_disable:            ## @iwl_trans_pcie_txq_disable
	.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, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_SCD_TX_STTS_QUEUE_OFFSET
	movq	%rax, %r13
	movq	(%rbx), %rax
	movslq	%r15d, %r12
	movq	(%rax,%r12,8), %rax
	movq	$0, 8(%rax)
	movl	$0, (%rax)
	movl	8(%rbx), %esi
	movl	%r12d, %edi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	addq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_iwl_scd_txq_set_inactive
	leaq	_iwl_trans_pcie_txq_disable.zero_val(%rip), %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	_iwl_trans_pcie_txq_disable.zero_val(%rip), %rdx
	movl	%eax, %ecx
	callq	_iwl_trans_write_mem
LBB0_3:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_iwl_pcie_txq_unmap
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movl	$0, 4(%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_TX_QUEUES            ## TAILCALL
LBB0_4:
	movq	_STATUS_DEVICE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r15d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ONCE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @iwl_trans_pcie_txq_disable.zero_val
_iwl_trans_pcie_txq_disable.zero_val:
	.space	32

	.comm	_STATUS_DEVICE_ENABLED,4,2      ## @STATUS_DEVICE_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"queue %d not used"

L_.str.1:                               ## @.str.1
	.asciz	"Deactivate 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_disable     ; -- Begin function iwl_trans_pcie_txq_disable
	.p2align	2
_iwl_trans_pcie_txq_disable:            ; @iwl_trans_pcie_txq_disable
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
	mov	x21, x0
	ldr	x25, [x0, #16]
	mov	x0, x19
	bl	_SCD_TX_STTS_QUEUE_OFFSET
	mov	x23, x0
	ldr	x8, [x21]
	ldr	x8, [x8, w19, sxtw #3]
	str	xzr, [x8, #8]
	str	wzr, [x8]
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_test_and_clear_bit
	cbz	w0, LBB0_4
; %bb.1:
	sxtw	x24, w19
	cbz	w22, LBB0_3
; %bb.2:
	add	x22, x23, x25
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_scd_txq_set_inactive
Lloh0:
	adrp	x23, _iwl_trans_pcie_txq_disable.zero_val@PAGE
Lloh1:
	add	x23, x23, _iwl_trans_pcie_txq_disable.zero_val@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_iwl_trans_write_mem
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_iwl_pcie_txq_unmap
	ldr	x8, [x21]
	ldr	x8, [x8, x24, lsl #3]
	str	wzr, [x8, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_IWL_DEBUG_TX_QUEUES
LBB0_4:
Lloh4:
	adrp	x8, _STATUS_DEVICE_ENABLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STATUS_DEVICE_ENABLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_WARN_ONCE
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	3                               ; @iwl_trans_pcie_txq_disable.zero_val
_iwl_trans_pcie_txq_disable.zero_val:
	.space	32

	.comm	_STATUS_DEVICE_ENABLED,4,2      ; @STATUS_DEVICE_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"queue %d not used"

l_.str.1:                               ; @.str.1
	.asciz	"Deactivate queue %d\n"

.subsections_via_symbols
