	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omapvid_init
_omapvid_init:                          ## @omapvid_init
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cmpl	$0, 32(%rdi)
	jle	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movq	(%rax,%r13,8), %r15
	movq	%r15, %rdi
	callq	*(%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	16(%r12), %ebx
	movl	20(%r12), %r9d
	cmpl	$130, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r9d, %esi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_swap
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	4(%r14), %ecx
	movl	16(%r12), %eax
	movl	28(%r12), %edx
	addl	24(%r12), %eax
	subl	%eax, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %eax
	addl	%ebx, %eax
	movl	(%r14), %edx
	subl	%eax, %edx
	movl	4(%r14), %ecx
	movl	28(%r12), %eax
	addl	%r9d, %eax
	subl	%eax, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movl	%r9d, %esi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_swap
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	20(%r12), %eax
	movl	24(%r12), %ecx
	movl	(%r14), %edx
	addl	28(%r12), %eax
	subl	%eax, %edx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %edx
	movl	28(%r12), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %r8d
	callq	_omapvid_setup_overlay
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	32(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %ebx
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_v4l2_warn
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"apply_changes failed\n"

	.no_dead_strip	_omapvid_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omapvid_init
_omapvid_init:                          ; @omapvid_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #32]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x25, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	x21, [x8, x25, lsl #3]
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x0
	ldp	w22, w23, [x19, #16]
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_swap
	ldr	w8, [x24, #4]
	ldr	w9, [x19, #16]
	ldp	w10, w2, [x19, #24]
	add	w9, w9, w10
	sub	w3, w8, w9
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [x24]
	ldp	w10, w11, [x19, #24]
	add	w10, w22, w10
	sub	w2, w8, w10
	add	w8, w23, w11
	sub	w3, w9, w8
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_swap
	ldr	w8, [x24]
	ldp	w9, w3, [x19, #20]
	ldr	w10, [x19, #28]
	add	w9, w9, w10
	sub	w2, w8, w9
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w3, [x19, #24]
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x4, x22
	mov	x5, x23
	mov	x6, x20
	bl	_omapvid_setup_overlay
	cbnz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #32]
	cmp	x25, x8
	b.lt	LBB0_2
LBB0_12:
	mov	w21, #0
	b	LBB0_15
LBB0_13:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_14:
	mov	x21, x0
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_warn
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"apply_changes failed\n"

	.no_dead_strip	_omapvid_init
.subsections_via_symbols
