	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_stat_config           ## -- Begin function omap3isp_stat_config
	.p2align	4, 0x90
_omap3isp_stat_config:                  ## @omap3isp_stat_config
	.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, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %r13d
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movslq	%r13d, %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_14
LBB0_2:
	movslq	(%r15), %rcx
	cmpl	%ecx, %r13d
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_4:
	movq	%rbx, %rdi
	callq	_IS_H3A
	movl	(%r15), %r12d
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	addl	%r12d, %r12d
	movq	_MAGIC_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_IS_H3A_AF
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_AF_EXTRA_DATA@GOTPCREL(%rip), %rax
	movq	_NUM_H3A_RECOVER_BUFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$2, %ecx
	imull	(%rax), %ecx
	addl	%ecx, %r12d
LBB0_7:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_NUM_H3A_RECOVER_BUFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	addl	%ecx, %r12d
	jmp	LBB0_10
LBB0_9:
	movq	_MAGIC_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %edi
	callq	_PAGE_ALIGN
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_isp_stat_bufs_alloc
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_12:
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_irqsave
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*8(%rax)
	movq	16(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%rbx), %rax
	addq	32(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	$1, (%rbx)
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_13:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: configuring module with buffer size=0x%08lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: configuration values are invalid.\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: driver has corrected buffer size request to 0x%08lx\n"

	.comm	_MAGIC_SIZE,4,2                 ## @MAGIC_SIZE
	.comm	_AF_EXTRA_DATA,4,2              ## @AF_EXTRA_DATA
	.comm	_NUM_H3A_RECOVER_BUFS,4,2       ## @NUM_H3A_RECOVER_BUFS
L_.str.3:                               ## @.str.3
	.asciz	"%s: module has been successfully configured.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_stat_config           ; -- Begin function omap3isp_stat_config
	.p2align	2
_omap3isp_stat_config:                  ; @omap3isp_stat_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
	ldrsw	x23, [x1]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
	str	x23, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_unlock
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	w2, [x20, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	b	LBB0_13
LBB0_2:
	ldrsw	x8, [x21]
	cmp	w23, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [x20, #16]
	ldr	w0, [x9]
	ldr	w2, [x20, #8]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	mov	x0, x20
	bl	_IS_H3A
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _MAGIC_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAGIC_SIZE@GOTPAGEOFF]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w9, [x9]
	add	w22, w9, w8, lsl #1
	mov	x0, x20
	bl	_IS_H3A_AF
Lloh8:
	adrp	x8, _NUM_H3A_RECOVER_BUFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NUM_H3A_RECOVER_BUFS@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.6:
Lloh10:
	adrp	x9, _AF_EXTRA_DATA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AF_EXTRA_DATA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x8]
	add	w10, w10, #2
	madd	w22, w10, w9, w22
LBB0_7:
	ldr	x9, [x20, #48]
	cbz	x9, LBB0_10
; %bb.8:
	ldr	w9, [x9]
	ldr	w8, [x8]
	madd	w22, w8, w9, w22
	b	LBB0_10
LBB0_9:
	ldr	w9, [x9]
	add	w22, w9, w8
LBB0_10:
	mov	x0, x22
	bl	_PAGE_ALIGN
	mov	x1, x0
	mov	x0, x20
	bl	_isp_stat_bufs_alloc
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #40]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x20, #16]
	add	x0, x8, #4
	bl	_spin_unlock_irqrestore
	ldp	x9, x8, [x20, #24]
	ldr	x10, [x20, #16]
	add	x8, x9, x8
	str	x8, [x21, #8]
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x10]
	ldr	w2, [x20, #8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_12:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: configuring module with buffer size=0x%08lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: configuration values are invalid.\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: driver has corrected buffer size request to 0x%08lx\n"

	.comm	_MAGIC_SIZE,4,2                 ; @MAGIC_SIZE
	.comm	_AF_EXTRA_DATA,4,2              ; @AF_EXTRA_DATA
	.comm	_NUM_H3A_RECOVER_BUFS,4,2       ; @NUM_H3A_RECOVER_BUFS
l_.str.3:                               ; @.str.3
	.asciz	"%s: module has been successfully configured.\n"

.subsections_via_symbols
