	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_trans_pcie_dump_rbs
_iwl_trans_pcie_dump_rbs:               ## @iwl_trans_pcie_dump_rbs
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	callq	_IWL_TRANS_GET_PCIE_TRANS
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	leaq	4(%r15), %rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_iwl_get_closed_rb_stts
	movl	%eax, %edi
	callq	_le16_to_cpu
	andl	$4095, %eax                     ## imm = 0xFFF
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movl	(%r15), %r12d
	xorl	%ebx, %ebx
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r12d
	je	LBB0_6
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	40(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	addl	$16, %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$1, %eax
	xorl	%ebx, %ebx
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	-104(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	addl	-68(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%r12d, %r12
	movq	(%rax,%r12,8), %r13
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	4(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dma_unmap_page
	movq	_IWL_FW_ERROR_DUMP_RB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14), %rax
	movq	(%rax), %rbx
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	(%rbx), %r15d
	movl	(%r13), %edi
	callq	_page_address
	movl	%r15d, %edi
	movl	%eax, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_dma_map_page
	movl	%eax, 4(%r13)
	movq	(%r14), %rdi
	callq	_iwl_fw_error_next_data
	movq	%rax, (%r14)
	incl	%r12d
	movq	_RX_QUEUE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	cmpl	-72(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leal	1(%rcx), %eax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	cmpl	%r13d, %ecx
                                        ## kill: def $eax killed $eax def $rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jl	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_6:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_IWL_FW_ERROR_DUMP_RB,4,2       ## @IWL_FW_ERROR_DUMP_RB
	.comm	_RX_QUEUE_MASK,4,2              ## @RX_QUEUE_MASK
	.no_dead_strip	_iwl_trans_pcie_dump_rbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_trans_pcie_dump_rbs
_iwl_trans_pcie_dump_rbs:               ; @iwl_trans_pcie_dump_rbs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x27, x2
	mov	x21, x1
	mov	x22, x0
	bl	_IWL_TRANS_GET_PCIE_TRANS
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	ldr	w20, [x0]
	ldr	x24, [x0, #8]
	add	x23, x24, #4
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x22
	mov	x1, x24
	bl	_iwl_get_closed_rb_stts
	bl	_le16_to_cpu
	and	w9, w0, #0xfff
	ldr	w25, [x24]
	cmp	w25, w9
	ccmp	w27, #1, #8, ne
	str	x23, [sp]                       ; 8-byte Folded Spill
	b.ge	LBB0_2
; %bb.1:
	mov	w24, #0
	b	LBB0_5
LBB0_2:
	str	x22, [sp, #8]                   ; 8-byte Folded Spill
	str	x24, [sp, #24]                  ; 8-byte Folded Spill
	mov	w24, #0
	lsl	w26, w19, w20
	add	w10, w26, #40
	add	w8, w26, #16
	stp	w8, w10, [sp, #16]              ; 8-byte Folded Spill
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x19, [x8, w25, sxtw #3]
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, x26
	mov	x20, x9
	bl	_dma_unmap_page
Lloh6:
	adrp	x8, _IWL_FW_ERROR_DUMP_RB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_RB@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #16]
	ldr	w0, [sp, #16]                   ; 4-byte Folded Reload
	bl	_cpu_to_le32
	ldr	x8, [x21]
	str	x0, [x8, #8]
	ldr	x8, [x21]
	ldr	x28, [x8]
	mov	x0, x25
	bl	_cpu_to_le32
	str	x0, [x28, #8]
	ldr	w28, [x28]
	ldr	w0, [x19]
	bl	_page_address
	mov	x1, x0
	mov	x0, x28
	mov	x2, x26
	bl	_memcpy
	ldr	w0, [x22]
	ldr	w1, [x19]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	w2, #0
	mov	x3, x26
	bl	_dma_map_page
	str	w0, [x19, #4]
	ldr	x0, [x21]
	bl	_iwl_fw_error_next_data
	str	x0, [x21]
	add	w8, w25, #1
Lloh12:
	adrp	x9, _RX_QUEUE_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RX_QUEUE_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w25, w9, w8
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	add	w24, w24, w8
	cmp	w25, w20
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x20
	add	w8, w23, #1
	cmp	w23, w27
	mov	x23, x8
	b.lt	LBB0_3
LBB0_5:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_spin_unlock
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_IWL_FW_ERROR_DUMP_RB,4,2       ; @IWL_FW_ERROR_DUMP_RB
	.comm	_RX_QUEUE_MASK,4,2              ; @RX_QUEUE_MASK
	.no_dead_strip	_iwl_trans_pcie_dump_rbs
.subsections_via_symbols
