	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_stat_buf_check_magic
_isp_stat_buf_check_magic:              ## @isp_stat_buf_check_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_IS_H3A_AF
	xorl	%ebx, %ebx
	movslq	(%r15), %rdx
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_AF_EXTRA_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	movslq	%ecx, %rax
	addq	%rax, %rdx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_isp_stat_buf_sync_magic_for_cpu
	movq	_MAGIC_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_5
## %bb.3:
	movq	8(%r15), %r13
	leaq	(,%rax,8), %r14
	addq	%r13, %r14
	movq	_MAGIC_NUM@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	cmovnel	%r12d, %ebx
	addq	$8, %r13
	cmpq	%r14, %r13
	jb	LBB0_4
LBB0_5:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_13
LBB0_7:
	movq	_MAGIC_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_12
## %bb.8:
	movq	%r13, %rbx
	shlq	$3, %rbx
	addq	8(%r12), %rbx
	leaq	(%rbx,%rax,8), %r14
	movq	_MAGIC_NUM@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	addq	$8, %rbx
	cmpq	%r14, %rbx
	jb	LBB0_10
LBB0_12:
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_isp_stat_buf_sync_magic_for_device
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movl	(%rax), %edi
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_EXTRA_DATA,4,2              ## @AF_EXTRA_DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_MAGIC_SIZE,4,2                 ## @MAGIC_SIZE
	.comm	_MAGIC_NUM,8,3                  ## @MAGIC_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: beginning magic check does not match.\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: ending magic check does not match.\n"

	.no_dead_strip	_isp_stat_buf_check_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_check_magic
_isp_stat_buf_check_magic:              ; @isp_stat_buf_check_magic
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_IS_H3A_AF
Lloh0:
	adrp	x8, _AF_EXTRA_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_EXTRA_DATA@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh2:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
Lloh3:
	adrp	x23, _EINVAL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	add	w21, w9, w8
	ldr	w8, [x23]
	neg	w22, w8
Lloh5:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_isp_stat_buf_sync_magic_for_cpu
Lloh7:
	adrp	x25, _MAGIC_SIZE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _MAGIC_SIZE@GOTPAGEOFF]
	ldrsw	x8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x26, [x20, #8]
	add	x27, x26, x8, lsl #3
Lloh9:
	adrp	x28, _MAGIC_NUM@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MAGIC_NUM@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26], #8
	ldr	x9, [x28]
	cmp	x8, x9
	cset	w0, ne
	bl	_likely
	cmp	x0, #0
	csel	w22, w22, wzr, eq
	cmp	x26, x27
	b.lo	LBB0_2
LBB0_3:
	cbz	w22, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_11
LBB0_5:
	ldrsw	x8, [x25]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	ldr	x9, [x20, #8]
	add	x22, x9, w21, sxtw #3
	add	x25, x22, x8, lsl #3
Lloh13:
	adrp	x26, _MAGIC_NUM@GOTPAGE
Lloh14:
	ldr	x26, [x26, _MAGIC_NUM@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #8
	cmp	x22, x25
	b.lo	LBB0_7
LBB0_9:
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_isp_stat_buf_sync_magic_for_device
	mov	w22, #0
	b	LBB0_11
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x23]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_EXTRA_DATA,4,2              ; @AF_EXTRA_DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_MAGIC_SIZE,4,2                 ; @MAGIC_SIZE
	.comm	_MAGIC_NUM,8,3                  ; @MAGIC_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: beginning magic check does not match.\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: ending magic check does not match.\n"

	.no_dead_strip	_isp_stat_buf_check_magic
.subsections_via_symbols
