	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_configure
_preview_configure:                     ## @preview_configure
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_to_isp_device
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_preview_params_lock
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %r14d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	24(%r12), %rcx
	movq	_PREV_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	(%rcx,%r13,8), %edi
	callq	_omap3isp_video_format_info
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_preview_adjust_bandwidth
	movq	%r12, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_preview_config_input_format
	movq	%r12, %rdi
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_preview_config_input_size
	movq	(%r12), %rax
	movq	_PREVIEW_INPUT_CCDC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r13,8), %edi
	movl	$32, %esi
	callq	_ALIGN
	movl	%eax, %r15d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	imull	(%rax), %r15d
LBB0_2:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_preview_config_inlineoffset
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_preview_setup_hw
	movq	24(%r12), %r15
	movq	_PREV_PAD_SOURCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_PREVIEW_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OMAP3_ISP_IOMEM_PREV@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ISPPRV_PCR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_ISPPRV_PCR_SDRPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_isp_reg_set
	jmp	LBB0_5
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_isp_reg_clr
LBB0_5:
	movq	_PREVIEW_OUTPUT_RESIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%r14), %esi
	movl	(%r13), %edx
	movq	_ISPPRV_PCR_RSZPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, 8(%r12)
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_isp_reg_set
	jmp	LBB0_8
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_isp_reg_clr
LBB0_8:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_PREVIEW_OUTPUT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_10
## %bb.9:
	movl	4(%r15,%rbx,8), %edi
	movl	$16, %esi
	callq	_ALIGN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	movq	%r12, %rdi
	callq	_preview_config_outlineoffset
LBB0_10:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_preview_config_averager
	movl	(%r15,%rbx,8), %esi
	movq	%r12, %rdi
	callq	_preview_config_ycpos
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_preview_params_unlock
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PREV_PAD_SINK,8,3              ## @PREV_PAD_SINK
	.comm	_PREVIEW_INPUT_CCDC,8,3         ## @PREVIEW_INPUT_CCDC
	.comm	_PREV_PAD_SOURCE,8,3            ## @PREV_PAD_SOURCE
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ## @PREVIEW_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_IOMEM_PREV,4,2       ## @OMAP3_ISP_IOMEM_PREV
	.comm	_ISPPRV_PCR,4,2                 ## @ISPPRV_PCR
	.comm	_ISPPRV_PCR_SDRPORT,4,2         ## @ISPPRV_PCR_SDRPORT
	.comm	_PREVIEW_OUTPUT_RESIZER,4,2     ## @PREVIEW_OUTPUT_RESIZER
	.comm	_ISPPRV_PCR_RSZPORT,4,2         ## @ISPPRV_PCR_RSZPORT
	.no_dead_strip	_preview_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_configure
_preview_configure:                     ; @preview_configure
	.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	x19, x0
	bl	_to_isp_device
	mov	x22, x0
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_preview_params_lock
	mov	x21, x0
	ldr	w23, [x19, #16]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x25, [x19, #24]
Lloh0:
	adrp	x8, _PREV_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREV_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	lsl	x8, x26, #3
	ldr	w0, [x25, x8]
	bl	_omap3isp_video_format_info
	mov	x24, x0
	mov	x0, x19
	bl	_preview_adjust_bandwidth
	mov	x0, x19
	mov	x1, x24
	bl	_preview_config_input_format
	mov	x0, x19
	mov	x1, x23
	bl	_preview_config_input_size
	mov	w1, #0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PREVIEW_INPUT_CCDC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PREVIEW_INPUT_CCDC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x8, x25, x26, lsl #3
	ldr	w0, [x8, #4]
	mov	w1, #32
	bl	_ALIGN
	ldr	w8, [x24]
	mul	w1, w8, w0
LBB0_2:
	mov	x0, x19
	bl	_preview_config_inlineoffset
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_preview_setup_hw
	ldr	x23, [x19, #24]
Lloh6:
	adrp	x8, _PREV_PAD_SOURCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PREV_PAD_SOURCE@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
Lloh9:
	adrp	x25, _PREVIEW_OUTPUT_MEMORY@GOTPAGE
Lloh10:
	ldr	x25, [x25, _PREVIEW_OUTPUT_MEMORY@GOTPAGEOFF]
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
Lloh11:
	adrp	x26, _OMAP3_ISP_IOMEM_PREV@GOTPAGE
Lloh12:
	ldr	x26, [x26, _OMAP3_ISP_IOMEM_PREV@GOTPAGEOFF]
Lloh13:
	adrp	x27, _ISPPRV_PCR@GOTPAGE
Lloh14:
	ldr	x27, [x27, _ISPPRV_PCR@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	w2, [x27]
Lloh15:
	adrp	x10, _ISPPRV_PCR_SDRPORT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ISPPRV_PCR_SDRPORT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x10]
	mov	x0, x22
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	bl	_isp_reg_set
	b	LBB0_5
LBB0_4:
	bl	_isp_reg_clr
LBB0_5:
	ldr	w8, [x19, #8]
Lloh18:
	adrp	x9, _PREVIEW_OUTPUT_RESIZER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PREVIEW_OUTPUT_RESIZER@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	ldr	w1, [x26]
	ldr	w2, [x27]
Lloh21:
	adrp	x10, _ISPPRV_PCR_RSZPORT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ISPPRV_PCR_RSZPORT@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x10]
	mov	x0, x22
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	bl	_isp_reg_set
	b	LBB0_8
LBB0_7:
	bl	_isp_reg_clr
LBB0_8:
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	add	x8, x23, x24, lsl #3
	ldr	w0, [x8, #4]
	mov	w1, #16
	bl	_ALIGN
	lsl	w1, w0, #1
	mov	x0, x19
	bl	_preview_config_outlineoffset
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_preview_config_averager
	lsl	x8, x24, #3
	ldr	w1, [x23, x8]
	mov	x0, x19
	bl	_preview_config_ycpos
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_preview_params_unlock
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PREV_PAD_SINK,8,3              ; @PREV_PAD_SINK
	.comm	_PREVIEW_INPUT_CCDC,8,3         ; @PREVIEW_INPUT_CCDC
	.comm	_PREV_PAD_SOURCE,8,3            ; @PREV_PAD_SOURCE
	.comm	_PREVIEW_OUTPUT_MEMORY,4,2      ; @PREVIEW_OUTPUT_MEMORY
	.comm	_OMAP3_ISP_IOMEM_PREV,4,2       ; @OMAP3_ISP_IOMEM_PREV
	.comm	_ISPPRV_PCR,4,2                 ; @ISPPRV_PCR
	.comm	_ISPPRV_PCR_SDRPORT,4,2         ; @ISPPRV_PCR_SDRPORT
	.comm	_PREVIEW_OUTPUT_RESIZER,4,2     ; @PREVIEW_OUTPUT_RESIZER
	.comm	_ISPPRV_PCR_RSZPORT,4,2         ; @ISPPRV_PCR_RSZPORT
	.no_dead_strip	_preview_configure
.subsections_via_symbols
