	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_map_sub_device_to_input
_vpif_map_sub_device_to_input:          ## @vpif_map_sub_device_to_input
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	16(%r15), %rax
	movq	(%rbx), %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	xorl	%r13d, %r13d
	testl	%edx, %edx
	jle	LBB0_15
## %bb.1:
	leal	-1(%rdx), %esi
	cmpl	%r12d, %esi
	jb	LBB0_15
## %bb.2:
	xorl	%r13d, %r13d
	cmpl	%r12d, %edx
	je	LBB0_15
## %bb.3:
	movq	8(%rax,%rcx), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.4:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.6:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r14
	movq	8(%r15), %r13
	movl	(%r13,%rcx), %edi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	leaq	4(%r14), %rcx
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	cmpl	%eax, %ebx
	jne	LBB0_12
	jmp	LBB0_15
LBB0_8:
	movl	(%r15), %eax
LBB0_10:
	addq	%r14, %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	cmpl	%eax, %ebx
	je	LBB0_15
LBB0_12:
	movq	_vpif_obj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_13
## %bb.14:
	movl	%ebx, (%r14)
	jmp	LBB0_15
LBB0_13:
	xorl	%r13d, %r13d
LBB0_15:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_map_sub_device_to_input\n"

	.comm	_vpif_obj,8,3                   ## @vpif_obj
	.no_dead_strip	_vpif_map_sub_device_to_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_map_sub_device_to_input
_vpif_map_sub_device_to_input:          ; @vpif_map_sub_device_to_input
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
	ldr	x8, [x20, #16]
	ldr	x10, [x21]
	lsl	x9, x10, #4
	ldr	w9, [x8, x9]
	subs	w11, w9, #1
	ccmp	w11, w22, #0, ge
	b.lo	LBB0_2
; %bb.1:
	add	x8, x8, x10, lsl #4
	ldr	x8, [x8, #8]
	ldr	x21, [x8, w22, uxtw #3]
	cmp	w9, w22
	ccmp	x21, #0, #4, ne
	b.ne	LBB0_4
LBB0_2:
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x9, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x9
	ldr	x24, [x20, #8]
	ldr	w0, [x24, x9]
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x9, x23, #4
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_10
LBB0_8:
	mov	w22, #0
	mov	x0, #0
	cmp	w22, w8
	b.ne	LBB0_11
	b	LBB0_3
LBB0_9:
	ldr	w8, [x20]
LBB0_10:
	add	x0, x24, x23
	cmp	w22, w8
	b.eq	LBB0_3
LBB0_11:
Lloh5:
	adrp	x8, _vpif_obj@GOTPAGE
Lloh6:
	ldr	x8, [x8, _vpif_obj@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x8, w22, uxtw #3]
	cbz	x8, LBB0_2
; %bb.12:
	str	w22, [x19]
	b	LBB0_3
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_map_sub_device_to_input\n"

	.comm	_vpif_obj,8,3                   ; @vpif_obj
	.no_dead_strip	_vpif_map_sub_device_to_input
.subsections_via_symbols
