	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_error_dump
_iwl_fw_error_dump:                     ## @iwl_fw_error_dump
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	leaq	-48(%rbp), %rsi
	callq	_iwl_fw_error_dump_file
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	(%r15), %rdi
	xorl	%esi, %esi
	cmpq	$1, 8(%r15)
	sbbq	%rsi, %rsi
	movq	_IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	andq	%r14, %rsi
	callq	_iwl_trans_dump_data
	movq	%rax, -48(%rbp)
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movq	%rax, -32(%rbp)
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	addq	%rax, %r14
	movq	%r14, %rdi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_alloc_sgtable
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sg_nents
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_sg_pcopy_from_buffer
	cmpq	$0, -48(%rbp)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_sg_nents
	movq	-48(%rbp), %rdx
	movq	-32(%rbp), %r8
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_sg_pcopy_from_buffer
LBB0_6:
	movq	(%r15), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dev_coredumpsg
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_vfree
	movq	-48(%rbp), %rdi
	callq	_vfree
LBB0_8:
	movq	%r15, %rdi
	callq	_iwl_fw_free_dump_desc
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FW_ERROR_DUMP_FW_MONITOR,8,3 ## @IWL_FW_ERROR_DUMP_FW_MONITOR
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_iwl_fw_error_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fw_error_dump
_iwl_fw_error_dump:                     ; @iwl_fw_error_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x8, [x0, #16]
	ldr	x20, [x8]
	add	x1, sp, #8
	bl	_iwl_fw_error_dump_file
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_FW_ERROR_DUMP_FW_MONITOR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	x0, x9, [x19]
	cmp	x9, #0
	csinv	x8, x8, xzr, ne
	and	x1, x8, x20
	bl	_iwl_trans_dump_data
	str	x0, [sp, #8]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x20, x0
	str	x0, [sp, #24]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	add	x20, x8, x20
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [x21]
LBB0_3:
	mov	x0, x20
	bl	_alloc_sgtable
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	bl	_sg_nents
	mov	x1, x0
	ldp	x2, x3, [sp, #16]
	mov	x0, x21
	mov	x4, #0
	bl	_sg_pcopy_from_buffer
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_sg_nents
	mov	x1, x0
	ldr	x8, [sp, #8]
	ldr	x4, [sp, #24]
	ldp	x3, x2, [x8]
	mov	x0, x21
	bl	_sg_pcopy_from_buffer
LBB0_6:
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x1, x21
	mov	x2, x20
	bl	_dev_coredumpsg
LBB0_7:
	ldr	x0, [sp, #16]
	bl	_vfree
	ldr	x0, [sp, #8]
	bl	_vfree
LBB0_8:
	mov	x0, x19
	bl	_iwl_fw_free_dump_desc
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FW_ERROR_DUMP_FW_MONITOR,8,3 ; @IWL_FW_ERROR_DUMP_FW_MONITOR
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_iwl_fw_error_dump
.subsections_via_symbols
