	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_try_bus_param
_pxa_camera_try_bus_param:              ## @pxa_camera_try_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -16(%rbp)
	movq	_V4L2_MBUS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	leaq	-24(%rbp), %rdx
	callq	_test_platform_param
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_mbus_config@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_sensor_call
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	%eax, %ecx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	movl	(%rdx), %edx
	addl	%ecx, %edx
	cmovnel	%ecx, %eax
	jmp	LBB0_5
LBB0_2:
	movq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdi
	callq	_pxa_mbus_config_compatible
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_pcdev_to_dev
	movl	-16(%rbp), %edx
	movq	-24(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.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
	.no_dead_strip	_pxa_camera_try_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_try_bus_param
_pxa_camera_try_bus_param:              ; @pxa_camera_try_bus_param
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_MBUS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	mov	x2, sp
	bl	_test_platform_param
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _g_mbus_config@GOTPAGE
Lloh7:
	ldr	x8, [x8, _g_mbus_config@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x19
	bl	_sensor_call
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	csel	w0, wzr, w0, eq
	b	LBB0_6
LBB0_3:
	ldr	x1, [sp]
	add	x0, sp, #8
	bl	_pxa_mbus_config_compatible
	cbz	x0, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_pcdev_to_dev
	ldr	w2, [sp, #8]
	ldr	x3, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.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
	.no_dead_strip	_pxa_camera_try_bus_param
.subsections_via_symbols
