	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __vpe_try_selection
___vpe_try_selection:                   ## @__vpe_try_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	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rsi
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %r13
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %r12
	cmpq	(%r13), %rsi
	je	LBB0_3
## %bb.1:
	cmpq	(%r12), %rsi
	jne	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_get_q_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movl	8(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_2
## %bb.6:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_2
LBB0_8:
	movq	_Q_DATA_INTERLACED_SEQ_TB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	4(%r14), %r13d
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movl	%r13d, %eax
	shrl	$31, %eax
	addl	%r13d, %eax
	sarl	%eax
	movl	%eax, %r13d
LBB0_10:
	leaq	16(%rbx), %r12
	cmpq	$0, 16(%rbx)
	js	LBB0_12
## %bb.11:
	cmpq	$0, 24(%rbx)
	jns	LBB0_13
LBB0_12:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_vpe_err
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
LBB0_13:
	leaq	32(%rbx), %rdi
	movq	_MIN_W@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r14), %rdx
	leaq	40(%rbx), %r15
	movq	_MIN_H@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_H_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_S_ALIGN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	subq	$8, %rsp
	movl	$1, %ecx
	movq	%r15, %r8
	pushq	%rax
	pushq	%r10
	pushq	%r13
	callq	_v4l_bound_align_image
	addq	$32, %rsp
	movq	32(%rbx), %rax
	movq	24(%rbx), %rdx
	addq	%rax, %rdx
	movq	8(%r14), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_15
## %bb.14:
	subq	%rax, %rcx
	movq	%rcx, 24(%rbx)
LBB0_15:
	movslq	(%r15), %rcx
	movq	(%r12), %rsi
	addq	%rcx, %rsi
	movslq	4(%r14), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rsi
	jle	LBB0_17
## %bb.16:
	subq	%rcx, %rdx
	movq	%rdx, (%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_Q_DATA_INTERLACED_SEQ_TB,4,2   ## @Q_DATA_INTERLACED_SEQ_TB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"negative values for top and left\n"

	.comm	_MIN_W,4,2                      ## @MIN_W
	.comm	_MIN_H,4,2                      ## @MIN_H
	.comm	_H_ALIGN,4,2                    ## @H_ALIGN
	.comm	_S_ALIGN,4,2                    ## @S_ALIGN
	.no_dead_strip	___vpe_try_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __vpe_try_selection
___vpe_try_selection:                   ; @__vpe_try_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x22, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x1, x8
	ccmp	x1, x9, #4, ne
	b.ne	LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_get_q_data
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_5
LBB0_8:
Lloh7:
	adrp	x8, _Q_DATA_INTERLACED_SEQ_TB@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Q_DATA_INTERLACED_SEQ_TB@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w9, w10, [x20]
	cmp	w10, #0
	cinc	w11, w10, lt
	asr	w11, w11, #1
	tst	w8, w9
	csel	w22, w10, w11, eq
	mov	x23, x19
	ldr	x8, [x23, #16]!
	tbnz	x8, #63, LBB0_10
; %bb.9:
	ldr	x8, [x19, #24]
	tbz	x8, #63, LBB0_11
LBB0_10:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vpe_err
	stp	xzr, xzr, [x23]
LBB0_11:
	add	x0, x19, #32
Lloh12:
	adrp	x8, _MIN_W@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIN_W@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x20, #8]
	add	x21, x19, #40
Lloh15:
	adrp	x8, _MIN_H@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIN_H@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
Lloh18:
	adrp	x8, _H_ALIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _H_ALIGN@GOTPAGEOFF]
Lloh20:
	ldr	w7, [x8]
Lloh21:
	adrp	x8, _S_ALIGN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _S_ALIGN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	w3, #1
	mov	x4, x21
	mov	x6, x22
	bl	_v4l_bound_align_image
	ldp	x10, x8, [x19, #24]
	ldr	x9, [x20, #8]
	add	x10, x8, x10
	cmp	x10, x9
	b.le	LBB0_13
; %bb.12:
	sub	x8, x9, x8
	str	x8, [x19, #24]
LBB0_13:
	ldr	x10, [x23]
	ldrsw	x8, [x21]
	ldrsw	x9, [x20, #4]
	add	x10, x10, x8
	cmp	x10, x9
	b.le	LBB0_15
; %bb.14:
	mov	w0, #0
	sub	x8, x9, x8
	str	x8, [x23]
	b	LBB0_6
LBB0_15:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_Q_DATA_INTERLACED_SEQ_TB,4,2   ; @Q_DATA_INTERLACED_SEQ_TB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"negative values for top and left\n"

	.comm	_MIN_W,4,2                      ; @MIN_W
	.comm	_MIN_H,4,2                      ; @MIN_H
	.comm	_H_ALIGN,4,2                    ; @H_ALIGN
	.comm	_S_ALIGN,4,2                    ; @S_ALIGN
	.no_dead_strip	___vpe_try_selection
.subsections_via_symbols
