	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function isif_config_gain_offset
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_isif_config_gain_offset:               ## @isif_config_gain_offset
	.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	_GAIN_SDRAM_EN_SHIFT@GOTPCREL(%rip), %rax
	movq	_GAIN_IPIPE_EN_SHIFT@GOTPCREL(%rip), %rcx
	movq	_GAIN_H3A_EN_SHIFT@GOTPCREL(%rip), %rdx
	movq	_isif_cfg@GOTPCREL(%rip), %rbx
	movdqu	44(%rbx), %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pandn	LCPI0_0(%rip), %xmm0
	movq	_OFST_SDRAM_EN_SHIFT@GOTPCREL(%rip), %rsi
	movd	(%rsi), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm1
	pinsrd	$2, (%rcx), %xmm1
	pinsrd	$3, (%rax), %xmm1
	pslld	$23, %xmm1
	paddd	LCPI0_1(%rip), %xmm1
	xorl	%eax, %eax
	cmpl	$0, 40(%rbx)
	cvttps2dq	%xmm1, %xmm1
	setne	%al
	movq	_OFST_IPIPE_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	xorl	%edx, %edx
	cmpl	$0, 36(%rbx)
	setne	%dl
	movq	_OFST_H3A_EN_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	pmulld	%xmm0, %xmm1
	orl	%eax, %edx
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %esi
	orl	%edx, %esi
	movq	_GAIN_OFFSET_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CGAMMAWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_reg_modify
	movl	28(%rbx), %edi
	movq	_GAIN_INTEGER_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	shll	%cl, %edi
	orl	32(%rbx), %edi
	movq	_CRGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	20(%rbx), %edi
	movb	(%r14), %cl
	shll	%cl, %edi
	orl	24(%rbx), %edi
	movq	_CGRGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	12(%rbx), %edi
	movb	(%r14), %cl
	shll	%cl, %edi
	orl	16(%rbx), %edi
	movq	_CGBGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	4(%rbx), %edi
	movb	(%r14), %cl
	shll	%cl, %edi
	orl	8(%rbx), %edi
	movq	_CBGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regw
	movl	(%rbx), %edi
	movq	_COFSTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_regw                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_isif_cfg,60,2                  ## @isif_cfg
	.comm	_GAIN_SDRAM_EN_SHIFT,4,2        ## @GAIN_SDRAM_EN_SHIFT
	.comm	_GAIN_IPIPE_EN_SHIFT,4,2        ## @GAIN_IPIPE_EN_SHIFT
	.comm	_GAIN_H3A_EN_SHIFT,4,2          ## @GAIN_H3A_EN_SHIFT
	.comm	_OFST_SDRAM_EN_SHIFT,4,2        ## @OFST_SDRAM_EN_SHIFT
	.comm	_OFST_IPIPE_EN_SHIFT,4,2        ## @OFST_IPIPE_EN_SHIFT
	.comm	_OFST_H3A_EN_SHIFT,4,2          ## @OFST_H3A_EN_SHIFT
	.comm	_GAIN_OFFSET_EN_MASK,4,2        ## @GAIN_OFFSET_EN_MASK
	.comm	_CGAMMAWD,4,2                   ## @CGAMMAWD
	.comm	_GAIN_INTEGER_SHIFT,4,2         ## @GAIN_INTEGER_SHIFT
	.comm	_CRGAIN,4,2                     ## @CRGAIN
	.comm	_CGRGAIN,4,2                    ## @CGRGAIN
	.comm	_CGBGAIN,4,2                    ## @CGBGAIN
	.comm	_CBGAIN,4,2                     ## @CBGAIN
	.comm	_COFSTA,4,2                     ## @COFSTA
	.no_dead_strip	_isif_config_gain_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isif_config_gain_offset
_isif_config_gain_offset:               ; @isif_config_gain_offset
	.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
Lloh0:
	adrp	x8, _GAIN_SDRAM_EN_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GAIN_SDRAM_EN_SHIFT@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GAIN_IPIPE_EN_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GAIN_IPIPE_EN_SHIFT@GOTPAGEOFF]
Lloh4:
	adrp	x10, _GAIN_H3A_EN_SHIFT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _GAIN_H3A_EN_SHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x19, _isif_cfg@GOTPAGE
