	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_set_selection
_vfe_set_selection:                     ## @vfe_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	$40, %rsp
	.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, %r14
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	(%r12), %rax
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	8(%r12), %rcx
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	$0, -56(%rbp)
	movl	16(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___vfe_get_compose
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r13
	leaq	20(%r12), %rdx
	movl	16(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vfe_try_compose
	movq	20(%r12), %rax
	movq	%rax, (%r13)
	movl	16(%r12), %eax
	movl	%eax, -64(%rbp)
	movq	_MSM_VFE_PAD_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	(%r13), %rax
	movq	%rax, -60(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vfe_set_selection
	jmp	LBB0_11
LBB0_5:
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movq	8(%r12), %rax
	movq	_MSM_VFE_PAD_SRC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	16(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___vfe_get_crop
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%rax, %r13
	leaq	20(%r12), %rdx
	movl	16(%r12), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vfe_try_crop
	movq	20(%r12), %rax
	movq	%rax, (%r13)
	movl	16(%r12), %eax
	movl	%eax, -64(%rbp)
	movq	_MSM_VFE_PAD_SRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vfe_get_format
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movl	4(%r13), %eax
	movl	%eax, -76(%rbp)
	movl	(%r13), %eax
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vfe_set_format
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VFE_LINE_PIX,8,3               ## @VFE_LINE_PIX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ## @V4L2_SEL_TGT_COMPOSE
	.comm	_MSM_VFE_PAD_SINK,8,3           ## @MSM_VFE_PAD_SINK
	.comm	_MSM_VFE_PAD_SRC,8,3            ## @MSM_VFE_PAD_SRC
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.no_dead_strip	_vfe_set_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_set_selection
_vfe_set_selection:                     ; @vfe_set_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VFE_LINE_PIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VFE_LINE_PIX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.1:
	mov	x22, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x21, #8]
Lloh6:
	adrp	x10, _MSM_VFE_PAD_SINK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MSM_VFE_PAD_SINK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	str	xzr, [sp, #24]
	ldr	w2, [x21, #16]
	mov	x0, x22
	mov	x1, x19
	bl	___vfe_get_compose
	cbz	x0, LBB0_10
; %bb.4:
	mov	x23, x0
	add	x2, x21, #20
	ldr	w3, [x21, #16]
	mov	x0, x22
	mov	x1, x19
	bl	_vfe_try_compose
	ldur	x8, [x21, #20]
	str	x8, [x23]
	ldr	w8, [x21, #16]
	str	w8, [sp, #16]
Lloh9:
	adrp	x8, _MSM_VFE_PAD_SRC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSM_VFE_PAD_SRC@GOTPAGEOFF]
Lloh11:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	ldr	x9, [x9]
	stp	x9, x8, [sp]
	ldr	x8, [x23]
	stur	x8, [sp, #20]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_vfe_set_selection
	b	LBB0_11
LBB0_5:
Lloh15:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x21, #8]
Lloh18:
	adrp	x24, _MSM_VFE_PAD_SRC@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MSM_VFE_PAD_SRC@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	ldr	w2, [x21, #16]
	mov	x0, x22
	mov	x1, x19
	bl	___vfe_get_crop
	cbz	x0, LBB0_10
; %bb.8:
	mov	x23, x0
	add	x2, x21, #20
	ldr	w3, [x21, #16]
	mov	x0, x22
	mov	x1, x19
	bl	_vfe_try_crop
	ldur	x8, [x21, #20]
	str	x8, [x23]
	ldr	w8, [x21, #16]
	str	w8, [sp, #16]
	ldr	x8, [x24]
	str	x8, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_vfe_get_format
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	d0, [x23]
	str	d0, [sp]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_vfe_set_format
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VFE_LINE_PIX,8,3               ; @VFE_LINE_PIX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ; @V4L2_SEL_TGT_COMPOSE
	.comm	_MSM_VFE_PAD_SINK,8,3           ; @MSM_VFE_PAD_SINK
	.comm	_MSM_VFE_PAD_SRC,8,3            ; @MSM_VFE_PAD_SRC
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.no_dead_strip	_vfe_set_selection
.subsections_via_symbols
