	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9t112_set_params
_mt9t112_set_params:                    ## @mt9t112_set_params
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	movq	_mt9t112_cfmts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx,%rbx,8)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	%eax, %ebx
	jne	LBB0_3
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	leaq	16(%r14), %r8
	movq	(%rsi), %rax
	movq	%rax, 16(%r14)
	leaq	20(%r14), %rdi
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	_mt9t112_cfmts@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	shlq	$3, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r14)
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mt9t112_cfmts,8,3              ## @mt9t112_cfmts
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ## @MAX_HEIGHT
	.no_dead_strip	_mt9t112_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9t112_set_params
_mt9t112_set_params:                    ; @mt9t112_set_params
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x9, _mt9t112_cfmts@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mt9t112_cfmts@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x20, lsl #3]
	cmp	x10, x2
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	cmp	w20, w8
	b.ne	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	ldr	x8, [x1]
	str	x8, [x19, #16]!
	add	x0, x19, #4
Lloh6:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	str	wzr, [sp]
	mov	w1, #0
	mov	w3, #0
	mov	x4, x19
	mov	w5, #0
	mov	w7, #0
	bl	_v4l_bound_align_image
	mov	w0, #0
Lloh12:
	adrp	x8, _mt9t112_cfmts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mt9t112_cfmts@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x8, x8, w20, uxtw #3
	stur	x8, [x19, #-8]
LBB0_8:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mt9t112_cfmts,8,3              ; @mt9t112_cfmts
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_MAX_HEIGHT,4,2                 ; @MAX_HEIGHT
	.no_dead_strip	_mt9t112_set_params
.subsections_via_symbols
