	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m001_apply_selection
_mt9m001_apply_selection:               ## @mt9m001_apply_selection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_to_mt9m001
	movq	_MT9M001_HORIZONTAL_BLANKING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -80(%rbp)
	movq	_MT9M001_DEFAULT_HBLANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -76(%rbp)
	movq	_MT9M001_VERTICAL_BLANKING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -72(%rbp)
	movq	_MT9M001_DEFAULT_VBLANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -68(%rbp)
	movq	_MT9M001_COLUMN_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	24(%rax), %ecx
	movl	%ecx, -60(%rbp)
	movq	_MT9M001_ROW_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movl	20(%rax), %ecx
	movl	%ecx, -52(%rbp)
	movq	_MT9M001_WINDOW_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movl	16(%rax), %ecx
	decl	%ecx
	movl	%ecx, -44(%rbp)
	movq	_MT9M001_WINDOW_HEIGHT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movl	(%rax), %ecx
	movl	8(%rax), %eax
	leal	-1(%rcx,%rax), %eax
	movl	%eax, -36(%rbp)
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_multi_reg_write
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT9M001_HORIZONTAL_BLANKING,4,2 ## @MT9M001_HORIZONTAL_BLANKING
	.comm	_MT9M001_DEFAULT_HBLANK,4,2     ## @MT9M001_DEFAULT_HBLANK
	.comm	_MT9M001_VERTICAL_BLANKING,4,2  ## @MT9M001_VERTICAL_BLANKING
	.comm	_MT9M001_DEFAULT_VBLANK,4,2     ## @MT9M001_DEFAULT_VBLANK
	.comm	_MT9M001_COLUMN_START,4,2       ## @MT9M001_COLUMN_START
	.comm	_MT9M001_ROW_START,4,2          ## @MT9M001_ROW_START
	.comm	_MT9M001_WINDOW_WIDTH,4,2       ## @MT9M001_WINDOW_WIDTH
	.comm	_MT9M001_WINDOW_HEIGHT,4,2      ## @MT9M001_WINDOW_HEIGHT
	.no_dead_strip	_mt9m001_apply_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m001_apply_selection
_mt9m001_apply_selection:               ; @mt9m001_apply_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	bl	_to_mt9m001
Lloh3:
	adrp	x8, _MT9M001_HORIZONTAL_BLANKING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT9M001_HORIZONTAL_BLANKING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MT9M001_DEFAULT_HBLANK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT9M001_DEFAULT_HBLANK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _MT9M001_VERTICAL_BLANKING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M001_VERTICAL_BLANKING@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MT9M001_DEFAULT_VBLANK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT9M001_DEFAULT_VBLANK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _MT9M001_COLUMN_START@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT9M001_COLUMN_START@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x0, #24]
	stp	w8, w9, [sp, #24]
Lloh18:
	adrp	x8, _MT9M001_ROW_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MT9M001_ROW_START@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	w8, [x0, #20]
Lloh21:
	adrp	x9, _MT9M001_WINDOW_WIDTH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MT9M001_WINDOW_WIDTH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #36]
	ldr	w8, [x0, #16]
	sub	w8, w8, #1
Lloh24:
	adrp	x9, _MT9M001_WINDOW_HEIGHT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MT9M001_WINDOW_HEIGHT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #44]
	ldr	w8, [x0, #8]
	ldr	w9, [x0]
	add	w8, w9, w8
	sub	w8, w8, #1
	str	w8, [sp, #52]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_multi_reg_write
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT9M001_HORIZONTAL_BLANKING,4,2 ; @MT9M001_HORIZONTAL_BLANKING
	.comm	_MT9M001_DEFAULT_HBLANK,4,2     ; @MT9M001_DEFAULT_HBLANK
	.comm	_MT9M001_VERTICAL_BLANKING,4,2  ; @MT9M001_VERTICAL_BLANKING
	.comm	_MT9M001_DEFAULT_VBLANK,4,2     ; @MT9M001_DEFAULT_VBLANK
	.comm	_MT9M001_COLUMN_START,4,2       ; @MT9M001_COLUMN_START
	.comm	_MT9M001_ROW_START,4,2          ; @MT9M001_ROW_START
	.comm	_MT9M001_WINDOW_WIDTH,4,2       ; @MT9M001_WINDOW_WIDTH
	.comm	_MT9M001_WINDOW_HEIGHT,4,2      ; @MT9M001_WINDOW_HEIGHT
	.no_dead_strip	_mt9m001_apply_selection
.subsections_via_symbols
