	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx274_get_selection
_imx274_get_selection:                  ## @imx274_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	%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	%rdx, %rbx
	movq	%rsi, %r15
	callq	_to_imx274
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%rax, %r14
	movl	8(%rbx), %eax
	movq	_V4L2_SEL_TGT_CROP_BOUNDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movq	_IMX274_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_IMX274_MAX_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movq	16(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	8(%r15), %rax
	leaq	16(%r14), %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r13, %rcx
	cmoveq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%rbx), %eax
	cmpl	$130, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.7:
	movq	16(%r12), %rax
	movq	%rax, 40(%rbx)
	movups	(%r12), %xmm0
	movups	%xmm0, 24(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_10:
	movq	%r14, %rax
	addq	$4, %rax
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	cmoveq	%r15, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	(%r12), %eax
LBB0_9:
	movl	%eax, 24(%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,4,2   ## @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_IMX274_MAX_WIDTH,4,2           ## @IMX274_MAX_WIDTH
	.comm	_IMX274_MAX_HEIGHT,4,2          ## @IMX274_MAX_HEIGHT
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_imx274_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx274_get_selection
_imx274_get_selection:                  ; @imx274_get_selection
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	bl	_to_imx274
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_2:
	ldr	w8, [x20, #8]
Lloh3:
	adrp	x9, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP_BOUNDS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
	mov	w21, #0
	stp	xzr, xzr, [x20, #32]
Lloh6:
	adrp	x8, _IMX274_MAX_WIDTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMX274_MAX_WIDTH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IMX274_MAX_HEIGHT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IMX274_MAX_HEIGHT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	b	LBB0_12
LBB0_4:
	mov	x19, x0
Lloh12:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
	ldr	x24, [x20, #16]
Lloh14:
	ldr	x25, [x8]
	add	x8, x22, #8
	add	x9, x0, #16
	cmp	x24, x25
	csel	x23, x8, x9, eq
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #128
	b.ne	LBB0_10
; %bb.7:
	mov	w21, #0
	ldr	q0, [x23]
	ldr	x8, [x23, #16]
	str	x8, [x20, #40]
	stur	q0, [x20, #24]
	b	LBB0_11
LBB0_8:
	mov	w21, #0
	add	x8, x19, #4
	cmp	x24, x25
	csel	x8, x22, x8, eq
	stp	xzr, xzr, [x20, #32]
	ldr	d0, [x8]
	str	d0, [x20, #24]
	b	LBB0_11
LBB0_9:
	mov	w21, #0
	stp	xzr, xzr, [x20, #32]
	ldr	d0, [x23]
	str	d0, [x20, #24]
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x21
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SEL_TGT_CROP_BOUNDS,4,2   ; @V4L2_SEL_TGT_CROP_BOUNDS
	.comm	_IMX274_MAX_WIDTH,4,2           ; @IMX274_MAX_WIDTH
	.comm	_IMX274_MAX_HEIGHT,4,2          ; @IMX274_MAX_HEIGHT
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_imx274_get_selection
.subsections_via_symbols
