	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt9m001_get_selection
_mt9m001_get_selection:                 ## @mt9m001_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_to_mt9m001
	movq	(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_MT9M001_COLUMN_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_MT9M001_ROW_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_MT9M001_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_MT9M001_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movups	(%rax), %xmm0
	movups	%xmm0, 12(%rbx)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT9M001_COLUMN_SKIP,4,2        ## @MT9M001_COLUMN_SKIP
	.comm	_MT9M001_ROW_SKIP,4,2           ## @MT9M001_ROW_SKIP
	.comm	_MT9M001_MAX_WIDTH,4,2          ## @MT9M001_MAX_WIDTH
	.comm	_MT9M001_MAX_HEIGHT,4,2         ## @MT9M001_MAX_HEIGHT
	.no_dead_strip	_mt9m001_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt9m001_get_selection
_mt9m001_get_selection:                 ; @mt9m001_get_selection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_v4l2_get_subdevdata
	bl	_to_mt9m001
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.1:
	ldr	w9, [x19, #8]
	cmp	w9, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh3:
	adrp	x8, _MT9M001_COLUMN_SKIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT9M001_COLUMN_SKIP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _MT9M001_ROW_SKIP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT9M001_ROW_SKIP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
Lloh9:
	adrp	x8, _MT9M001_MAX_WIDTH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT9M001_MAX_WIDTH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MT9M001_MAX_HEIGHT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT9M001_MAX_HEIGHT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	b	LBB0_6
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x8, x0
	mov	w0, #0
	ldr	q0, [x8]
	stur	q0, [x19, #12]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT9M001_COLUMN_SKIP,4,2        ; @MT9M001_COLUMN_SKIP
	.comm	_MT9M001_ROW_SKIP,4,2           ; @MT9M001_ROW_SKIP
	.comm	_MT9M001_MAX_WIDTH,4,2          ; @MT9M001_MAX_WIDTH
	.comm	_MT9M001_MAX_HEIGHT,4,2         ; @MT9M001_MAX_HEIGHT
	.no_dead_strip	_mt9m001_get_selection
.subsections_via_symbols
