	.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), %rsi
	movq	(%rsi), %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DEB_EE
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.4:
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.6:
	movl	8(%r14), %esi
	movl	12(%r14), %edx
	cmpl	$48, %esi
	jl	LBB0_8
## %bb.7:
	cmpl	$31, %edx
	jle	LBB0_8
## %bb.9:
	cmpl	$17, (%r14)
	jl	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEB_D
	jmp	LBB0_3
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DEB_D
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	4(%r14), %eax
	movq	(%rbx), %rcx
	movl	(%rcx), %r8d
	movl	4(%rcx), %edi
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rbx
	cmpl	%eax, (%rbx)
	jne	LBB0_14
## %bb.12:
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movl	$128, %eax
	cmpl	%ecx, %edx
	jle	LBB0_17
## %bb.13:
	movl	$129, %eax
	jmp	LBB0_18
LBB0_14:
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_17
## %bb.15:
	cmpl	$129, %eax
	je	LBB0_18
## %bb.16:
	cmpl	$128, %eax
	jne	LBB0_23
LBB0_17:
	movl	%edi, %ecx
	shrl	$31, %ecx
	addl	%edi, %ecx
	sarl	%ecx
	movl	%ecx, %edi
LBB0_18:
	movl	%eax, 4(%r14)
	cmpl	%r8d, %esi
	jle	LBB0_20
## %bb.19:
	movl	%r8d, 8(%r14)
LBB0_20:
	xorl	%ebx, %ebx
	cmpl	%edi, %edx
	jle	LBB0_22
## %bb.21:
	movl	%edi, 12(%r14)
	jmp	LBB0_22
LBB0_23:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DEB_D
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev:%p\n"

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.3:                               ## @.str.3
	.asciz	"min width/height. (%d,%d)\n"

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

	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
L_.str.5:                               ## @.str.5
	.asciz	"no known field mode '%d'\n"

	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	ldr	x1, [x1]
	ldr	x20, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_EE
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldp	w9, w8, [x19, #8]
	cmp	w9, #48
	ccmp	w8, #31, #4, ge
	b.gt	LBB0_6
; %bb.3:
	stp	x9, x8, [sp]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w10, [x19]
	cmp	w10, #17
	b.lt	LBB0_10
; %bb.7:
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_8:
	bl	_DEB_D
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w12, [x19, #4]
	ldr	x10, [x20]
	ldp	w11, w10, [x10]
Lloh13:
	adrp	x13, _V4L2_FIELD_ANY@GOTPAGE
Lloh14:
	ldr	x13, [x13, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	cmp	w13, w12
	b.ne	LBB0_13
; %bb.11:
	cmp	w10, #0
	cinc	w12, w10, lt
	cmp	w8, w12, asr #1
	b.le	LBB0_17
; %bb.12:
	mov	w12, #129
	b	LBB0_19
LBB0_13:
	sub	w13, w12, #130
	cmp	w13, #2
	b.lo	LBB0_18
; %bb.14:
	cmp	w12, #129
	b.eq	LBB0_19
; %bb.15:
	cmp	w12, #128
	b.eq	LBB0_18
; %bb.16:
	str	x12, [sp]
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_17:
	mov	w12, #128
LBB0_18:
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
LBB0_19:
	str	w12, [x19, #4]
	cmp	w9, w11
	b.le	LBB0_21
; %bb.20:
	str	w11, [x19, #8]
LBB0_21:
	cmp	w8, w10
	b.le	LBB0_23
; %bb.22:
	mov	w0, #0
	str	w10, [x19, #12]
	b	LBB0_9
LBB0_23:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev:%p\n"

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.3:                               ; @.str.3
	.asciz	"min width/height. (%d,%d)\n"

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

	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
l_.str.5:                               ; @.str.5
	.asciz	"no known field mode '%d'\n"

	.no_dead_strip	_vidioc_try_fmt_vid_overlay
.subsections_via_symbols
