	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_i2c_init                  ## -- Begin function solo_i2c_init
	.p2align	4, 0x90
_solo_i2c_init:                         ## @solo_i2c_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SOLO_IIC_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$8, %edi
	callq	_SOLO_IIC_PRESCALE
	movq	_SOLO_IIC_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_solo_reg_write
	movl	$-1, (%r14)
	movq	_IIC_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	leaq	28(%r14), %rdi
	callq	_init_waitqueue_head
	leaq	24(%r14), %rdi
	callq	_mutex_init
	movq	_SOLO_I2C_ADAPTERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r15
	leaq	(%r15,%r13), %r12
	movl	32(%r15,%r13), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SOLO6X10_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %r8d
	callq	_snprintf
	movq	_solo_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15,%r13)
	movq	%r14, 8(%r15,%r13)
	movl	$1, (%r15,%r13)
	movq	16(%r14), %rax
	movq	%rax, 16(%r15,%r13)
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_SOLO_I2C_ADAPTERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$40, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	movq	$0, 8(%r15,%r13)
	movq	_SOLO_I2C_ADAPTERS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.7:
	movq	8(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rdi,%rbx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	%rbx, %rdi
	callq	_i2c_del_adapter
	movq	8(%r14), %rdi
	movq	$0, 8(%rdi,%rbx)
	incq	%r15
	movq	_SOLO_I2C_ADAPTERS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$40, %rbx
	cmpq	%rax, %r15
	jl	LBB0_8
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_IIC_CFG,4,2               ## @SOLO_IIC_CFG
	.comm	_SOLO_IIC_ENABLE,4,2            ## @SOLO_IIC_ENABLE
	.comm	_IIC_STATE_IDLE,4,2             ## @IIC_STATE_IDLE
	.comm	_SOLO_I2C_ADAPTERS,4,2          ## @SOLO_I2C_ADAPTERS
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s I2C %d"

	.comm	_SOLO6X10_NAME,8,3              ## @SOLO6X10_NAME
	.comm	_solo_i2c_algo,4,2              ## @solo_i2c_algo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_i2c_init                  ; -- Begin function solo_i2c_init
	.p2align	2
_solo_i2c_init:                         ; @solo_i2c_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, _SOLO_IIC_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOLO_IIC_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w0, #8
	bl	_SOLO_IIC_PRESCALE
Lloh3:
	adrp	x8, _SOLO_IIC_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_IIC_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x20
	bl	_solo_reg_write
	mov	w8, #-1
	str	w8, [x19]
Lloh6:
	adrp	x8, _IIC_STATE_IDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIC_STATE_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x0, x19, #28
	bl	_init_waitqueue_head
	add	x0, x19, #24
	bl	_mutex_init
Lloh9:
	adrp	x8, _SOLO_I2C_ADAPTERS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOLO_I2C_ADAPTERS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x25, #0
	mov	x21, #0
Lloh12:
	adrp	x26, _I2C_NAME_SIZE@GOTPAGE
Lloh13:
	ldr	x26, [x26, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh14:
	adrp	x27, _SOLO6X10_NAME@GOTPAGE
Lloh15:
	ldr	x27, [x27, _SOLO6X10_NAME@GOTPAGEOFF]
Lloh16:
	adrp	x28, _solo_i2c_algo@GOTPAGE
Lloh17:
	ldr	x28, [x28, _solo_i2c_algo@GOTPAGEOFF]
	mov	w24, #1
Lloh18:
	adrp	x22, l_.str@PAGE
Lloh19:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x23, x8, x25
	ldr	w0, [x23, #32]
	ldr	w1, [x26]
	ldr	x3, [x27]
	mov	x2, x22
	mov	x4, x21
	bl	_snprintf
	str	x28, [x23, #24]
	str	w24, [x23]
	ldr	x8, [x19, #16]
	stp	x19, x8, [x23, #8]
	mov	x0, x23
	bl	_i2c_add_adapter
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
Lloh20:
	adrp	x8, _SOLO_I2C_ADAPTERS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOLO_I2C_ADAPTERS@GOTPAGEOFF]
Lloh22:
	ldrsw	x8, [x8]
	add	x25, x25, #40
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x0
	str	xzr, [x23, #8]
Lloh23:
	adrp	x8, _SOLO_I2C_ADAPTERS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOLO_I2C_ADAPTERS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.7:
	mov	x21, #0
	ldr	x8, [x19, #8]
	mov	w22, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8, x22]
	cbz	x9, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, x22
	sub	x0, x8, #8
	bl	_i2c_del_adapter
	ldr	x8, [x19, #8]
	str	xzr, [x8, x22]
	add	x21, x21, #1
Lloh26:
	adrp	x9, _SOLO_I2C_ADAPTERS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SOLO_I2C_ADAPTERS@GOTPAGEOFF]
Lloh28:
	ldrsw	x9, [x9]
	add	x22, x22, #40
	cmp	x21, x9
	b.lt	LBB0_8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_IIC_CFG,4,2               ; @SOLO_IIC_CFG
	.comm	_SOLO_IIC_ENABLE,4,2            ; @SOLO_IIC_ENABLE
	.comm	_IIC_STATE_IDLE,4,2             ; @IIC_STATE_IDLE
	.comm	_SOLO_I2C_ADAPTERS,4,2          ; @SOLO_I2C_ADAPTERS
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s I2C %d"

	.comm	_SOLO6X10_NAME,8,3              ; @SOLO6X10_NAME
	.comm	_solo_i2c_algo,4,2              ; @solo_i2c_algo
.subsections_via_symbols
