	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_capture_hw_init
_fimc_capture_hw_init:                  ## @fimc_capture_hw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.3:
	movq	%rdi, %r14
	leaq	24(%rdi), %r12
	movq	(%r12), %rax
	movq	_FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	%r14, %rdi
	callq	_fimc_hw_camblk_cfg_writeback
	testl	%eax, %eax
	js	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_fimc_prepare_dma_offset
	movq	%rbx, %rdi
	callq	_fimc_set_yuv_order
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fimc_hw_set_camera_polarity
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fimc_hw_set_camera_type
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_fimc_hw_set_camera_source
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_fimc_hw_set_camera_offset
	movq	%rbx, %rdi
	callq	_fimc_set_scaler_info
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_fimc_hw_set_input_path
	movq	%rbx, %rdi
	callq	_fimc_hw_set_prescaler
	movq	%rbx, %rdi
	callq	_fimc_hw_set_mainscaler
	movq	%rbx, %rdi
	callq	_fimc_hw_set_target_format
	movq	%rbx, %rdi
	callq	_fimc_hw_set_rotation
	movq	%rbx, %rdi
	callq	_fimc_hw_set_effect
	movq	%rbx, %rdi
	callq	_fimc_hw_set_output_path
	movq	%rbx, %rdi
	callq	_fimc_hw_set_out_dma
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_fimc_hw_set_rgb_alpha
LBB0_9:
	movq	_ST_CAPT_APPLY_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_clear_bit
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_11
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,8,3 ## @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_ST_CAPT_APPLY_CFG,4,2          ## @ST_CAPT_APPLY_CFG
	.no_dead_strip	_fimc_capture_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_capture_hw_init
_fimc_capture_hw_init:                  ; @fimc_capture_hw_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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_9
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x19, x0
	add	x22, x0, #24
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_BUS_TYPE_ISP_WRITEBACK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_fimc_hw_camblk_cfg_writeback
	tbnz	w0, #31, LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x1, x20, #8
	mov	x0, x20
	bl	_fimc_prepare_dma_offset
	mov	x0, x20
	bl	_fimc_set_yuv_order
	mov	x0, x19
	mov	x1, x22
	bl	_fimc_hw_set_camera_polarity
	mov	x0, x19
	mov	x1, x22
	bl	_fimc_hw_set_camera_type
	mov	x0, x19
	mov	x1, x22
	bl	_fimc_hw_set_camera_source
	mov	x0, x19
	mov	x1, x20
	bl	_fimc_hw_set_camera_offset
	mov	x0, x20
	bl	_fimc_set_scaler_info
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_fimc_hw_set_input_path
	mov	x0, x20
	bl	_fimc_hw_set_prescaler
	mov	x0, x20
	bl	_fimc_hw_set_mainscaler
	mov	x0, x20
	bl	_fimc_hw_set_target_format
	mov	x0, x20
	bl	_fimc_hw_set_rotation
	mov	x0, x20
	bl	_fimc_hw_set_effect
	mov	x0, x20
	bl	_fimc_hw_set_output_path
	mov	x0, x20
	bl	_fimc_hw_set_out_dma
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_fimc_hw_set_rgb_alpha
LBB0_7:
Lloh3:
	adrp	x8, _ST_CAPT_APPLY_CFG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_CAPT_APPLY_CFG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	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_11:
	mov	x21, x0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FIMC_BUS_TYPE_ISP_WRITEBACK,8,3 ; @FIMC_BUS_TYPE_ISP_WRITEBACK
	.comm	_ST_CAPT_APPLY_CFG,4,2          ; @ST_CAPT_APPLY_CFG
	.no_dead_strip	_fimc_capture_hw_init
.subsections_via_symbols
