	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_subdev_get_selection
_fimc_subdev_get_selection:             ## @fimc_subdev_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, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_FIMC_SD_PAD_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_2:
	movq	8(%rbx), %r14
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	8(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.3:
	movq	%r13, %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %r13
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_8:
	movq	(%r12), %rdx
	movq	%r15, %rdi
	callq	_v4l2_subdev_get_try_crop
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	jmp	LBB0_1
LBB0_4:
	movq	%r14, %r13
LBB0_5:
	movl	28(%r13), %eax
	movl	%eax, 28(%r12)
	movl	24(%r13), %eax
	movl	%eax, 24(%r12)
	movq	$0, 32(%r12)
	jmp	LBB0_13
LBB0_6:
	movq	(%r12), %rdx
	movq	%r15, %rdi
	callq	_v4l2_subdev_get_try_compose
	movq	%r14, %r13
LBB0_9:
	leaq	24(%r12), %rsi
	movq	16(%r12), %rcx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movups	(%rax), %xmm0
	movups	%xmm0, (%rsi)
	movl	36(%r12), %edx
	movl	32(%r12), %ecx
	movl	24(%r12), %r9d
	movl	28(%r12), %r8d
	jmp	LBB0_12
LBB0_11:
	movl	20(%r13), %edx
	movl	16(%r13), %ecx
	movl	8(%r13), %r9d
	movl	12(%r13), %r8d
	movups	8(%r13), %xmm0
	movups	%xmm0, (%rsi)
LBB0_12:
	movq	(%r12), %rsi
	movl	(%r13), %eax
	movl	4(%r13), %ebx
	leaq	L_.str(%rip), %rdi
	pushq	%rax
	pushq	%rbx
	callq	_dbg
	addq	$16, %rsp
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_FIMC_SD_PAD_SOURCE,8,3         ## @FIMC_SD_PAD_SOURCE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ## @V4L2_SUBDEV_FORMAT_TRY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target %#x: l:%d, t:%d, %dx%d, f_w: %d, f_h: %d"

	.no_dead_strip	_fimc_subdev_get_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_subdev_get_selection
_fimc_subdev_get_selection:             ; @fimc_subdev_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	x21, x1
	mov	x22, x0
	bl	_v4l2_get_subdevdata
	mov	x24, x20
	ldr	x8, [x24], #24
Lloh0:
	adrp	x9, _FIMC_SD_PAD_SOURCE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_SD_PAD_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	ldr	x25, [x0, #8]
	bl	_mutex_lock
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
	add	x23, x25, #32
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x2, [x20]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_subdev_get_try_crop
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_1
LBB0_6:
	mov	x23, x25
LBB0_7:
	ldr	d0, [x23, #24]
	str	d0, [x20, #24]
	str	xzr, [x20, #32]
	b	LBB0_13
LBB0_8:
	ldr	x2, [x20]
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_subdev_get_try_compose
	mov	x23, x25
LBB0_9:
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	q0, [x0]
	str	q0, [x24]
	ldp	w3, w2, [x20, #32]
	ldp	w5, w4, [x20, #24]
	b	LBB0_12
LBB0_11:
	ldp	w3, w2, [x23, #16]
	stp	w3, w2, [x20, #32]
	ldp	w5, w4, [x23, #8]
	stp	w5, w4, [x20, #24]
LBB0_12:
	ldr	x1, [x20]
	ldp	w7, w6, [x23]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
LBB0_13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_14:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_FIMC_SD_PAD_SOURCE,8,3         ; @FIMC_SD_PAD_SOURCE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SUBDEV_FORMAT_TRY,8,3     ; @V4L2_SUBDEV_FORMAT_TRY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target %#x: l:%d, t:%d, %dx%d, f_w: %d, f_h: %d"

	.no_dead_strip	_fimc_subdev_get_selection
.subsections_via_symbols
