	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__iwl_fw_dbg_ini_collect        ## -- Begin function _iwl_fw_dbg_ini_collect
	.p2align	4, 0x90
__iwl_fw_dbg_ini_collect:               ## @_iwl_fw_dbg_ini_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_iwl_fw_ini_trigger_on
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_iwl_fw_ini_trigger_on
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	16(%r15), %r13
	movl	%r14d, %r12d
	movq	(%r13,%r12,8), %rax
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13,%r12,8), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	decq	%rax
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movq	(%r13,%r12,8), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rcx), %edi
	callq	_le32_to_cpu
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_IWL_WARN
	movl	24(%r15), %edi
	callq	_iwl_force_nmi
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_IWL_WARN
	jmp	LBB0_1
LBB0_8:
	movq	(%r15), %rdi
	cmpq	$-1, %rdi
	je	LBB0_9
## %bb.10:
	callq	_ffz
	movq	%rax, %r13
	movq	_IWL_FW_RUNTIME_DUMP_WK_NUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jae	LBB0_9
## %bb.11:
	movq	8(%r15), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movl	8(%rax,%rcx,4), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	8(%r15), %rax
	shlq	$2, %r13
	leaq	(,%r13,2), %r12
	addq	%r13, %r12
	movl	%r14d, (%rax,%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_IWL_WARN
	movq	8(%r15), %rax
	leaq	(%rax,%r12), %r14
	addq	$4, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_usecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WRT: Trigger %d is not active, aborting dump\n"

L_.str.1:                               ## @.str.1
	.asciz	"WRT: Force restart: trigger %d fired.\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IWL_FW_RUNTIME_DUMP_WK_NUM,8,3 ## @IWL_FW_RUNTIME_DUMP_WK_NUM
L_.str.2:                               ## @.str.2
	.asciz	"WRT: Collecting data: ini trigger %d fired.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__iwl_fw_dbg_ini_collect        ; -- Begin function _iwl_fw_dbg_ini_collect
	.p2align	2
__iwl_fw_dbg_ini_collect:               ; @_iwl_fw_dbg_ini_collect
	.cfi_startproc
; %bb.0:
	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	x20, x1
	mov	x19, x0
	bl	_iwl_fw_ini_trigger_on
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_fw_ini_trigger_on
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x22, [x19, #16]
	mov	w23, w20
	lsl	x24, x23, #3
	ldr	x8, [x22, x24]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	x8, [x22, x24]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	cbz	x0, LBB0_3
; %bb.6:
	sub	x0, x0, #1
	bl	_cpu_to_le32
	ldr	x8, [x22, x23, lsl #3]
	str	w0, [x8, #4]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	cbz	x0, LBB0_10
; %bb.7:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_WARN
	ldr	w0, [x19, #24]
	bl	_iwl_force_nmi
LBB0_8:
	mov	w0, #0
	b	LBB0_3
LBB0_9:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_WARN
	b	LBB0_1
LBB0_10:
	ldr	x0, [x19]
	cmn	x0, #1
	b.eq	LBB0_13
; %bb.11:
	bl	_ffz
Lloh6:
	adrp	x8, _IWL_FW_RUNTIME_DUMP_WK_NUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_FW_RUNTIME_DUMP_WK_NUM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_13
; %bb.12:
	mov	x22, x0
	ldr	x8, [x19, #8]
	mov	w9, #12
	madd	x8, x0, x9, x8
	ldr	w0, [x8, #8]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	ldr	x8, [x19, #8]
	add	x9, x22, x22, lsl #1
	lsl	x22, x9, #2
	str	w20, [x8, x22]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_IWL_WARN
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	add	x19, x8, #4
	mov	x0, x21
	bl	_usecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WRT: Trigger %d is not active, aborting dump\n"

l_.str.1:                               ; @.str.1
	.asciz	"WRT: Force restart: trigger %d fired.\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IWL_FW_RUNTIME_DUMP_WK_NUM,8,3 ; @IWL_FW_RUNTIME_DUMP_WK_NUM
l_.str.2:                               ; @.str.2
	.asciz	"WRT: Collecting data: ini trigger %d fired.\n"

.subsections_via_symbols
