	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_get_selection
_s5k5baf_get_selection:                 ## @s5k5baf_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, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_to_s5k5baf
	movq	%rax, %r14
	movl	24(%r13), %esi
	movl	28(%r13), %edi
	callq	_s5k5baf_get_sel_rect
	cmpl	$132, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_3:
	movq	_s5k5baf_cis_rect@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%r13)
	jmp	LBB0_19
LBB0_4:
	movq	(%r13), %rax
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	leaq	8(%r13), %r14
	movl	28(%r13), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	cmpl	$131, %ebx
	jne	LBB0_8
## %bb.6:
	callq	_v4l2_subdev_get_try_compose
	jmp	LBB0_7
LBB0_9:
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$129, %ebx
	je	LBB0_14
## %bb.10:
	cmpl	$131, %ebx
	je	LBB0_13
## %bb.11:
	cmpl	$130, %ebx
	jne	LBB0_16
## %bb.12:
	movq	%r14, %rax
	addq	$40, %rax
	jmp	LBB0_15
LBB0_8:
	callq	_v4l2_subdev_get_try_crop
LBB0_7:
	movups	(%rax), %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_19
LBB0_14:
	movq	%r14, %rax
	addq	$8, %rax
	jmp	LBB0_15
LBB0_13:
	movq	%r14, %rax
	addq	$24, %rax
LBB0_15:
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%r13)
LBB0_16:
	movl	24(%r13), %edi
	callq	_s5k5baf_is_bound_target
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	xorl	%eax, %eax
LBB0_20:
	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	_s5k5baf_cis_rect,16,3          ## @s5k5baf_cis_rect
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_s5k5baf_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_get_selection
_s5k5baf_get_selection:                 ; @s5k5baf_get_selection
	.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	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_to_s5k5baf
	mov	x20, x0
	ldp	w1, w0, [x19, #24]
	bl	_s5k5baf_get_sel_rect
	cmp	w0, #132
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x0
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_3:
	mov	w0, #0
Lloh3:
	adrp	x8, _s5k5baf_cis_rect@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s5k5baf_cis_rect@GOTPAGEOFF]
Lloh5:
	ldr	q0, [x8]
	stur	q0, [x19, #8]
	b	LBB0_19
LBB0_4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	add	x20, x19, #8
	ldr	w2, [x19, #28]
	mov	x0, x22
	mov	x1, x21
	cmp	w23, #131
	b.ne	LBB0_11
; %bb.6:
	bl	_v4l2_subdev_get_try_compose
	b	LBB0_12
LBB0_7:
	mov	x0, x20
	bl	_mutex_lock
	cmp	w23, #129
	b.eq	LBB0_13
; %bb.8:
	cmp	w23, #131
	b.eq	LBB0_14
; %bb.9:
	cmp	w23, #130
	b.ne	LBB0_16
; %bb.10:
	add	x8, x20, #40
	b	LBB0_15
LBB0_11:
	bl	_v4l2_subdev_get_try_crop
LBB0_12:
	mov	x8, x0
	mov	w0, #0
	ldr	q0, [x8]
	str	q0, [x20]
	b	LBB0_19
LBB0_13:
	add	x8, x20, #8
	b	LBB0_15
LBB0_14:
	add	x8, x20, #24
LBB0_15:
	ldr	q0, [x8]
	stur	q0, [x19, #8]
LBB0_16:
	ldr	w0, [x19, #24]
	bl	_s5k5baf_is_bound_target
	cbz	x0, LBB0_18
; %bb.17:
	stp	xzr, xzr, [x19, #8]
LBB0_18:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
LBB0_19:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_s5k5baf_cis_rect,16,3          ; @s5k5baf_cis_rect
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.no_dead_strip	_s5k5baf_get_selection
.subsections_via_symbols
