	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_g_selection
_pvr2_g_selection:                      ## @pvr2_g_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movl	$0, -20(%rbp)
	movq	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.1:
	movq	%rdx, %rbx
	movq	%rax, -32(%rbp)
	movl	8(%rdx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.4:
	movq	_PVR2_CID_CROPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_pvr2_ctrl_get_value
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movl	-20(%rbp), %eax
	movl	%eax, 12(%rbx)
	movq	_PVR2_CID_CROPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_pvr2_ctrl_get_value
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movl	-20(%rbp), %eax
	movl	%eax, 16(%rbx)
	movq	_PVR2_CID_CROPW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_pvr2_ctrl_get_value
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movl	-20(%rbp), %eax
	movl	%eax, 20(%rbx)
	movq	_PVR2_CID_CROPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	leaq	-20(%rbp), %rsi
	movl	%eax, %edi
	callq	_pvr2_ctrl_get_value
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_cropcap
	movups	-48(%rbp), %xmm0
	movups	%xmm0, 12(%rbx)
	jmp	LBB0_12
LBB0_10:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_cropcap
	movups	-64(%rbp), %xmm0
	movups	%xmm0, 12(%rbx)
	jmp	LBB0_12
LBB0_8:
	movl	-20(%rbp), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PVR2_CID_CROPL,4,2             ## @PVR2_CID_CROPL
	.comm	_PVR2_CID_CROPT,4,2             ## @PVR2_CID_CROPT
	.comm	_PVR2_CID_CROPW,4,2             ## @PVR2_CID_CROPW
	.comm	_PVR2_CID_CROPH,4,2             ## @PVR2_CID_CROPH
	.no_dead_strip	_pvr2_g_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_g_selection
_pvr2_g_selection:                      ; @pvr2_g_selection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
	str	wzr, [sp, #4]
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
	mov	x19, x2
	str	x8, [sp, #40]
	ldr	w8, [x2, #8]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _PVR2_CID_CROPL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVR2_CID_CROPL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #4
	bl	_pvr2_ctrl_get_value
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #4]
	str	w8, [x19, #12]
Lloh6:
	adrp	x8, _PVR2_CID_CROPT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PVR2_CID_CROPT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #4
	bl	_pvr2_ctrl_get_value
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w8, [sp, #4]
	str	w8, [x19, #16]
Lloh9:
	adrp	x8, _PVR2_CID_CROPW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PVR2_CID_CROPW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #4
	bl	_pvr2_ctrl_get_value
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [sp, #4]
	str	w8, [x19, #20]
Lloh12:
	adrp	x8, _PVR2_CID_CROPH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PVR2_CID_CROPH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	add	x1, sp, #4
	bl	_pvr2_ctrl_get_value
	cbz	w0, LBB0_12
LBB0_8:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_pvr2_hdw_get_cropcap
	ldur	q0, [sp, #24]
	stur	q0, [x19, #12]
	b	LBB0_9
LBB0_11:
	add	x1, sp, #8
	mov	x0, x20
	bl	_pvr2_hdw_get_cropcap
	ldur	q0, [sp, #8]
	stur	q0, [x19, #12]
	b	LBB0_9
LBB0_12:
	ldr	w8, [sp, #4]
	str	w8, [x19, #24]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PVR2_CID_CROPL,4,2             ; @PVR2_CID_CROPL
	.comm	_PVR2_CID_CROPT,4,2             ; @PVR2_CID_CROPT
	.comm	_PVR2_CID_CROPW,4,2             ; @PVR2_CID_CROPW
	.comm	_PVR2_CID_CROPH,4,2             ; @PVR2_CID_CROPH
	.no_dead_strip	_pvr2_g_selection
.subsections_via_symbols
