	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_camera_crop       ## -- Begin function camif_hw_set_camera_crop
	.p2align	4, 0x90
_camif_hw_set_camera_crop:              ## @camif_hw_set_camera_crop
	.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	%rdi, %rbx
	movq	_S3C_CAMIF_REG_CIWDOFST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_camif_read
	movq	_CIWDOFST_OFST_MASK@GOTPCREL(%rip), %rcx
	movq	_CIWDOFST_WINOFSEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movl	(%rcx), %ecx
	orl	%r8d, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	movl	%esi, %eax
	shll	$16, %eax
	orl	%edi, %eax
	xorl	%edx, %edx
	orl	%edi, %esi
	cmovnel	%r8d, %edx
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_camif_write
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	24(%rbx), %edx
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	addl	8(%rbx), %eax
	subl	%eax, %edx
	movl	28(%rbx), %eax
	addl	12(%rbx), %ecx
	subl	%ecx, %eax
	shll	$16, %edx
	orl	%eax, %edx
	movq	_S3C_CAMIF_REG_CIWDOFST2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_camif_write                    ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C_CAMIF_REG_CIWDOFST,4,2     ## @S3C_CAMIF_REG_CIWDOFST
	.comm	_CIWDOFST_OFST_MASK,4,2         ## @CIWDOFST_OFST_MASK
	.comm	_CIWDOFST_WINOFSEN,4,2          ## @CIWDOFST_WINOFSEN
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ## @S3C6410_CAMIF_IP_REV
	.comm	_S3C_CAMIF_REG_CIWDOFST2,4,2    ## @S3C_CAMIF_REG_CIWDOFST2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_camera_crop       ; -- Begin function camif_hw_set_camera_crop
	.p2align	2
_camif_hw_set_camera_crop:              ; @camif_hw_set_camera_crop
	.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
	mov	x19, x0
Lloh0:
	adrp	x20, _S3C_CAMIF_REG_CIWDOFST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S3C_CAMIF_REG_CIWDOFST@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_camif_read
Lloh2:
	adrp	x8, _CIWDOFST_OFST_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CIWDOFST_OFST_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CIWDOFST_WINOFSEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CIWDOFST_WINOFSEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w8, w0, w8
	ldp	w10, w11, [x19, #8]
	orr	w12, w11, w10, lsl #16
	orr	w8, w12, w8
	orr	w10, w10, w11
	cmp	w10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_write
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _S3C6410_CAMIF_IP_REV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _S3C6410_CAMIF_IP_REV@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w8, w9, [x19, #24]
	ldp	w10, w11, [x19, #16]
	ldp	w12, w13, [x19, #8]
	add	w10, w10, w12
	sub	w8, w8, w10
	add	w10, w11, w13
	sub	w9, w9, w10
	orr	w2, w9, w8, lsl #16
Lloh11:
	adrp	x8, _S3C_CAMIF_REG_CIWDOFST2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S3C_CAMIF_REG_CIWDOFST2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_camif_write
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C_CAMIF_REG_CIWDOFST,4,2     ; @S3C_CAMIF_REG_CIWDOFST
	.comm	_CIWDOFST_OFST_MASK,4,2         ; @CIWDOFST_OFST_MASK
	.comm	_CIWDOFST_WINOFSEN,4,2          ; @CIWDOFST_WINOFSEN
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ; @S3C6410_CAMIF_IP_REV
	.comm	_S3C_CAMIF_REG_CIWDOFST2,4,2    ; @S3C_CAMIF_REG_CIWDOFST2
.subsections_via_symbols
