	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxa_camera_try_fmt
_pxa_camera_try_fmt:                    ## @pxa_camera_try_fmt
	.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	%rsi, %r13
	movq	%rdi, %r14
	callq	_soc_camera_to_subdev
	movq	%rax, %r15
	movq	(%r13), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_soc_camera_xlate_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	28(%r13), %rdi
	leaq	8(%r13), %r8
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rbx
	sete	%al
	shll	$2, %eax
	subq	$8, %rsp
	movl	$48, %esi
	movl	$2048, %edx                     ## imm = 0x800
	movl	$1, %ecx
	movl	$32, %r9d
	pushq	%rax
	pushq	$0
	pushq	$2048                           ## imm = 0x800
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movl	28(%r13), %edi
	movl	4(%r12), %esi
	callq	_soc_mbus_bytes_per_line
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	8(%r13), %ecx
	movl	28(%r13), %edx
	imull	%ecx, %eax
	movl	%eax, 16(%r13)
	movl	%edx, -52(%rbp)
	movl	%ecx, -64(%rbp)
	movl	20(%r13), %eax
	movl	%eax, -60(%rbp)
	movl	24(%r13), %eax
	movl	%eax, -56(%rbp)
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_try_mbus_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_v4l2_subdev_call
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	-52(%rbp), %ecx
	movl	%ecx, 28(%r13)
	movl	-64(%rbp), %ecx
	movl	%ecx, 8(%r13)
	movl	-56(%rbp), %ecx
	movl	%ecx, 24(%r13)
	movl	-60(%rbp), %edx
	movl	%edx, %ecx
	andl	$-2, %ecx
	cmpl	$128, %ecx
	jne	LBB0_6
## %bb.5:
	movl	$128, 20(%r13)
	jmp	LBB0_8
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Format %x not found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_YUV422P,8,3       ## @V4L2_PIX_FMT_YUV422P
	.comm	_video,4,2                      ## @video
	.comm	_try_mbus_fmt,4,2               ## @try_mbus_fmt
L_.str.1:                               ## @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_pxa_camera_try_fmt
.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_fmt
_pxa_camera_try_fmt:                    ; @pxa_camera_try_fmt
	.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	x20, x1
	mov	x19, x0
	bl	_soc_camera_to_subdev
	mov	x21, x0
	ldr	x23, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_soc_camera_xlate_by_fourcc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	add	x0, x20, #28
	add	x4, x20, #8
Lloh0:
	adrp	x8, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x23, x8
	cset	w8, eq
	lsl	w8, w8, #2
	str	w8, [sp]
	mov	w1, #48
	mov	w2, #2048
	mov	w3, #1
	mov	w5, #32
	mov	w6, #2048
	mov	w7, #0
	bl	_v4l_bound_align_image
	ldr	w0, [x20, #28]
	ldr	w1, [x22, #4]
	bl	_soc_mbus_bytes_per_line
	str	w0, [x20, #12]
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	w8, [x20, #8]
	mul	w9, w8, w0
	str	w9, [x20, #16]
	ldr	w9, [x20, #28]
	str	w9, [sp, #20]
	str	w8, [sp, #8]
	ldur	d0, [x20, #20]
	stur	d0, [sp, #12]
	ldr	w8, [x22]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _video@GOTPAGE
Lloh4:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _try_mbus_fmt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _try_mbus_fmt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_v4l2_subdev_call
	tbnz	w0, #31, LBB0_8
; %bb.3:
	ldp	w8, w2, [sp, #8]
	str	w8, [x20, #8]
	ldr	d0, [sp, #16]
	str	d0, [x20, #24]
	and	w8, w2, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	str	w8, [x20, #20]
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_7:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format %x not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_YUV422P,8,3       ; @V4L2_PIX_FMT_YUV422P
	.comm	_video,4,2                      ; @video
	.comm	_try_mbus_fmt,4,2               ; @try_mbus_fmt
l_.str.1:                               ; @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_pxa_camera_try_fmt
.subsections_via_symbols
