	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -64(%rbp)
	movq	_V4L2_MBUS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	4(%rax), %r14d
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_test_platform_param
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_video@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_g_mbus_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sensor_call
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_26
## %bb.6:
	movq	-48(%rbp), %r15
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_3:
	movq	-48(%rbp), %rsi
	leaq	-64(%rbp), %rdi
	callq	_pxa_mbus_config_compatible
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	movl	$1, (%r12)
	movq	_V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %rax
	je	LBB0_12
## %bb.8:
	movq	_V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r15, %rcx
	je	LBB0_12
## %bb.9:
	movq	_PXA_CAMERA_HSP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r12)
	je	LBB0_11
## %bb.10:
	notq	%rax
	andq	%rax, %r15
	jmp	LBB0_12
LBB0_4:
	movq	%r12, %rdi
	callq	_pcdev_to_dev
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_26
LBB0_11:
	notq	%rcx
	andq	%rcx, %r15
LBB0_12:
	movq	_V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %rax
	je	LBB0_17
## %bb.13:
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r15, %rcx
	je	LBB0_17
## %bb.14:
	movq	_PXA_CAMERA_VSP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r12)
	je	LBB0_16
## %bb.15:
	notq	%rax
	andq	%rax, %r15
	jmp	LBB0_17
LBB0_16:
	notq	%rcx
	andq	%rcx, %r15
LBB0_17:
	movq	_V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r15, %rax
	je	LBB0_22
## %bb.18:
	movq	_V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%r15, %rcx
	je	LBB0_22
## %bb.19:
	movq	_PXA_CAMERA_PCP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r12)
	je	LBB0_21
## %bb.20:
	notq	%rax
	andq	%rax, %r15
	jmp	LBB0_22
LBB0_21:
	notq	%rcx
	andq	%rcx, %r15
LBB0_22:
	movq	%r15, -64(%rbp)
	movl	(%r13), %esi
	movq	_s_mbus_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r12, %rdi
	callq	_sensor_call
	testl	%eax, %eax
	jns	LBB0_25
## %bb.23:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_24
LBB0_25:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_pxa_camera_setup_cicr
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r12, %rdi
	callq	_pcdev_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_dev_dbg
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_PARALLEL,4,2         ## @V4L2_MBUS_PARALLEL
	.comm	_video,4,2                      ## @video
	.comm	_g_mbus_config,4,2              ## @g_mbus_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Flags incompatible: camera 0x%x, host 0x%lx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,8,3 ## @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,8,3 ## @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_HSP,4,2             ## @PXA_CAMERA_HSP
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,8,3 ## @V4L2_MBUS_VSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,8,3 ## @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_VSP,4,2             ## @PXA_CAMERA_VSP
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,8,3 ## @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,8,3 ## @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_PCP,4,2             ## @PXA_CAMERA_PCP
	.comm	_s_mbus_config,4,2              ## @s_mbus_config
L_.str.1:                               ## @.str.1
	.asciz	"camera s_mbus_config(0x%lx) returned %d\n"

	.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, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _V4L2_MBUS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldp	w1, w20, [x8]
	add	x2, sp, #8
	bl	_test_platform_param
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x23, _video@GOTPAGE
Lloh4:
	ldr	x23, [x23, _video@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _g_mbus_config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _g_mbus_config@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x19
	bl	_sensor_call
	cbz	w0, LBB0_5
; %bb.2:
	mov	x22, x0
Lloh8:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_20
; %bb.3:
	ldr	x21, [sp, #8]
	b	LBB0_6
LBB0_4:
	mov	x22, x0
	b	LBB0_20
LBB0_5:
	ldr	x1, [sp, #8]
	add	x0, sp, #16
	bl	_pxa_mbus_config_compatible
	mov	x21, x0
	cbz	x0, LBB0_18
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
Lloh11:
	adrp	x8, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_9
; %bb.7:
Lloh14:
	adrp	x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_MBUS_HSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	tst	x9, x21
	b.eq	LBB0_9
; %bb.8:
Lloh17:
	adrp	x10, _PXA_CAMERA_HSP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PXA_CAMERA_HSP@GOTPAGEOFF]
	ldr	w11, [x19, #4]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x21, x9
	bic	x8, x21, x8
	csel	x21, x9, x8, eq
LBB0_9:
Lloh20:
	adrp	x8, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_MBUS_VSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_12
; %bb.10:
Lloh23:
	adrp	x9, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh24:
	ldr	x9, [x9, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	tst	x9, x21
	b.eq	LBB0_12
; %bb.11:
Lloh26:
	adrp	x10, _PXA_CAMERA_VSP@GOTPAGE
Lloh27:
	ldr	x10, [x10, _PXA_CAMERA_VSP@GOTPAGEOFF]
	ldr	w11, [x19, #4]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x21, x9
	bic	x8, x21, x8
	csel	x21, x9, x8, eq
LBB0_12:
Lloh29:
	adrp	x8, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_15
; %bb.13:
Lloh32:
	adrp	x9, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGE
Lloh33:
	ldr	x9, [x9, _V4L2_MBUS_PCLK_SAMPLE_FALLING@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	tst	x9, x21
	b.eq	LBB0_15
; %bb.14:
Lloh35:
	adrp	x10, _PXA_CAMERA_PCP@GOTPAGE
Lloh36:
	ldr	x10, [x10, _PXA_CAMERA_PCP@GOTPAGEOFF]
	ldr	w11, [x19, #4]
Lloh37:
	ldr	w10, [x10]
	tst	w10, w11
	bic	x9, x21, x9
	bic	x8, x21, x8
	csel	x21, x9, x8, eq
LBB0_15:
	str	x21, [sp, #16]
	ldr	w1, [x23]
Lloh38:
	adrp	x8, _s_mbus_config@GOTPAGE
Lloh39:
	ldr	x8, [x8, _s_mbus_config@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x19
	bl	_sensor_call
	tbz	w0, #31, LBB0_17
; %bb.16:
	mov	x22, x0
Lloh41:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_19
LBB0_17:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_pxa_camera_setup_cicr
	mov	w22, #0
	b	LBB0_20
LBB0_18:
	mov	x0, x19
	bl	_pcdev_to_dev
	ldp	x3, x2, [sp, #8]
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh46:
	adrp	x8, _EINVAL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_19:
	mov	x0, x19
	bl	_pcdev_to_dev
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
LBB0_20:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_PARALLEL,4,2         ; @V4L2_MBUS_PARALLEL
	.comm	_video,4,2                      ; @video
	.comm	_g_mbus_config,4,2              ; @g_mbus_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Flags incompatible: camera 0x%x, host 0x%lx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,8,3 ; @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_LOW,8,3 ; @V4L2_MBUS_HSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_HSP,4,2             ; @PXA_CAMERA_HSP
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_HIGH,8,3 ; @V4L2_MBUS_VSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,8,3 ; @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_PXA_CAMERA_VSP,4,2             ; @PXA_CAMERA_VSP
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,8,3 ; @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_PCLK_SAMPLE_FALLING,8,3 ; @V4L2_MBUS_PCLK_SAMPLE_FALLING
	.comm	_PXA_CAMERA_PCP,4,2             ; @PXA_CAMERA_PCP
	.comm	_s_mbus_config,4,2              ; @s_mbus_config
l_.str.1:                               ; @.str.1
	.asciz	"camera s_mbus_config(0x%lx) returned %d\n"

	.no_dead_strip	_pxa_camera_set_bus_param
.subsections_via_symbols
