	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pxac_vidioc_try_fmt_vid_cap
_pxac_vidioc_try_fmt_vid_cap:           ## @pxac_vidioc_try_fmt_vid_cap
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	callq	_video_drvdata
	movq	%rax, %r14
	movl	$0, -40(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	(%r12), %rbx
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_pxa_mbus_xlate_by_fourcc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	24(%r12), %rdi
	leaq	20(%r12), %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	4(%r15), %edx
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_v4l2_fill_mbus_format
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_set_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %r8
	callq	_sensor_call
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_v4l2_fill_pix_format
	movl	-40(%rbp), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.5:
	movl	$128, 8(%r12)
	movl	24(%r12), %edi
	movl	(%r15), %esi
	callq	_pxa_mbus_bytes_per_line
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	%eax, 12(%r12)
	movl	(%r15), %edi
	movl	20(%r12), %edx
	movl	%eax, %esi
	callq	_pxa_mbus_image_size
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	%eax, 16(%r12)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rdi
	callq	_pcdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_dev_warn
	jmp	LBB0_2
LBB0_9:
	movq	%r14, %rdi
	callq	_pcdev_to_dev
	movl	-40(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.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	_pad,4,2                        ## @pad
	.comm	_set_fmt,4,2                    ## @set_fmt
L_.str.1:                               ## @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_pxac_vidioc_try_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pxac_vidioc_try_fmt_vid_cap
_pxac_vidioc_try_fmt_vid_cap:           ; @pxac_vidioc_try_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	bl	_video_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #16]
	ldr	x22, [x19]
	ldr	w0, [x0]
	mov	x1, x22
	bl	_pxa_mbus_xlate_by_fourcc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	add	x0, x19, #24
	add	x4, x19, #20
Lloh3:
	adrp	x8, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, 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	w2, [x21, #4]
	add	x0, sp, #16
	mov	x1, x19
	bl	_v4l2_fill_mbus_format
Lloh6:
	adrp	x8, _pad@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _set_fmt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _set_fmt@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x20
	bl	_sensor_call
	tbnz	w0, #31, LBB0_7
; %bb.2:
	add	x1, sp, #16
	mov	x0, x19
	bl	_v4l2_fill_pix_format
	ldr	w8, [sp, #16]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.3:
	str	w8, [x19, #8]
	ldr	w0, [x19, #24]
	ldr	w1, [x21]
	bl	_pxa_mbus_bytes_per_line
	mov	x1, x0
	tbnz	w0, #31, LBB0_10
; %bb.4:
	str	w1, [x19, #12]
	ldr	w0, [x21]
	ldr	w2, [x19, #20]
	bl	_pxa_mbus_image_size
	mov	x1, x0
	tbnz	w0, #31, LBB0_10
; %bb.5:
	str	w1, [x19, #16]
	mov	w1, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	bl	_pcdev_to_dev
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_warn
	b	LBB0_9
LBB0_7:
	mov	x1, x0
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_pcdev_to_dev
	ldr	w2, [sp, #16]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_10:
	mov	x0, x1
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.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	_pad,4,2                        ; @pad
	.comm	_set_fmt,4,2                    ; @set_fmt
l_.str.1:                               ; @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_pxac_vidioc_try_fmt_vid_cap
.subsections_via_symbols
