	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_dbg_collect_sync
_iwl_fw_dbg_collect_sync:               ## @iwl_fw_dbg_collect_sync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -24(%rbp)
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	16(%rbx), %edi
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_STATUS_TRANS_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_iwl_fw_dbg_stop_restart_recording
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_IWL_ERR
LBB0_14:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_ERR
	movq	%rbx, %rdi
	callq	_iwl_fw_free_dump_desc
	jmp	LBB0_14
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_FW_INFO
	movq	8(%rbx), %rdi
	callq	_iwl_trans_dbg_ini_valid
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	%r14d, %esi
	callq	_iwl_fw_error_ini_dump
	jmp	LBB0_13
LBB0_12:
	callq	_iwl_fw_error_dump
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_FW_INFO
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iwl_fw_dbg_stop_restart_recording
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Firmware not running - cannot dump error\n"

	.comm	_STATUS_TRANS_DEAD,4,2          ## @STATUS_TRANS_DEAD
L_.str.1:                               ## @.str.1
	.asciz	"Skip fw error dump since bus is dead\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to stop DBGC recording, aborting dump\n"

L_.str.3:                               ## @.str.3
	.asciz	"WRT: Data collection start\n"

L_.str.4:                               ## @.str.4
	.asciz	"WRT: Data collection done\n"

	.no_dead_strip	_iwl_fw_dbg_collect_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_fw_dbg_collect_sync
_iwl_fw_dbg_collect_sync:               ; @iwl_fw_dbg_collect_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #8]
	mov	x0, x1
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	blr	x8
	cbz	w0, LBB0_11
LBB0_4:
Lloh0:
	adrp	x8, _STATUS_TRANS_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_TRANS_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_iwl_fw_dbg_stop_restart_recording
	cbz	x0, LBB0_12
; %bb.7:
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_IWL_ERR
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_clear_bit
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	x0, x19
	bl	_iwl_fw_free_dump_desc
	b	LBB0_9
LBB0_12:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_FW_INFO
	ldr	x0, [x19, #8]
	bl	_iwl_trans_dbg_ini_valid
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_iwl_fw_error_ini_dump
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_iwl_fw_error_dump
LBB0_15:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_FW_INFO
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_fw_dbg_stop_restart_recording
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Firmware not running - cannot dump error\n"

	.comm	_STATUS_TRANS_DEAD,4,2          ; @STATUS_TRANS_DEAD
l_.str.1:                               ; @.str.1
	.asciz	"Skip fw error dump since bus is dead\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to stop DBGC recording, aborting dump\n"

l_.str.3:                               ; @.str.3
	.asciz	"WRT: Data collection start\n"

l_.str.4:                               ; @.str.4
	.asciz	"WRT: Data collection done\n"

	.no_dead_strip	_iwl_fw_dbg_collect_sync
.subsections_via_symbols
