	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mx3_camera_try_fmt
_mx3_camera_try_fmt:                    ## @mx3_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
	pushq	%rax
	.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, %r12
	movq	24(%r13), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_soc_camera_xlate_by_fourcc
	movq	%rax, %r15
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_warn
	jmp	LBB0_11
LBB0_3:
	cmpl	$4097, (%r13)                   ## imm = 0x1001
	jl	LBB0_5
## %bb.4:
	movl	$4096, (%r13)                   ## imm = 0x1000
LBB0_5:
	movl	4(%r13), %ebx
	cmpl	$4097, %ebx                     ## imm = 0x1001
	jl	LBB0_7
## %bb.6:
	movl	$4096, 4(%r13)                  ## imm = 0x1000
	movl	$4096, %ebx                     ## imm = 0x1000
LBB0_7:
	movq	(%r15), %rax
	movl	8(%rax), %edi
	movl	$8, %esi
	callq	_DIV_ROUND_UP
	imull	%ebx, %eax
	movl	%eax, 8(%r13)
	imull	(%r13), %eax
	movl	%eax, 12(%r13)
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_try_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	_v4l2_subdev_call
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r13)
	movl	16(%r13), %edx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rsi), %edx
	jne	LBB0_9
## %bb.8:
	movl	%ecx, 16(%r13)
	jmp	LBB0_12
LBB0_9:
	cmpl	%ecx, %edx
	je	LBB0_12
## %bb.10:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %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	_video,4,2                      ## @video
	.comm	_try_fmt,4,2                    ## @try_fmt
	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_mx3_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 mx3_camera_try_fmt
_mx3_camera_try_fmt:                    ; @mx3_camera_try_fmt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x0
	ldr	x23, [x20, #24]
	mov	x0, x19
	mov	x1, x23
	bl	_soc_camera_xlate_by_fourcc
	cmp	x23, #0
	ccmp	x0, #0, #0, ne
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #1, lsl #12                 ; =4096
	b.le	LBB0_3
; %bb.2:
	mov	w8, #4096
	str	w8, [x20]
LBB0_3:
	ldr	w23, [x20, #4]
	cmp	w23, #1, lsl #12                ; =4096
	b.le	LBB0_5
; %bb.4:
	mov	w23, #4096
	str	w23, [x20, #4]
LBB0_5:
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	mov	w1, #8
	bl	_DIV_ROUND_UP
	mul	w8, w0, w23
	ldr	w9, [x20]
	mul	w9, w9, w8
	stp	w8, w9, [x20, #8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	str	x8, [x20, #24]
Lloh0:
	adrp	x8, _video@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _try_fmt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _try_fmt@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x3, x20
	bl	_v4l2_subdev_call
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [x20, #24]
Lloh6:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
	ldr	w2, [x20, #16]
Lloh8:
	ldr	w9, [x8]
Lloh9:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w2, w9
	b.ne	LBB0_8
; %bb.6:
	str	w8, [x20, #16]
	b	LBB0_11
LBB0_7:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_warn
	b	LBB0_10
LBB0_8:
	cmp	w2, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_10:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Format %x not found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_video,4,2                      ; @video
	.comm	_try_fmt,4,2                    ; @try_fmt
	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Field type %d unsupported.\n"

	.no_dead_strip	_mx3_camera_try_fmt
.subsections_via_symbols
