	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_fw_dbg_collect             ## -- Begin function iwl_fw_dbg_collect
	.p2align	4, 0x90
_iwl_fw_dbg_collect:                    ## @iwl_fw_dbg_collect
	.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
	movq	%rcx, %r12
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	%r8, %rbx
	movl	12(%r8), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_IWL_FW_DBG_FORCE_RESTART@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_IWL_WARN
	movl	(%r14), %edi
	callq	_iwl_force_nmi
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	decq	%r13
	movq	%r13, %rdi
	callq	_cpu_to_le16
	movl	%eax, 12(%rbx)
	movq	_IWL_FW_DBG_TRIGGER_MONITOR_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	4(%rbx), %r13d
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_USEC_PER_MSEC@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
LBB0_6:
	leal	16(%r12), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	%rax, %rbx
	movq	%r12, (%rax)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le32
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%r15d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_fw_dbg_collect_desc        ## TAILCALL
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_FW_DBG_FORCE_RESTART,4,2   ## @IWL_FW_DBG_FORCE_RESTART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Force restart: trigger %d fired.\n"

	.comm	_IWL_FW_DBG_TRIGGER_MONITOR_ONLY,4,2 ## @IWL_FW_DBG_TRIGGER_MONITOR_ONLY
	.comm	_USEC_PER_MSEC,4,2              ## @USEC_PER_MSEC
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_fw_dbg_collect             ; -- Begin function iwl_fw_dbg_collect
	.p2align	2
_iwl_fw_dbg_collect:                    ; @iwl_fw_dbg_collect
	.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	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	x4, LBB0_4
; %bb.1:
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	mov	x24, x0
	ldr	w0, [x23, #12]
	bl	_le16_to_cpu
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IWL_FW_DBG_FORCE_RESTART@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_FW_DBG_FORCE_RESTART@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_IWL_WARN
	ldr	w0, [x19]
	bl	_iwl_force_nmi
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	w24, #0
	b	LBB0_6
LBB0_5:
	sub	x0, x24, #1
	bl	_cpu_to_le16
	str	w0, [x23, #12]
Lloh5:
	adrp	x8, _IWL_FW_DBG_TRIGGER_MONITOR_ONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IWL_FW_DBG_TRIGGER_MONITOR_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w9, w0, [x23, #4]
	and	w23, w8, w9
	bl	_le32_to_cpu
Lloh8:
	adrp	x8, _USEC_PER_MSEC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USEC_PER_MSEC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mul	w24, w8, w0
LBB0_6:
	add	w0, w20, #16
Lloh11:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x25, x0
	str	x20, [x0]
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [x25, #12]
	ldr	w0, [x25, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	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_fw_dbg_collect_desc
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_FW_DBG_FORCE_RESTART,4,2   ; @IWL_FW_DBG_FORCE_RESTART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Force restart: trigger %d fired.\n"

	.comm	_IWL_FW_DBG_TRIGGER_MONITOR_ONLY,4,2 ; @IWL_FW_DBG_TRIGGER_MONITOR_ONLY
	.comm	_USEC_PER_MSEC,4,2              ; @USEC_PER_MSEC
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
