	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gv800s_init
_gv800s_init:                           ## @gv800s_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$987263, %edi                   ## imm = 0xF107F
	movl	$987263, %esi                   ## imm = 0xF107F
	callq	_gpio_inout
	movl	$524288, %edi                   ## imm = 0x80000
	callq	_gpio_write
	xorl	%edi, %edi
	callq	_gpio_write
	movq	(%rbx), %rax
	movl	$0, (%rax)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_gv800s_write
	movq	(%rbx), %rax
	movl	$1, 4(%rax)
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_gv800s_write
	movq	(%rbx), %rax
	movl	$2, 8(%rax)
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$2, %edx
	movl	$1, %ecx
	callq	_gv800s_write
	movq	(%rbx), %rax
	movl	$3, 12(%rax)
	movq	%rbx, %rdi
	movl	$3, %esi
	movl	$3, %edx
	movl	$1, %ecx
	callq	_gv800s_write
	movq	%rbx, %rdi
	movl	$24, %esi
	movl	$5, %edx
	movl	$144, %ecx
	movl	$1, %r8d
	callq	_bttv_I2CWrite
	movslq	8(%rbx), %rax
	movq	_BTTV_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	$-4, %ecx
	cmpl	%ecx, %eax
	jg	LBB0_2
## %bb.1:
	movq	_master@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rbx, (%rdx,%rax,8)
	movq	(%rcx), %rdx
	movq	%rbx, 8(%rdx,%rax,8)
	movq	(%rcx), %rdx
	movq	%rbx, 16(%rdx,%rax,8)
	movq	(%rcx), %rcx
	movq	%rbx, 24(%rcx,%rax,8)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTTV_MAX,4,2                   ## @BTTV_MAX
	.comm	_master,8,3                     ## @master
	.no_dead_strip	_gv800s_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gv800s_init
_gv800s_init:                           ; @gv800s_init
	.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
	mov	w0, #4223
	movk	w0, #15, lsl #16
	mov	w1, #4223
	movk	w1, #15, lsl #16
	bl	_gpio_inout
	mov	w0, #524288
	bl	_gpio_write
	mov	w0, #0
	bl	_gpio_write
	ldr	x8, [x19]
	str	wzr, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #1
	bl	_gv800s_write
	ldr	x8, [x19]
	str	w20, [x8, #4]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	bl	_gv800s_write
	ldr	x8, [x19]
	mov	w9, #2
	str	w9, [x8, #8]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #2
	mov	w3, #1
	bl	_gv800s_write
	ldr	x8, [x19]
	mov	w9, #3
	str	w9, [x8, #12]
	mov	x0, x19
	mov	w1, #3
	mov	w2, #3
	mov	w3, #1
	bl	_gv800s_write
	mov	x0, x19
	mov	w1, #24
	mov	w2, #5
	mov	w3, #144
	mov	w4, #1
	bl	_bttv_I2CWrite
	ldrsw	x8, [x19, #8]
Lloh0:
	adrp	x9, _BTTV_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTTV_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #4
	cmp	w8, w9
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _master@GOTPAGE
Lloh4:
	ldr	x9, [x9, _master@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x19, [x10, x8, lsl #3]
	ldr	x10, [x9]
	add	w11, w8, #1
	str	x19, [x10, w11, sxtw #3]
	ldr	x10, [x9]
	add	w11, w8, #2
	str	x19, [x10, w11, sxtw #3]
	ldr	x9, [x9]
	add	w8, w8, #3
	str	x19, [x9, w8, sxtw #3]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BTTV_MAX,4,2                   ; @BTTV_MAX
	.comm	_master,8,3                     ; @master
	.no_dead_strip	_gv800s_init
.subsections_via_symbols