Lloh7:
	ldr	x19, [x19, _isif_cfg@GOTPAGEOFF]
	ldur	q0, [x19, #44]
	cmeq.4s	v0, v0, #0
	movi.4s	v1, #1
Lloh8:
	adrp	x11, _OFST_SDRAM_EN_SHIFT@GOTPAGE
Lloh9:
	ldr	x11, [x11, _OFST_SDRAM_EN_SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	s2, [x11]
	ld1.s	{ v2 }[1], [x10]
	ld1.s	{ v2 }[2], [x9]
	ld1.s	{ v2 }[3], [x8]
	bic.16b	v0, v1, v0
	ushl.4s	v0, v0, v2
	ldp	w9, w8, [x19, #36]
	cmp	w8, #0
	cset	w8, ne
Lloh11:
	adrp	x10, _OFST_IPIPE_EN_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _OFST_IPIPE_EN_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	cmp	w9, #0
	cset	w9, ne
Lloh14:
	adrp	x10, _OFST_H3A_EN_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _OFST_H3A_EN_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	orr	w8, w10, w8
	orr	w1, w8, w9
Lloh17:
	adrp	x8, _GAIN_OFFSET_EN_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GAIN_OFFSET_EN_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _CGAMMAWD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CGAMMAWD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_reg_modify
Lloh23:
	adrp	x20, _GAIN_INTEGER_SHIFT@GOTPAGE
Lloh24:
	ldr	x20, [x20, _GAIN_INTEGER_SHIFT@GOTPAGEOFF]
	ldr	w8, [x20]
	ldp	w9, w10, [x19, #28]
	lsl	w8, w9, w8
	orr	w0, w8, w10
Lloh25:
	adrp	x8, _CRGAIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CRGAIN@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x20]
	ldp	w9, w10, [x19, #20]
	lsl	w8, w9, w8
	orr	w0, w8, w10
Lloh28:
	adrp	x8, _CGRGAIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CGRGAIN@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x20]
	ldp	w9, w10, [x19, #12]
	lsl	w8, w9, w8
	orr	w0, w8, w10
Lloh31:
	adrp	x8, _CGBGAIN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CGBGAIN@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_regw
	ldr	w8, [x20]
	ldp	w9, w10, [x19, #4]
	lsl	w8, w9, w8
	orr	w0, w8, w10
Lloh34:
	adrp	x8, _CBGAIN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _CBGAIN@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_regw
	ldr	w0, [x19]
Lloh37:
	adrp	x8, _COFSTA@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COFSTA@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_regw
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_isif_cfg,60,2                  ; @isif_cfg
	.comm	_GAIN_SDRAM_EN_SHIFT,4,2        ; @GAIN_SDRAM_EN_SHIFT
	.comm	_GAIN_IPIPE_EN_SHIFT,4,2        ; @GAIN_IPIPE_EN_SHIFT
	.comm	_GAIN_H3A_EN_SHIFT,4,2          ; @GAIN_H3A_EN_SHIFT
	.comm	_OFST_SDRAM_EN_SHIFT,4,2        ; @OFST_SDRAM_EN_SHIFT
	.comm	_OFST_IPIPE_EN_SHIFT,4,2        ; @OFST_IPIPE_EN_SHIFT
	.comm	_OFST_H3A_EN_SHIFT,4,2          ; @OFST_H3A_EN_SHIFT
	.comm	_GAIN_OFFSET_EN_MASK,4,2        ; @GAIN_OFFSET_EN_MASK
	.comm	_CGAMMAWD,4,2                   ; @CGAMMAWD
	.comm	_GAIN_INTEGER_SHIFT,4,2         ; @GAIN_INTEGER_SHIFT
	.comm	_CRGAIN,4,2                     ; @CRGAIN
	.comm	_CGRGAIN,4,2                    ; @CGRGAIN
	.comm	_CGBGAIN,4,2                    ; @CGBGAIN
	.comm	_CBGAIN,4,2                     ; @CBGAIN
	.comm	_COFSTA,4,2                     ; @COFSTA
	.no_dead_strip	_isif_config_gain_offset
.subsections_via_symbols
