	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_set_bus_param
_pxa_camera_set_bus_param:              ## @pxa_camera_set_bus_param
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_to_soc_camera_host
	movq	(%rax), %r15
	movq	8(%rbx), %rax
	movq	16(%rbx), %r13
	movl	(%rax), %edi
	callq	_soc_mbus_get_fmtdesc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_test_platform_param
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_soc_camera_bus_param_compatible
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %r12
	movl	$1, (%r15)
	movq	_SOCAM_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r12, %rax
	je	LBB0_9
## %bb.5:
	movq	_SOCAM_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r12, %rcx
	je	LBB0_9
## %bb.6:
	movq	_PXA_CAMERA_HSP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r15)
	je	LBB0_8
## %bb.7:
	notq	%rax
	andq	%rax, %r12
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_8:
	notq	%rcx
	andq	%rcx, %r12
LBB0_9:
	movq	_SOCAM_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r12, %rax
	je	LBB0_14
## %bb.10:
	movq	_SOCAM_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r12, %rcx
	je	LBB0_14
## %bb.11:
	movq	_PXA_CAMERA_VSP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r15)
	je	LBB0_13
## %bb.12:
	notq	%rax
	andq	%rax, %r12
	jmp	LBB0_14
LBB0_13:
	notq	%rcx
	andq	%rcx, %r12
LBB0_14:
	movq	_SOCAM_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r12, %rax
	je	LBB0_19
## %bb.15:
	movq	_SOCAM_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r12, %rcx
	je	LBB0_19
## %bb.16:
	movq	_PXA_CAMERA_PCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r15)
	je	LBB0_18
## %bb.17:
	notq	%rax
	andq	%rax, %r12
	jmp	LBB0_19
LBB0_18:
	notq	%rcx
	andq	%rcx, %r12
LBB0_19:
	movq	%r12, (%r13)
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	callq	_pxa_camera_setup_cicr
	xorl	%eax, %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ## @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_HSP,4,2             ## @PXA_CAMERA_HSP
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ## @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ## @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_VSP,4,2             ## @PXA_CAMERA_VSP
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ## @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ## @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_PCP,4,2             ## @PXA_CAMERA_PCP
	.no_dead_strip	_pxa_camera_set_bus_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxa_camera_set_bus_param
_pxa_camera_set_bus_param:              ; @pxa_camera_set_bus_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x0, #24]
	bl	_to_soc_camera_host
	ldr	x21, [x0]
	ldp	x8, x23, [x20, #8]
	ldr	w0, [x8]
	bl	_soc_mbus_get_fmtdesc
	cbz	x0, LBB0_14
; %bb.1:
	ldr	w1, [x0]
	add	x2, sp, #8
	mov	x0, x21
	bl	_test_platform_param
	tbnz	w0, #31, LBB0_15
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	ldr	x1, [sp, #8]
	bl	_soc_camera_bus_param_compatible
	cbz	x0, LBB0_14
; %bb.3:
	mov	x22, x0
	mov	w8, #1
	str	w8, [x21]
Lloh0:
	adrp	x8, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCAM_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCAM_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	tst	x9, x22
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x10, _PXA_CAMERA_HSP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PXA_CAMERA_HSP@GOTPAGEOFF]
	ldr	w11, [x21, #4]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x22, x9
	bic	x8, x22, x8
	csel	x22, x9, x8, eq
LBB0_6:
Lloh9:
	adrp	x8, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCAM_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_9
; %bb.7:
Lloh12:
	adrp	x9, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SOCAM_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	tst	x9, x22
	b.eq	LBB0_9
; %bb.8:
Lloh15:
	adrp	x10, _PXA_CAMERA_VSP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _PXA_CAMERA_VSP@GOTPAGEOFF]
	ldr	w11, [x21, #4]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x22, x9
	bic	x8, x22, x8
	csel	x22, x9, x8, eq
LBB0_9:
Lloh18:
	adrp	x8, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SOCAM_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	tst	x8, x22
	b.eq	LBB0_12
; %bb.10:
Lloh21:
	adrp	x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SOCAM_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	tst	x9, x22
	b.eq	LBB0_12
; %bb.11:
Lloh24:
	adrp	x10, _PXA_CAMERA_PCP@GOTPAGE
Lloh25:
	ldr	x10, [x10, _PXA_CAMERA_PCP@GOTPAGEOFF]
	ldr	w11, [x21, #4]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x22, x9
	bic	x8, x22, x8
	csel	x22, x9, x8, eq
LBB0_12:
	str	x22, [x23]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	tbnz	w0, #31, LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_pxa_camera_setup_cicr
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCAM_HSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_HSYNC_ACTIVE_HIGH
	.comm	_SOCAM_HSYNC_ACTIVE_LOW,8,3     ; @SOCAM_HSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_HSP,4,2             ; @PXA_CAMERA_HSP
	.comm	_SOCAM_VSYNC_ACTIVE_HIGH,8,3    ; @SOCAM_VSYNC_ACTIVE_HIGH
	.comm	_SOCAM_VSYNC_ACTIVE_LOW,8,3     ; @SOCAM_VSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_VSP,4,2             ; @PXA_CAMERA_VSP
	.comm	_SOCAM_PCLK_SAMPLE_RISING,8,3   ; @SOCAM_PCLK_SAMPLE_RISING
	.comm	_SOCAM_PCLK_SAMPLE_FALLING,8,3  ; @SOCAM_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_PCP,4,2             ; @PXA_CAMERA_PCP
	.no_dead_strip	_pxa_camera_set_bus_param
.subsections_via_symbols
