	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_subdev_set_selection
_fimc_subdev_set_selection:             ## @fimc_subdev_set_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
	subq	$24, %rsp
	.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, %r13
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	(%rbx), %rdx
	movq	_FIMC_SD_PAD_SOURCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	je	LBB0_1
## %bb.2:
	movq	16(%rax), %r12
	movq	%rax, %rdi
	leaq	24(%rbx), %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r14, %r12
	movq	%r14, %rsi
	movl	$128, %edx
	callq	_fimc_capture_try_selection
	movl	8(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_v4l2_subdev_get_try_crop
	jmp	LBB0_7
LBB0_6:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_v4l2_subdev_get_try_compose
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	$4, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_7:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	16(%rbx), %rcx
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movups	(%r12), %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_12
LBB0_9:
	leaq	4(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	36(%rbx), %esi
	movl	32(%rbx), %edx
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_set_frame_crop
	movq	_ST_CAPT_APPLY_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_set_bit
	cmpl	$129, 8(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	_FIMC_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_11:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movl	36(%rbx), %edx
	movl	32(%rbx), %ecx
	movl	28(%rbx), %r8d
	movl	8(%rbx), %esi
	movl	24(%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- 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
	.comm	_ST_CAPT_APPLY_CFG,4,2          ## @ST_CAPT_APPLY_CFG
	.comm	_FIMC_COMPOSE,4,2               ## @FIMC_COMPOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target %#x: (%d,%d)/%dx%d"

	.no_dead_strip	_fimc_subdev_set_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_set_selection
_fimc_subdev_set_selection:             ; @fimc_subdev_set_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	x23, x1
	mov	x24, x0
	bl	_v4l2_get_subdevdata
	mov	x22, x20
	ldr	x8, [x22], #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.eq	LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x22
	mov	w2, #128
	bl	_fimc_capture_try_selection
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.3:
	add	x25, x21, #8
	ldr	x2, [x20]
	mov	x0, x24
	mov	x1, x23
	bl	_v4l2_subdev_get_try_crop
	b	LBB0_5
LBB0_4:
	ldr	x2, [x20]
	mov	x0, x24
	mov	x1, x23
	bl	_v4l2_subdev_get_try_compose
	add	x25, x21, #4
LBB0_5:
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	q0, [x22]
	str	q0, [x0]
	b	LBB0_10
LBB0_7:
	add	x22, x19, #4
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldp	w2, w1, [x20, #32]
	ldp	w4, w3, [x20, #24]
	mov	x0, x25
	bl	_set_frame_crop
Lloh6:
	adrp	x8, _ST_CAPT_APPLY_CFG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_CAPT_APPLY_CFG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_set_bit
	ldr	w8, [x20, #8]
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _FIMC_COMPOSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FIMC_COMPOSE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock_irqrestore
LBB0_10:
	ldr	w1, [x20, #8]
	ldp	w3, w2, [x20, #32]
	ldp	w5, w4, [x20, #24]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- 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
	.comm	_ST_CAPT_APPLY_CFG,4,2          ; @ST_CAPT_APPLY_CFG
	.comm	_FIMC_COMPOSE,4,2               ; @FIMC_COMPOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target %#x: (%d,%d)/%dx%d"

	.no_dead_strip	_fimc_subdev_set_selection
.subsections_via_symbols
