	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_s_output
_ivtv_s_output:                         ## @ivtv_s_output
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %rbx
	movq	8(%rbx), %rax
	cmpl	%r15d, (%rax)
	jbe	LBB0_1
## %bb.2:
	movl	(%rbx), %esi
	cmpl	%r15d, %esi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_IVTV_DEBUG_INFO
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_IVTV_DEBUG_INFO
	movl	%r15d, (%rbx)
	movq	_IVTV_HW_SAA7127@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_routing@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SAA7127_INPUT_TYPE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	8(%rbx), %rax
	movq	8(%rax), %rax
	movl	%r15d, %edi
	movl	(%rax,%rdi,4), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	callq	_ivtv_call_hw
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"Output unchanged\n"

L_.str.1:                               ## @.str.1
	.asciz	"Changing output from %d to %d\n"

	.comm	_IVTV_HW_SAA7127,4,2            ## @IVTV_HW_SAA7127
	.comm	_video,4,2                      ## @video
	.comm	_s_routing,4,2                  ## @s_routing
	.comm	_SAA7127_INPUT_TYPE_NORMAL,4,2  ## @SAA7127_INPUT_TYPE_NORMAL
	.no_dead_strip	_ivtv_s_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_s_output
_ivtv_s_output:                         ; @ivtv_s_output
	.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
	mov	x0, x1
	bl	_fh2id
	ldr	x20, [x0]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cmp	w8, w19
	b.ls	LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTV_DEBUG_INFO
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	stp	x8, x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IVTV_DEBUG_INFO
	str	w19, [x20]
Lloh7:
	adrp	x8, _IVTV_HW_SAA7127@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IVTV_HW_SAA7127@GOTPAGEOFF]
Lloh9:
	adrp	x9, _video@GOTPAGE
Lloh10:
	ldr	x9, [x9, _video@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	ldr	w2, [x9]
Lloh13:
	adrp	x8, _s_routing@GOTPAGE
Lloh14:
	ldr	x8, [x8, _s_routing@GOTPAGEOFF]
Lloh15:
	adrp	x9, _SAA7127_INPUT_TYPE_NORMAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SAA7127_INPUT_TYPE_NORMAL@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	ldr	w4, [x9]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	ldr	w5, [x8, w19, uxtw #2]
	mov	x0, x20
	mov	w6, #0
	bl	_ivtv_call_hw
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Output unchanged\n"

l_.str.1:                               ; @.str.1
	.asciz	"Changing output from %d to %d\n"

	.comm	_IVTV_HW_SAA7127,4,2            ; @IVTV_HW_SAA7127
	.comm	_video,4,2                      ; @video
	.comm	_s_routing,4,2                  ; @s_routing
	.comm	_SAA7127_INPUT_TYPE_NORMAL,4,2  ; @SAA7127_INPUT_TYPE_NORMAL
	.no_dead_strip	_ivtv_s_output
.subsections_via_symbols
