	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_xo2
_init_xo2:                              ## @init_xo2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	16(%rdi), %r15
	movq	24(%rdi), %r14
	leaq	-40(%rbp), %rcx
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$4, %edx
	movl	$2, %r8d
	callq	_i2c_read_regs
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	cmpl	$1, -40(%rbp)
	jne	LBB0_2
## %bb.3:
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$8, %edx
	callq	_i2c_read_reg
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_i2c_write_reg
	movl	$100, %edi
	callq	_msleep
LBB0_5:
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$8, %edx
	movl	$4, %ecx
	callq	_i2c_write_reg
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$8, %edx
	movl	$7, %ecx
	callq	_i2c_write_reg
	movq	_xo2_speed@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$9, %edx
	callq	_i2c_write_reg
	movq	8(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.7:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$3, %ebx
	jmp	LBB0_8
LBB0_2:
	movl	(%r15), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$-1, %eax
	jmp	LBB0_9
LBB0_6:
	movl	$1, %ebx
LBB0_8:
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$10, %edx
	movl	%ebx, %ecx
	callq	_i2c_write_reg
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$11, %edx
	movl	%ebx, %ecx
	callq	_i2c_write_reg
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$3000, %esi                     ## imm = 0xBB8
	callq	_usleep_range
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$8, %edx
	movl	$135, %ecx
	callq	_i2c_write_reg
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %d: invalid XO2\n"

	.comm	_xo2_speed,4,2                  ## @xo2_speed
L_.str.1:                               ## @.str.1
	.asciz	"Setting continuous clock for XO2\n"

	.no_dead_strip	_init_xo2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_xo2
_init_xo2:                              ; @init_xo2
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldp	x21, x19, [x0, #16]
	add	x3, sp, #16
	mov	x0, x19
	mov	w1, #16
	mov	w2, #4
	mov	w4, #2
	bl	_i2c_read_regs
	tbnz	w0, #31, LBB0_9
; %bb.1:
	ldr	w8, [sp, #16]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #16
	mov	w2, #8
	bl	_i2c_read_reg
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #8
	mov	w3, #0
	bl	_i2c_write_reg
	mov	w0, #100
	bl	_msleep
LBB0_4:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #8
	mov	w3, #4
	bl	_i2c_write_reg
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #16
	mov	w2, #8
	mov	w3, #7
	bl	_i2c_write_reg
Lloh3:
	adrp	x8, _xo2_speed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xo2_speed@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #16
	mov	w2, #9
	bl	_i2c_write_reg
	ldr	x8, [x21, #8]
	ldr	x9, [x20]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w0, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
	mov	w20, #3
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	mov	w20, #1
LBB0_8:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #10
	mov	x3, x20
	bl	_i2c_write_reg
	mov	x0, x19
	mov	w1, #16
	mov	w2, #11
	mov	x3, x20
	bl	_i2c_write_reg
	mov	w0, #2000
	mov	w1, #3000
	bl	_usleep_range
	mov	x0, x19
	mov	w1, #16
	mov	w2, #8
	mov	w3, #135
	bl	_i2c_write_reg
	mov	w0, #0
LBB0_9:
	ldr	x8, [sp, #24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	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_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %d: invalid XO2\n"

	.comm	_xo2_speed,4,2                  ; @xo2_speed
l_.str.1:                               ; @.str.1
	.asciz	"Setting continuous clock for XO2\n"

	.no_dead_strip	_init_xo2
.subsections_via_symbols
