	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_dump_prph
_iwl_dump_prph:                         ## @iwl_dump_prph
	.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
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_INFO
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_trans_grab_nic_access
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %ebx
	movq	_IWL_FW_ERROR_DUMP_PRPH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	4(%r15,%r14,8), %ebx
	callq	_cpu_to_le32
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx)
	addl	$20, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r13), %rax
	movq	(%rax), %rbx
	movl	4(%r15,%r14,8), %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	(%r15,%r14,8), %edx
	movl	4(%r15,%r14,8), %esi
	subl	%esi, %edx
	addl	$4, %edx
	movq	(%rbx), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_iwl_read_prph_block
	movq	(%r13), %rdi
	callq	_iwl_fw_error_next_data
	movq	%rax, (%r13)
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_4
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_iwl_trans_release_nic_access
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT PRPH dump\n"

	.comm	_IWL_FW_ERROR_DUMP_PRPH,4,2     ## @IWL_FW_ERROR_DUMP_PRPH
	.no_dead_strip	_iwl_dump_prph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_dump_prph
_iwl_dump_prph:                         ; @iwl_dump_prph
	.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
	cbz	x3, LBB0_6
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_IWL_DEBUG_INFO
	add	x1, sp, #8
	mov	x0, x21
	bl	_iwl_trans_grab_nic_access
	cbz	w0, LBB0_6
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	add	x22, x22, #4
Lloh2:
	adrp	x23, _IWL_FW_ERROR_DUMP_PRPH@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IWL_FW_ERROR_DUMP_PRPH@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w24, w25, [x22, #-4]
	ldr	w0, [x23]
	bl	_cpu_to_le32
	ldr	x8, [x19]
	str	x0, [x8, #16]
	sub	w8, w24, w25
	add	w0, w8, #20
	bl	_cpu_to_le32
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x24, [x8]
	ldr	w0, [x22]
	bl	_cpu_to_le32
	str	x0, [x24, #8]
	ldp	w8, w1, [x22, #-4]
	sub	w8, w8, w1
	add	w2, w8, #4
	ldr	x3, [x24]
	mov	x0, x21
	bl	_iwl_read_prph_block
	ldr	x0, [x19]
	bl	_iwl_fw_error_next_data
	str	x0, [x19]
	add	x22, x22, #8
	subs	x20, x20, #1
	b.ne	LBB0_4
LBB0_5:
	add	x1, sp, #8
	mov	x0, x21
	bl	_iwl_trans_release_nic_access
LBB0_6:
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT PRPH dump\n"

	.comm	_IWL_FW_ERROR_DUMP_PRPH,4,2     ; @IWL_FW_ERROR_DUMP_PRPH
	.no_dead_strip	_iwl_dump_prph
.subsections_via_symbols
