	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_config_addr
_vpif_config_addr:                      ## @vpif_config_addr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	_VPIF_CHANNEL1_VIDEO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpl	$2, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_ch0_set_videobuf_addr_yc_nmux@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ch0_set_videobuf_addr@GOTPCREL(%rip), %rax
LBB0_3:
	movq	8(%rbx), %rsi
	movq	(%rcx), %rcx
	cmpq	(%rbx), %rdx
	jne	LBB0_5
## %bb.4:
	movq	_ch1_set_videobuf_addr@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rsi,%rcx,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_config_addr\n"

	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_VPIF_CHANNEL1_VIDEO,8,3        ## @VPIF_CHANNEL1_VIDEO
	.comm	_ch1_set_videobuf_addr,4,2      ## @ch1_set_videobuf_addr
	.comm	_ch0_set_videobuf_addr_yc_nmux,4,2 ## @ch0_set_videobuf_addr_yc_nmux
	.comm	_ch0_set_videobuf_addr,4,2      ## @ch0_set_videobuf_addr
	.no_dead_strip	_vpif_config_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_config_addr
_vpif_config_addr:                      ; @vpif_config_addr
	.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, x1
	mov	x20, 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
Lloh5:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _VPIF_CHANNEL1_VIDEO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VPIF_CHANNEL1_VIDEO@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _ch1_set_videobuf_addr@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ch1_set_videobuf_addr@GOTPAGEOFF]
	ldp	x12, x11, [x20]
Lloh13:
	adrp	x13, _ch0_set_videobuf_addr_yc_nmux@GOTPAGE
Lloh14:
	ldr	x13, [x13, _ch0_set_videobuf_addr_yc_nmux@GOTPAGEOFF]
Lloh15:
	adrp	x14, _ch0_set_videobuf_addr@GOTPAGE
Lloh16:
	ldr	x14, [x14, _ch0_set_videobuf_addr@GOTPAGEOFF]
	cmp	w19, #2
	csel	x13, x13, x14, eq
	cmp	x9, x12
	csel	x9, x10, x13, eq
	ldr	w9, [x9]
	str	w9, [x11, x8, lsl #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_config_addr\n"

	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_VPIF_CHANNEL1_VIDEO,8,3        ; @VPIF_CHANNEL1_VIDEO
	.comm	_ch1_set_videobuf_addr,4,2      ; @ch1_set_videobuf_addr
	.comm	_ch0_set_videobuf_addr_yc_nmux,4,2 ; @ch0_set_videobuf_addr_yc_nmux
	.comm	_ch0_set_videobuf_addr,4,2      ; @ch0_set_videobuf_addr
	.no_dead_strip	_vpif_config_addr
.subsections_via_symbols
