	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvr2_s_selection
_pvr2_s_selection:                      ## @pvr2_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdx), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rdx, %r15
	movq	8(%rdx), %rax
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	_PVR2_CID_CROPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	movl	28(%r15), %esi
	movl	%eax, %edi
	callq	_pvr2_ctrl_set_value
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_PVR2_CID_CROPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	movl	24(%r15), %esi
	movl	%eax, %edi
	callq	_pvr2_ctrl_set_value
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	_PVR2_CID_CROPW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	movl	20(%r15), %esi
	movl	%eax, %edi
	callq	_pvr2_ctrl_set_value
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_PVR2_CID_CROPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pvr2_hdw_get_ctrl_by_id
	movl	16(%r15), %esi
	movl	%eax, %edi
	callq	_pvr2_ctrl_set_value
	movl	%eax, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_pvr2_hdw_commit_ctl
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.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_s_selection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvr2_s_selection
_pvr2_s_selection:                      ; @pvr2_s_selection
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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_7
; %bb.1:
	mov	x19, x2
	ldr	x8, [x2, #8]
Lloh3:
	adrp	x9, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh6:
	adrp	x8, _PVR2_CID_CROPL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PVR2_CID_CROPL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	ldr	w1, [x19, #28]
	bl	_pvr2_ctrl_set_value
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _PVR2_CID_CROPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PVR2_CID_CROPT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	ldr	w1, [x19, #24]
	bl	_pvr2_ctrl_set_value
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.4:
Lloh12:
	adrp	x8, _PVR2_CID_CROPW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PVR2_CID_CROPW@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	ldr	w1, [x19, #20]
	bl	_pvr2_ctrl_set_value
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _PVR2_CID_CROPH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PVR2_CID_CROPH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pvr2_hdw_get_ctrl_by_id
	ldr	w1, [x19, #16]
	bl	_pvr2_ctrl_set_value
	mov	x21, x0
LBB0_6:
	mov	x0, x20
	bl	_pvr2_hdw_commit_ctl
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.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_s_selection
.subsections_via_symbols
