	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_stat_buf_insert_magic
_isp_stat_buf_insert_magic:             ## @isp_stat_buf_insert_magic
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_IS_H3A_AF
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AF_EXTRA_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_2:
	addq	(%r15), %rbx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_isp_stat_buf_sync_magic_for_cpu
	movq	(%r14), %rdi
	movq	_MAGIC_NUM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MAGIC_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_memset
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_memset
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_isp_stat_buf_sync_magic_for_device ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_EXTRA_DATA,8,3              ## @AF_EXTRA_DATA
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_MAGIC_NUM,4,2                  ## @MAGIC_NUM
	.comm	_MAGIC_SIZE,4,2                 ## @MAGIC_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_isp_stat_buf_insert_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_stat_buf_insert_magic
_isp_stat_buf_insert_magic:             ; @isp_stat_buf_insert_magic
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_IS_H3A_AF
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_EXTRA_DATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_EXTRA_DATA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, #0
	csel	x9, xzr, x9, eq
	add	x21, x8, x9
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_isp_stat_buf_sync_magic_for_cpu
	ldr	x0, [x19]
Lloh6:
	adrp	x22, _MAGIC_NUM@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MAGIC_NUM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh8:
	adrp	x23, _MAGIC_SIZE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MAGIC_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_memset
	ldr	x8, [x19]
	add	x0, x8, x21
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_memset
Lloh10:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_isp_stat_buf_sync_magic_for_device
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_EXTRA_DATA,8,3              ; @AF_EXTRA_DATA
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_MAGIC_NUM,4,2                  ; @MAGIC_NUM
	.comm	_MAGIC_SIZE,4,2                 ; @MAGIC_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_isp_stat_buf_insert_magic
.subsections_via_symbols
