	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initGPIO                       ## -- Begin function initGPIO
	.p2align	4, 0x90
_initGPIO:                              ## @initGPIO
	.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
	movq	%rdi, %rbx
	movl	$0, -32(%rbp)
	movl	$0, -28(%rbp)
	leaq	-32(%rbp), %rdx
	movl	$66976768, %esi                 ## imm = 0x3FDFC00
	movl	$4, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_cx231xx_send_gpio_cmd
	leaq	-28(%rbp), %r14
	movq	%rbx, %rdi
	movl	$7, %esi
	movq	%r14, %rdx
	callq	_verve_read_byte
	movl	(%rbx), %edi
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %r15
	movq	%r15, %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	$7, %esi
	movl	$244, %edx
	callq	_verve_write_byte
	movq	%rbx, %rdi
	movl	$7, %esi
	movq	%r14, %rdx
	callq	_verve_read_byte
	movl	(%rbx), %edi
	movl	-28(%rbp), %edx
	movq	%r15, %rsi
	callq	_dev_dbg
	movq	_Vbi@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cx231xx_capture_start
	movq	_EP_MODE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$83951104, %edx                 ## imm = 0x500FE00
	callq	_cx231xx_mode_register
	movq	_GBULK_BIT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$-131073, %edx                  ## imm = 0xFFFDFFFF
	callq	_cx231xx_mode_register
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verve_read_byte address0x07=0x%x\n"

	.comm	_Vbi,4,2                        ## @Vbi
	.comm	_EP_MODE_SET,4,2                ## @EP_MODE_SET
	.comm	_GBULK_BIT_EN,4,2               ## @GBULK_BIT_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_initGPIO                       ; -- Begin function initGPIO
	.p2align	2
_initGPIO:                              ; @initGPIO
	.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, x0
	str	xzr, [sp, #8]
	add	x2, sp, #12
	mov	w1, #64512
	movk	w1, #1021, lsl #16
	mov	w3, #4
	mov	w4, #0
	mov	w5, #0
	bl	_cx231xx_send_gpio_cmd
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #7
	bl	_verve_read_byte
	ldr	w0, [x19]
	ldr	w2, [sp, #8]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dev_dbg
	mov	x0, x19
	mov	w1, #7
	mov	w2, #244
	bl	_verve_write_byte
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #7
	bl	_verve_read_byte
	ldr	w0, [x19]
	ldr	w2, [sp, #8]
	mov	x1, x20
	bl	_dev_dbg
Lloh2:
	adrp	x8, _Vbi@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Vbi@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_cx231xx_capture_start
Lloh5:
	adrp	x8, _EP_MODE_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EP_MODE_SET@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65024
	movk	w2, #1280, lsl #16
	bl	_cx231xx_mode_register
Lloh8:
	adrp	x8, _GBULK_BIT_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GBULK_BIT_EN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-131073
	bl	_cx231xx_mode_register
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verve_read_byte address0x07=0x%x\n"

	.comm	_Vbi,4,2                        ; @Vbi
	.comm	_EP_MODE_SET,4,2                ; @EP_MODE_SET
	.comm	_GBULK_BIT_EN,4,2               ; @GBULK_BIT_EN
.subsections_via_symbols
