	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hist_buf_process
_hist_buf_process:                      ## @hist_buf_process
	.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	32(%rdi), %r14
	addq	$24, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_ISPSTAT_ENABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	decq	8(%rbx)
	jne	LBB0_4
## %bb.5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_hist_buf_dma
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_hist_reset_mem
LBB0_4:
	movq	_STAT_NO_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	callq	_hist_buf_pio
LBB0_8:
	movq	(%r14), %rcx
	movq	%rcx, 8(%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ISPSTAT_ENABLED,8,3            ## @ISPSTAT_ENABLED
	.comm	_STAT_NO_BUF,4,2                ## @STAT_NO_BUF
	.no_dead_strip	_hist_buf_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hist_buf_process
_hist_buf_process:                      ; @hist_buf_process
	.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
	mov	x19, x0
	ldr	x20, [x0, #32]
	add	x0, x0, #24
	bl	_atomic_read
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _ISPSTAT_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ISPSTAT_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_hist_buf_dma
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_hist_reset_mem
LBB0_6:
Lloh3:
	adrp	x8, _STAT_NO_BUF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STAT_NO_BUF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_hist_buf_pio
LBB0_9:
	ldr	x8, [x20]
	str	x8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ISPSTAT_ENABLED,8,3            ; @ISPSTAT_ENABLED
	.comm	_STAT_NO_BUF,4,2                ; @STAT_NO_BUF
	.no_dead_strip	_hist_buf_process
.subsections_via_symbols
