	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_dbg_restart_recording
_iwl_fw_dbg_restart_recording:          ## @iwl_fw_dbg_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_7000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_MON_BUFF_SAMPLE_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$256, %edx                      ## imm = 0x100
	callq	_iwl_clear_bits_prph
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_iwl_clear_bits_prph
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_iwl_set_bits_prph
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rsi, %rbx
	movq	_DBGC_IN_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_iwl_write_umac_prph
	movq	_DBGC_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_iwl_write_umac_prph
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_IWL_DEVICE_FAMILY_7000,8,3     ## @IWL_DEVICE_FAMILY_7000
	.comm	_MON_BUFF_SAMPLE_CTL,4,2        ## @MON_BUFF_SAMPLE_CTL
	.comm	_DBGC_IN_SAMPLE,4,2             ## @DBGC_IN_SAMPLE
	.comm	_DBGC_OUT_CTRL,4,2              ## @DBGC_OUT_CTRL
	.no_dead_strip	_iwl_fw_dbg_restart_recording
.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_restart_recording
_iwl_fw_dbg_restart_recording:          ; @iwl_fw_dbg_restart_recording
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _IWL_DEVICE_FAMILY_7000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_DEVICE_FAMILY_7000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x20, _MON_BUFF_SAMPLE_CTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MON_BUFF_SAMPLE_CTL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #256
	bl	_iwl_clear_bits_prph
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_iwl_clear_bits_prph
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_iwl_set_bits_prph
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x20, x1
Lloh8:
	adrp	x8, _DBGC_IN_SAMPLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBGC_IN_SAMPLE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_iwl_write_umac_prph
Lloh11:
	adrp	x8, _DBGC_OUT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBGC_OUT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_iwl_write_umac_prph
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_IWL_DEVICE_FAMILY_7000,8,3     ; @IWL_DEVICE_FAMILY_7000
	.comm	_MON_BUFF_SAMPLE_CTL,4,2        ; @MON_BUFF_SAMPLE_CTL
	.comm	_DBGC_IN_SAMPLE,4,2             ; @DBGC_IN_SAMPLE
	.comm	_DBGC_OUT_CTRL,4,2              ; @DBGC_OUT_CTRL
	.no_dead_strip	_iwl_fw_dbg_restart_recording
.subsections_via_symbols
