	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_h3a_aewb_init         ## -- Begin function omap3isp_h3a_aewb_init
	.p2align	4, 0x90
_omap3isp_h3a_aewb_init:                ## @omap3isp_h3a_aewb_init
	.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	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_h3a_aewb_ops@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	%r14, 32(%r15)
	movq	_V4L2_EVENT_OMAP3ISP_AEWB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	%r15, 16(%r15)
	movl	(%rbx), %esi
	movl	$72, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	8(%r15), %r12
	movq	_OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r13)
	movq	_OMAP3ISP_AEWB_MIN_WIN_H@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%eax, (%r13)
	movq	_OMAP3ISP_AEWB_MIN_WIN_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%r13)
	movq	_OMAP3ISP_AEWB_MIN_WINVC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r13)
	movq	_OMAP3ISP_AEWB_MIN_WINHC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 56(%r13)
	imull	%eax, %ecx
	movslq	%ecx, %rcx
	addq	40(%r13), %rcx
	movq	%rcx, 48(%r13)
	movq	%rax, 32(%r13)
	movq	_OMAP3ISP_AEWB_MIN_SUB_INC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
	movq	%rax, 16(%r13)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_h3a_aewb_validate_params
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movq	16(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_7:
	movq	%r13, %rdi
	callq	_h3a_aewb_get_buf_size
	movl	%eax, 8(%r13)
	movq	%r13, (%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	_h3a_aewb_subdev_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	callq	_omap3isp_stat_init
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_h3a_aewb_ops,4,2               ## @h3a_aewb_ops
	.comm	_V4L2_EVENT_OMAP3ISP_AEWB,4,2   ## @V4L2_EVENT_OMAP3ISP_AEWB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AEWB: cannot allocate memory for recover configuration.\n"

	.comm	_OMAP3ISP_AEWB_MAX_SATURATION_LIM,4,2 ## @OMAP3ISP_AEWB_MAX_SATURATION_LIM
	.comm	_OMAP3ISP_AEWB_MIN_WIN_H,8,3    ## @OMAP3ISP_AEWB_MIN_WIN_H
	.comm	_OMAP3ISP_AEWB_MIN_WIN_W,4,2    ## @OMAP3ISP_AEWB_MIN_WIN_W
	.comm	_OMAP3ISP_AEWB_MIN_WINVC,4,2    ## @OMAP3ISP_AEWB_MIN_WINVC
	.comm	_OMAP3ISP_AEWB_MIN_WINHC,4,2    ## @OMAP3ISP_AEWB_MIN_WINHC
	.comm	_OMAP3ISP_AEWB_MIN_SUB_INC,8,3  ## @OMAP3ISP_AEWB_MIN_SUB_INC
L_.str.1:                               ## @.str.1
	.asciz	"AEWB: recover configuration is invalid.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"AEWB"

	.comm	_h3a_aewb_subdev_ops,4,2        ## @h3a_aewb_subdev_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_h3a_aewb_init         ; -- Begin function omap3isp_h3a_aewb_init
	.p2align	2
_omap3isp_h3a_aewb_init:                ; @omap3isp_h3a_aewb_init
	.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	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _h3a_aewb_ops@GOTPAGE
Lloh3:
	ldr	x8, [x8, _h3a_aewb_ops@GOTPAGEOFF]
	stp	x0, x8, [x21, #32]
Lloh4:
	adrp	x8, _V4L2_EVENT_OMAP3ISP_AEWB@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_EVENT_OMAP3ISP_AEWB@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	str	x21, [x21, #16]
	ldr	w1, [x20]
	mov	w0, #72
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_5
; %bb.2:
	add	x22, x21, #8
Lloh7:
	adrp	x8, _OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMAP3ISP_AEWB_MAX_SATURATION_LIM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #64]
Lloh10:
	adrp	x8, _OMAP3ISP_AEWB_MIN_WIN_H@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMAP3ISP_AEWB_MIN_WIN_H@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	w8, [x20]
Lloh13:
	adrp	x9, _OMAP3ISP_AEWB_MIN_WIN_W@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OMAP3ISP_AEWB_MIN_WIN_W@GOTPAGEOFF]
Lloh15:
	adrp	x10, _OMAP3ISP_AEWB_MIN_WINVC@GOTPAGE
Lloh16:
	ldr	x10, [x10, _OMAP3ISP_AEWB_MIN_WINVC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	ldr	w10, [x10]
	str	w10, [x20, #4]
Lloh19:
	adrp	x11, _OMAP3ISP_AEWB_MIN_WINHC@GOTPAGE
Lloh20:
	ldr	x11, [x11, _OMAP3ISP_AEWB_MIN_WINHC@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	stp	w11, w9, [x20, #56]
	ldr	x9, [x20, #40]
	mul	w10, w10, w8
	add	x9, x9, w10, sxtw
	str	x9, [x20, #48]
	str	x8, [x20, #32]
Lloh22:
	adrp	x8, _OMAP3ISP_AEWB_MIN_SUB_INC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _OMAP3ISP_AEWB_MIN_SUB_INC@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	stp	x8, x8, [x20, #16]
	mov	x0, x22
	mov	x1, x20
	bl	_h3a_aewb_validate_params
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
	cbz	w21, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	bl	_kfree
LBB0_8:
	mov	x0, x21
	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
	ret
LBB0_9:
	mov	x0, x20
	bl	_h3a_aewb_get_buf_size
	str	w0, [x20, #8]
	str	x20, [x22]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh38:
	adrp	x2, _h3a_aewb_subdev_ops@GOTPAGE
Lloh39:
	ldr	x2, [x2, _h3a_aewb_subdev_ops@GOTPAGEOFF]
	mov	x0, x22
	bl	_omap3isp_stat_init
	mov	x21, x0
	cbnz	w21, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_h3a_aewb_ops,4,2               ; @h3a_aewb_ops
	.comm	_V4L2_EVENT_OMAP3ISP_AEWB,4,2   ; @V4L2_EVENT_OMAP3ISP_AEWB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AEWB: cannot allocate memory for recover configuration.\n"

	.comm	_OMAP3ISP_AEWB_MAX_SATURATION_LIM,4,2 ; @OMAP3ISP_AEWB_MAX_SATURATION_LIM
	.comm	_OMAP3ISP_AEWB_MIN_WIN_H,8,3    ; @OMAP3ISP_AEWB_MIN_WIN_H
	.comm	_OMAP3ISP_AEWB_MIN_WIN_W,4,2    ; @OMAP3ISP_AEWB_MIN_WIN_W
	.comm	_OMAP3ISP_AEWB_MIN_WINVC,4,2    ; @OMAP3ISP_AEWB_MIN_WINVC
	.comm	_OMAP3ISP_AEWB_MIN_WINHC,4,2    ; @OMAP3ISP_AEWB_MIN_WINHC
	.comm	_OMAP3ISP_AEWB_MIN_SUB_INC,8,3  ; @OMAP3ISP_AEWB_MIN_SUB_INC
l_.str.1:                               ; @.str.1
	.asciz	"AEWB: recover configuration is invalid.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"AEWB"

	.comm	_h3a_aewb_subdev_ops,4,2        ; @h3a_aewb_subdev_ops
.subsections_via_symbols
