	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_dump_mem
_iwl_fw_dump_mem:                       ## @iwl_fw_dump_mem
	.cfi_startproc
## %bb.0:
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	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
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	_IWL_FW_ERROR_DUMP_MEM@GOTPCREL(%rip), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	leal	24(%r15), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r14)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	movl	8(%r14), %edx
	movl	%r12d, %esi
	movl	%r15d, %ecx
	callq	_iwl_trans_read_mem_bytes
	movq	(%rbx), %rdi
	callq	_iwl_fw_error_next_data
	movq	%rax, (%rbx)
	movq	(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_INFO                 ## TAILCALL
LBB0_1:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FW_ERROR_DUMP_MEM,4,2      ## @IWL_FW_ERROR_DUMP_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT memory dump. Type=%u\n"

	.no_dead_strip	_iwl_fw_dump_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fw_dump_mem
_iwl_fw_dump_mem:                       ; @iwl_fw_dump_mem
	.cfi_startproc
; %bb.0:
	cbz	w2, LBB0_2
; %bb.1:
	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	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IWL_FW_ERROR_DUMP_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #16]
	add	w0, w21, #24
	bl	_cpu_to_le32
	ldr	x8, [x20]
	str	x0, [x8, #8]
	ldr	x8, [x20]
	ldr	x24, [x8]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x24]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x24, #16]
	ldr	w0, [x19]
	ldr	w2, [x24, #8]
	mov	x1, x22
	mov	x3, x21
	bl	_iwl_trans_read_mem_bytes
	ldr	x0, [x20]
	bl	_iwl_fw_error_next_data
	str	x0, [x20]
	ldr	x2, [x24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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_DEBUG_INFO
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FW_ERROR_DUMP_MEM,4,2      ; @IWL_FW_ERROR_DUMP_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT memory dump. Type=%u\n"

	.no_dead_strip	_iwl_fw_dump_mem
.subsections_via_symbols
