	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_fw_dbg_stop_restart_recording ## -- Begin function iwl_fw_dbg_stop_restart_recording
	.p2align	4, 0x90
_iwl_fw_dbg_stop_restart_recording:     ## @iwl_fw_dbg_stop_restart_recording
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_STATUS_FW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	$16, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	cmpl	$0, 12(%rax)
	jne	LBB0_3
## %bb.2:
	movq	(%rax), %rax
	movq	_IWL_FW_INI_LOCATION_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
LBB0_3:
	movq	8(%rbx), %rdi
	movq	_IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_fw_dbg_suspend_resume_hcmd ## TAILCALL
LBB0_4:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.5:
	callq	_iwl_fw_dbg_stop_recording
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_fw_dbg_restart_recording   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_FW_ERROR,4,2            ## @STATUS_FW_ERROR
	.comm	_IWL_FW_INI_LOCATION_INVALID,8,3 ## @IWL_FW_INI_LOCATION_INVALID
	.comm	_IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP,4,2 ## @IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_fw_dbg_stop_restart_recording ; -- Begin function iwl_fw_dbg_stop_restart_recording
	.p2align	2
_iwl_fw_dbg_stop_restart_recording:     ; @iwl_fw_dbg_stop_restart_recording
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STATUS_FW_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_FW_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x21]
	add	x1, x8, #16
	bl	_test_bit
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x21]
	ldr	w9, [x8, #12]
	cbnz	w9, LBB0_4
; %bb.3:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IWL_FW_INI_LOCATION_INVALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_FW_INI_LOCATION_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_4:
	ldr	x0, [x21, #8]
Lloh6:
	adrp	x8, _IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x21]
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iwl_fw_dbg_suspend_resume_hcmd
LBB0_6:
	ldr	x0, [x21]
	mov	x1, x19
	cbz	w20, LBB0_8
; %bb.7:
	bl	_iwl_fw_dbg_stop_recording
	b	LBB0_1
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iwl_fw_dbg_restart_recording
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_FW_ERROR,4,2            ; @STATUS_FW_ERROR
	.comm	_IWL_FW_INI_LOCATION_INVALID,8,3 ; @IWL_FW_INI_LOCATION_INVALID
	.comm	_IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP,4,2 ; @IWL_UCODE_TLV_CAPA_DBG_SUSPEND_RESUME_CMD_SUPP
.subsections_via_symbols
