	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function friio_reset
_friio_reset:                           ## @friio_reset
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movabsq	$8589934609, %rax               ## imm = 0x200000011
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.2:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movq	$17, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movabsq	$549755813891, %rax             ## imm = 0x8000000003
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$2, %ecx
	callq	_gl861_i2c_write_ex
	testl	%eax, %eax
	js	LBB0_19
## %bb.4:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$9, %esi
	movl	$2, %ecx
	callq	_gl861_i2c_read_ex
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	cmpl	$255, -64(%rbp)
	jne	LBB0_7
## %bb.6:
	cmpl	$255, -60(%rbp)
	jne	LBB0_7
## %bb.8:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	$72, %esi
	movl	$2, %ecx
	callq	_gl861_i2c_write_ex
	testl	%eax, %eax
	js	LBB0_19
## %bb.9:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$72, %esi
	movl	$2, %ecx
	callq	_gl861_i2c_read_ex
	testl	%eax, %eax
	js	LBB0_19
## %bb.10:
	cmpl	$255, -64(%rbp)
	jne	LBB0_7
## %bb.11:
	cmpl	$255, -60(%rbp)
	jne	LBB0_7
## %bb.12:
	movabsq	$17179869232, %rax              ## imm = 0x400000030
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.14:
	movabsq	$64424509446, %rax              ## imm = 0xF00000006
	movq	%rax, -56(%rbp)
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.15:
	leaq	_friio_reset.friio_init_cmds(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_20
## %bb.16:
	xorl	%r13d, %r13d
	movq	%r15, %r12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_gl861_i2c_msg
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%r13
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	xorl	%ebx, %ebx
	cmpq	%rax, %r13
	jl	LBB0_18
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @friio_reset.friio_init_cmds
_friio_reset.friio_init_cmds:
	.long	51                              ## 0x33
	.long	8                               ## 0x8
	.long	55                              ## 0x37
	.long	64                              ## 0x40
	.long	58                              ## 0x3a
	.long	31                              ## 0x1f
	.long	59                              ## 0x3b
	.long	255                             ## 0xff
	.long	60                              ## 0x3c
	.long	31                              ## 0x1f
	.long	61                              ## 0x3d
	.long	255                             ## 0xff
	.long	56                              ## 0x38
	.long	0                               ## 0x0
	.long	53                              ## 0x35
	.long	0                               ## 0x0
	.long	57                              ## 0x39
	.long	0                               ## 0x0
	.long	54                              ## 0x36
	.long	0                               ## 0x0

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_friio_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function friio_reset
lCPI0_0:
	.long	17                              ; 0x11
	.long	2                               ; 0x2
lCPI0_1:
	.long	17                              ; 0x11
	.long	0                               ; 0x0
lCPI0_2:
	.long	3                               ; 0x3
	.long	128                             ; 0x80
lCPI0_3:
	.long	48                              ; 0x30
	.long	4                               ; 0x4
lCPI0_4:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_5:
	.long	6                               ; 0x6
	.long	15                              ; 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_friio_reset:                           ; @friio_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0]
	mov	w1, #0
	mov	w2, #0
	bl	_usb_set_interface
	tbnz	w0, #31, LBB0_19
; %bb.1:
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.2:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.3:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
Lloh7:
	adrp	x8, lCPI0_2@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_2@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #9
	mov	w3, #2
	bl	_gl861_i2c_write_ex
	tbnz	w0, #31, LBB0_19
; %bb.4:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #9
	mov	w3, #2
	bl	_gl861_i2c_read_ex
	tbnz	w0, #31, LBB0_19
; %bb.5:
	ldr	w8, [sp, #16]
	cmp	w8, #255
	b.ne	LBB0_18
; %bb.6:
	ldr	w8, [sp, #20]
	cmp	w8, #255
	b.ne	LBB0_18
; %bb.7:
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #72
	mov	w3, #2
	bl	_gl861_i2c_write_ex
	tbnz	w0, #31, LBB0_19
; %bb.8:
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	add	x2, sp, #16
	mov	x0, x19
	mov	w1, #72
	mov	w3, #2
	bl	_gl861_i2c_read_ex
	tbnz	w0, #31, LBB0_19
; %bb.9:
	ldr	w8, [sp, #16]
	cmp	w8, #255
	b.ne	LBB0_18
; %bb.10:
	ldr	w8, [sp, #20]
	cmp	w8, #255
	b.ne	LBB0_18
; %bb.11:
Lloh9:
	adrp	x8, lCPI0_3@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.12:
Lloh11:
	adrp	x8, lCPI0_4@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_4@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.13:
Lloh13:
	adrp	x8, lCPI0_5@PAGE
Lloh14:
	ldr	d0, [x8, lCPI0_5@PAGEOFF]
	str	d0, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #0
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.14:
Lloh15:
	adrp	x0, _friio_reset.friio_init_cmds@PAGE
Lloh16:
	add	x0, x0, _friio_reset.friio_init_cmds@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_21
; %bb.15:
	mov	x22, #0
Lloh17:
	adrp	x20, _friio_reset.friio_init_cmds@PAGE
Lloh18:
	add	x20, x20, _friio_reset.friio_init_cmds@PAGEOFF
	mov	x21, x20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	w3, #2
	mov	x4, #0
	mov	w5, #0
	bl	_gl861_i2c_msg
	tbnz	w0, #31, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x8, x0
	mov	w0, #0
	add	x21, x21, #8
	cmp	x22, w8, sxtw
	b.lt	LBB0_16
	b	LBB0_19
LBB0_18:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	ldr	x8, [sp, #24]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_21:
	mov	w0, #0
	b	LBB0_19
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdr	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @friio_reset.friio_init_cmds
_friio_reset.friio_init_cmds:
	.long	51                              ; 0x33
	.long	8                               ; 0x8
	.long	55                              ; 0x37
	.long	64                              ; 0x40
	.long	58                              ; 0x3a
	.long	31                              ; 0x1f
	.long	59                              ; 0x3b
	.long	255                             ; 0xff
	.long	60                              ; 0x3c
	.long	31                              ; 0x1f
	.long	61                              ; 0x3d
	.long	255                             ; 0xff
	.long	56                              ; 0x38
	.long	0                               ; 0x0
	.long	53                              ; 0x35
	.long	0                               ; 0x0
	.long	57                              ; 0x39
	.long	0                               ; 0x0
	.long	54                              ; 0x36
	.long	0                               ; 0x0

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_friio_reset
.subsections_via_symbols
