	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7127_set_vps
_saa7127_set_vps:                       ## @saa7127_set_vps
	.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
	movq	%rsi, %r15
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_to_state
	movq	%rax, %rbx
	movl	(%r15), %r12d
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	setne	%al
	je	LBB0_4
## %bb.1:
	cmpq	$0, 8(%r15)
	jne	LBB0_3
## %bb.2:
	cmpl	$16, %r12d
	jne	LBB0_3
LBB0_4:
	movb	%al, %r14b
	cmpl	%r14d, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	setne	%r13b
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmovneq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	shll	$7, %r13d
	movq	%rbx, %rdi
	movl	$84, %esi
	movl	%r13d, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	_saa7127_write
	movl	%r14d, (%rbx)
LBB0_6:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.8:
	movq	16(%r15), %rax
	movl	8(%rax), %ecx
	movq	8(%rbx), %r9
	movl	%ecx, (%r9)
	movl	32(%rax), %ecx
	movl	%ecx, 4(%r9)
	movl	36(%rax), %ecx
	movl	%ecx, 8(%r9)
	movl	40(%rax), %ecx
	movl	%ecx, 12(%r9)
	movl	44(%rax), %eax
	movl	%eax, 16(%r9)
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	$5, %r8d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	8(%rbx), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$85, %esi
	callq	_saa7127_write
	movq	8(%rbx), %rax
	movl	4(%rax), %edx
	movq	%r14, %rdi
	movl	$86, %esi
	callq	_saa7127_write
	movq	8(%rbx), %rax
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movl	$87, %esi
	callq	_saa7127_write
	movq	8(%rbx), %rax
	movl	12(%rax), %edx
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_saa7127_write
	movq	8(%rbx), %rax
	movl	16(%rax), %edx
	movq	%r14, %rdi
	movl	$89, %esi
	callq	_saa7127_write
	jmp	LBB0_9
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_7:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %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
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn VPS Signal %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

L_.str.3:                               ## @.str.3
	.asciz	"Set VPS data %*ph\n"

	.no_dead_strip	_saa7127_set_vps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7127_set_vps
_saa7127_set_vps:                       ; @saa7127_set_vps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_to_state
	mov	x20, x0
	ldr	w22, [x21]
	cmp	w22, #0
	cset	w24, ne
	cbz	w22, LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, #0
	ccmp	w22, #16, #0, eq
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
Lloh3:
	adrp	x23, _debug@GOTPAGE
Lloh4:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	cmp	w8, w24
	b.eq	LBB0_5
; %bb.4:
	cmp	w22, #0
	cset	w25, ne
	ldr	w1, [x23]
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x8, x9, x8, ne
	str	x8, [sp]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	lsl	w2, w25, #7
	mov	x0, x19
	mov	w1, #84
	bl	_saa7127_write
	str	w24, [x20]
LBB0_5:
	cbz	w22, LBB0_7
; %bb.6:
	ldr	x8, [x21, #16]
	ldr	w9, [x8, #8]
	ldr	x10, [x20, #8]
	str	w9, [x10]
	ldr	w9, [x8, #32]
	str	w9, [x10, #4]
	ldr	w9, [x8, #36]
	str	w9, [x10, #8]
	ldr	w9, [x8, #40]
	str	w9, [x10, #12]
	ldr	w8, [x8, #44]
	str	w8, [x10, #16]
	ldr	w1, [x23]
	mov	w8, #5
	stp	x8, x10, [sp]
Lloh11:
	adrp	x3, l_.str.3@PAGE
Lloh12:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	x8, [x20, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #85
	bl	_saa7127_write
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #4]
	mov	x0, x19
	mov	w1, #86
	bl	_saa7127_write
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	mov	w1, #87
	bl	_saa7127_write
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #12]
	mov	x0, x19
	mov	w1, #88
	bl	_saa7127_write
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #16]
	mov	x0, x19
	mov	w1, #89
	bl	_saa7127_write
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn VPS Signal %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

l_.str.3:                               ; @.str.3
	.asciz	"Set VPS data %*ph\n"

	.no_dead_strip	_saa7127_set_vps
.subsections_via_symbols
