	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_try_fmt_vid_overlay
_vidioc_try_fmt_vid_overlay:            ## @vidioc_try_fmt_vid_overlay
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rsi), %rdi
	movq	(%rdi), %rbx
	callq	_DEB_EE
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.4:
	movl	8(%r14), %eax
	movl	12(%r14), %ecx
	cmpl	$48, %eax
	jl	LBB0_6
## %bb.5:
	cmpl	$31, %ecx
	jle	LBB0_6
## %bb.7:
	cmpl	$17, (%r14)
	jl	LBB0_10
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	movslq	%ecx, %rdi
LBB0_9:
	callq	_DEB_D
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	movl	4(%r14), %edi
	movq	(%rbx), %rdx
	movl	(%rdx), %r8d
	movl	4(%rdx), %esi
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rbx
	cmpl	%edi, (%rbx)
	jne	LBB0_13
## %bb.11:
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	$128, %edi
	cmpl	%edx, %ecx
	jle	LBB0_16
## %bb.12:
	movl	$129, %edi
	jmp	LBB0_17
LBB0_13:
	leal	-130(%rdi), %edx
	cmpl	$2, %edx
	jb	LBB0_16
## %bb.14:
	cmpl	$129, %edi
	je	LBB0_17
## %bb.15:
	cmpl	$128, %edi
	jne	LBB0_9
LBB0_16:
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	movl	%edx, %esi
LBB0_17:
	movl	%edi, 4(%r14)
	cmpl	%r8d, %eax
	jle	LBB0_19
## %bb.18:
	movl	%r8d, 8(%r14)
LBB0_19:
	xorl	%eax, %eax
	cmpl	%esi, %ecx
	jle	LBB0_21
## %bb.20:
	movl	%esi, 12(%r14)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"no fb base set.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"no fb fmt set.\n"

L_.str.4:                               ## @.str.4
	.asciz	"clipcount too big.\n"

	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.no_dead_strip	_vidioc_try_fmt_vid_overlay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_try_fmt_vid_overlay
_vidioc_try_fmt_vid_overlay:            ; @vidioc_try_fmt_vid_overlay
	.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	x0, [x1]
	ldr	x20, [x0]
	bl	_DEB_EE
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.2:
	ldp	w9, w8, [x19, #8]
	sxtw	x0, w8
	cmp	w9, #48
	ccmp	w8, #31, #4, ge
	b.le	LBB0_7
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #17
	b.lt	LBB0_9
; %bb.4:
Lloh0:
	adrp	x0, l_.str.4@PAGE
Lloh1:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_DEB_D
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w8, [x19, #4]
	ldr	x10, [x20]
	ldp	w11, w10, [x10]
Lloh9:
	adrp	x12, _V4L2_FIELD_ANY@GOTPAGE
Lloh10:
	ldr	x12, [x12, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	cmp	w12, w8
	b.ne	LBB0_12
; %bb.10:
	cmp	w10, #0
	cinc	w8, w10, lt
	cmp	w0, w8, asr #1
	b.le	LBB0_16
; %bb.11:
	mov	w8, #129
	b	LBB0_18
LBB0_12:
	sub	w12, w8, #130
	cmp	w12, #2
	b.lo	LBB0_17
; %bb.13:
	cmp	w8, #129
	b.eq	LBB0_18
; %bb.14:
	cmp	w8, #128
	b.eq	LBB0_17
; %bb.15:
	mov	x0, x8
	b	LBB0_7
LBB0_16:
	mov	w8, #128
LBB0_17:
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
LBB0_18:
	str	w8, [x19, #4]
	cmp	w9, w11
	b.le	LBB0_20
; %bb.19:
	str	w11, [x19, #8]
LBB0_20:
	cmp	w0, w10
	b.le	LBB0_22
; %bb.21:
	mov	w0, #0
	str	w10, [x19, #12]
	b	LBB0_8
LBB0_22:
	mov	w0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"no fb base set.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"no fb fmt set.\n"

l_.str.4:                               ; @.str.4
	.asciz	"clipcount too big.\n"

	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.no_dead_strip	_vidioc_try_fmt_vid_overlay
.subsections_via_symbols
