	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_fw_dbg_stop_recording
_iwl_fw_dbg_stop_recording:             ## @iwl_fw_dbg_stop_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
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_IWL_DEVICE_FAMILY_7000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.4:
	movq	_MON_BUFF_SAMPLE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$256, %edx                      ## imm = 0x100
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_set_bits_prph              ## TAILCALL
LBB0_1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	_DBGC_IN_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_read_umac_prph
	movq	%rax, 8(%r14)
	movq	_DBGC_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iwl_read_umac_prph
	movq	%rax, (%r14)
LBB0_3:
	movq	_DBGC_IN_SAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iwl_write_umac_prph
	movl	$700, %edi                      ## imm = 0x2BC
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_usleep_range
	movq	_DBGC_OUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_write_umac_prph            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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_stop_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_stop_recording
_iwl_fw_dbg_stop_recording:             ; @iwl_fw_dbg_stop_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	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_2
; %bb.1:
Lloh3:
	adrp	x8, _MON_BUFF_SAMPLE_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MON_BUFF_SAMPLE_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #256
	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_set_bits_prph
LBB0_2:
	mov	x20, x1
Lloh6:
	adrp	x22, _DBGC_IN_SAMPLE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DBGC_IN_SAMPLE@GOTPAGEOFF]
Lloh8:
	adrp	x21, _DBGC_OUT_CTRL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _DBGC_OUT_CTRL@GOTPAGEOFF]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_iwl_read_umac_prph
	str	x0, [x20, #8]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_iwl_read_umac_prph
	str	x0, [x20]
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_iwl_write_umac_prph
	mov	w0, #700
	mov	w1, #1000
	bl	_usleep_range
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #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
	b	_iwl_write_umac_prph
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.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_stop_recording
.subsections_via_symbols
