	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_set_dac
_venc_set_dac:                          ## @venc_set_dac
	.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	%rdi, %r14
	cmpl	$2, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_7
## %bb.3:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rcx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	movq	_VENC_DACSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_venc_write
	jmp	LBB0_8
LBB0_6:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	movq	_VENC_DACSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VDAC_S_VIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %esi
	movq	%r14, %rdx
	callq	_v4l2_dbg
	movq	_VENC_DACSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VDAC_COMPONENT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_venc_write
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	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	"Setting output to Composite\n"

	.comm	_VENC_DACSEL,4,2                ## @VENC_DACSEL
L_.str.1:                               ## @.str.1
	.asciz	"Setting output to Component\n"

	.comm	_VDAC_COMPONENT,4,2             ## @VDAC_COMPONENT
L_.str.2:                               ## @.str.2
	.asciz	"Setting output to S-video\n"

	.comm	_VDAC_S_VIDEO,4,2               ## @VDAC_S_VIDEO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_venc_set_dac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_set_dac
_venc_set_dac:                          ; @venc_set_dac
	.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, x0
	cmp	w1, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w1, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh5:
	adrp	x8, _VENC_DACSEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VENC_DACSEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w1, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh13:
	adrp	x8, _VENC_DACSEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VENC_DACSEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _VDAC_S_VIDEO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VDAC_S_VIDEO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh18:
	adrp	x8, _debug@GOTPAGE
Lloh19:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_v4l2_dbg
Lloh23:
	adrp	x8, _VENC_DACSEL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VENC_DACSEL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _VDAC_COMPONENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VDAC_COMPONENT@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_7:
	bl	_venc_write
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting output to Composite\n"

	.comm	_VENC_DACSEL,4,2                ; @VENC_DACSEL
l_.str.1:                               ; @.str.1
	.asciz	"Setting output to Component\n"

	.comm	_VDAC_COMPONENT,4,2             ; @VDAC_COMPONENT
l_.str.2:                               ; @.str.2
	.asciz	"Setting output to S-video\n"

	.comm	_VDAC_S_VIDEO,4,2               ; @VDAC_S_VIDEO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_venc_set_dac
.subsections_via_symbols
