	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_jpeg_s_selection
_s5p_jpeg_s_selection:                  ## @s5p_jpeg_s_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	(%rdi), %edi
	callq	_fh_to_ctx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	movq	(%rbx), %rdx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.1:
	movq	8(%rbx), %rdx
	addq	$16, %rbx
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_5
## %bb.2:
	movq	(%rax), %rdx
	movq	_S5P_JPEG_DECODE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.3:
	movq	8(%rax), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_8
## %bb.4:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_exynos3250_jpeg_try_downscale  ## TAILCALL
LBB0_5:
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.6:
	movq	(%rax), %rdx
	movq	_S5P_JPEG_ENCODE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.7:
	movq	8(%rax), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_exynos3250_jpeg_try_crop       ## TAILCALL
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ## @V4L2_SEL_TGT_COMPOSE
	.comm	_S5P_JPEG_DECODE,8,3            ## @S5P_JPEG_DECODE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.comm	_S5P_JPEG_ENCODE,8,3            ## @S5P_JPEG_ENCODE
	.no_dead_strip	_s5p_jpeg_s_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_jpeg_s_selection
_s5p_jpeg_s_selection:                  ; @s5p_jpeg_s_selection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	w0, [x0]
	bl	_fh_to_ctx
	mov	x1, x19
	ldr	x9, [x1], #16
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.1:
	ldr	x9, [x19, #8]
Lloh6:
	adrp	x10, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x0]
Lloh9:
	adrp	x10, _S5P_JPEG_DECODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S5P_JPEG_DECODE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.3:
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_exynos3250_jpeg_try_downscale
LBB0_5:
Lloh12:
	adrp	x10, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.6:
	ldr	x9, [x0]
Lloh15:
	adrp	x10, _S5P_JPEG_ENCODE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _S5P_JPEG_ENCODE@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cbz	x9, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_exynos3250_jpeg_try_crop
LBB0_9:
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ; @V4L2_SEL_TGT_COMPOSE
	.comm	_S5P_JPEG_DECODE,8,3            ; @S5P_JPEG_DECODE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.comm	_S5P_JPEG_ENCODE,8,3            ; @S5P_JPEG_ENCODE
	.no_dead_strip	_s5p_jpeg_s_selection
.subsections_via_symbols
