	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l_s_crop
_v4l_s_crop:                            ## @v4l_s_crop
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_video_devdata
	movq	%rax, %r13
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)
	movl	(%rbx), %edi
	movl	%edi, -44(%rbp)
	callq	_V4L2_TYPE_IS_OUTPUT
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	movq	%rbx, -56(%rbp)
	movq	_V4L2_FL_QUIRK_INVERTED_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	jne	LBB0_6
## %bb.5:
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	movq	%rax, -56(%rbp)
LBB0_7:
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_v4l_s_selection
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ## @V4L2_SEL_TGT_COMPOSE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_FL_QUIRK_INVERTED_CROP,4,2 ## @V4L2_FL_QUIRK_INVERTED_CROP
	.no_dead_strip	_v4l_s_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l_s_crop
_v4l_s_crop:                            ; @v4l_s_crop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_video_devdata
	mov	x23, x0
	ldr	d0, [x22]
	rev64.2s	v1, v0
	str	d1, [sp, #8]
	fmov	w0, s0
	bl	_V4L2_TYPE_IS_OUTPUT
Lloh0:
	adrp	x22, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh2:
	adrp	x24, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x22, x24, eq
	ldr	x25, [x8]
	str	x25, [sp]
Lloh4:
	adrp	x8, _V4L2_FL_QUIRK_INVERTED_CROP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_FL_QUIRK_INVERTED_CROP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x24]
	ldr	x9, [x22]
	cmp	x25, x8
	csel	x8, x9, x8, eq
	str	x8, [sp]
LBB0_2:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_v4l_s_selection
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_COMPOSE,8,3       ; @V4L2_SEL_TGT_COMPOSE
	.comm	_V4L2_SEL_TGT_CROP,8,3          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_FL_QUIRK_INVERTED_CROP,4,2 ; @V4L2_FL_QUIRK_INVERTED_CROP
	.no_dead_strip	_v4l_s_crop
.subsections_via_symbols
