	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smi_i2c_init
_smi_i2c_init:                          ## @smi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_I2C_A_SW_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_smi_i2c_cfg
	movq	(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rax
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%rbx), %rax
	movq	%rax, 8(%rcx)
	movq	8(%rbx), %rax
	movq	%rax, (%rcx)
	movq	%rbx, 32(%rax)
	movq	_smi_i2c0_setsda@GOTPCREL(%rip), %rcx
	movq	%rcx, 24(%rax)
	movq	_smi_i2c0_setscl@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
	movq	_smi_i2c0_getsda@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_smi_i2c0_getscl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movabsq	$42949672972, %r12              ## imm = 0xA0000000C
	movq	%r12, (%rax)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_smi_i2c0_setsda
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_smi_i2c0_setscl
	movq	(%rbx), %rdi
	callq	_i2c_bit_add_bus
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_I2C_B_SW_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smi_i2c_cfg
	movq	(%rbx), %rdi
	addq	$32, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rax
	movl	56(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	%rax, 48(%rcx)
	movq	16(%rbx), %rax
	movq	%rax, 40(%rcx)
	movq	8(%rbx), %rax
	leaq	40(%rax), %rdx
	movq	%rdx, 32(%rcx)
	movq	%rbx, 72(%rax)
	movq	_smi_i2c1_setsda@GOTPCREL(%rip), %rcx
	movq	%rcx, 64(%rax)
	movq	_smi_i2c1_setscl@GOTPCREL(%rip), %rcx
	movq	%rcx, 56(%rax)
	movq	_smi_i2c1_getsda@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rax)
	movq	_smi_i2c1_getscl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rax)
	movq	%r12, 40(%rax)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_smi_i2c1_setsda
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_smi_i2c1_setscl
	movq	(%rbx), %rdi
	addq	$32, %rdi
	callq	_i2c_bit_add_bus
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	(%rbx), %rdi
	callq	_i2c_del_adapter
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_A_SW_CTL,4,2               ## @I2C_A_SW_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SMI-I2C0"

	.comm	_THIS_MODULE,8,3                ## @THIS_MODULE
	.comm	_smi_i2c0_getsda,4,2            ## @smi_i2c0_getsda
	.comm	_smi_i2c0_getscl,4,2            ## @smi_i2c0_getscl
	.comm	_I2C_B_SW_CTL,4,2               ## @I2C_B_SW_CTL
L_.str.1:                               ## @.str.1
	.asciz	"SMI-I2C1"

	.comm	_smi_i2c1_getsda,4,2            ## @smi_i2c1_getsda
	.comm	_smi_i2c1_getscl,4,2            ## @smi_i2c1_getscl
	.no_dead_strip	_smi_i2c_init
.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 smi_i2c_init
lCPI0_0:
	.long	12                              ; 0xc
	.long	10                              ; 0xa
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smi_i2c_init:                          ; @smi_i2c_init
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _I2C_A_SW_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_A_SW_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_smi_i2c_cfg
	ldr	x0, [x19]
	mov	x1, x19
	bl	_i2c_set_adapdata
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh5:
	adrp	x21, _THIS_MODULE@GOTPAGE
Lloh6:
	ldr	x21, [x21, _THIS_MODULE@GOTPAGEOFF]
	ldr	x8, [x21]
	ldp	x9, x10, [x19]
	str	x8, [x9, #16]
	ldr	x8, [x19, #16]
	stp	x10, x8, [x9]
	str	x19, [x10, #32]
Lloh7:
	adrp	x8, _smi_i2c0_setsda@GOTPAGE
Lloh8:
	ldr	x8, [x8, _smi_i2c0_setsda@GOTPAGEOFF]
Lloh9:
	adrp	x9, _smi_i2c0_setscl@GOTPAGE
Lloh10:
	ldr	x9, [x9, _smi_i2c0_setscl@GOTPAGEOFF]
	stp	x9, x8, [x10, #16]
Lloh11:
	adrp	x8, _smi_i2c0_getsda@GOTPAGE
Lloh12:
	ldr	x8, [x8, _smi_i2c0_getsda@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _smi_i2c0_getscl@GOTPAGE
Lloh15:
	ldr	x9, [x9, _smi_i2c0_getscl@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #8]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [x10]
	mov	x0, x19
	mov	w1, #1
	bl	_smi_i2c0_setsda
	mov	x0, x19
	mov	w1, #1
	bl	_smi_i2c0_setscl
	ldr	x0, [x19]
	bl	_i2c_bit_add_bus
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh19:
	adrp	x8, _I2C_B_SW_CTL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_B_SW_CTL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smi_i2c_cfg
	ldr	x8, [x19]
	add	x0, x8, #32
	mov	x1, x19
	bl	_i2c_set_adapdata
	ldr	x8, [x19]
	ldr	w0, [x8, #56]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	x8, [x21]
	ldp	x9, x10, [x19]
	str	x8, [x9, #48]
	str	d8, [x10, #40]!
	ldr	x8, [x19, #16]
	stp	x10, x8, [x9, #32]
	str	x19, [x10, #32]
Lloh24:
	adrp	x8, _smi_i2c1_setsda@GOTPAGE
Lloh25:
	ldr	x8, [x8, _smi_i2c1_setsda@GOTPAGEOFF]
Lloh26:
	adrp	x9, _smi_i2c1_setscl@GOTPAGE
Lloh27:
	ldr	x9, [x9, _smi_i2c1_setscl@GOTPAGEOFF]
	stp	x9, x8, [x10, #16]
Lloh28:
	adrp	x8, _smi_i2c1_getsda@GOTPAGE
Lloh29:
	ldr	x8, [x8, _smi_i2c1_getsda@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _smi_i2c1_getscl@GOTPAGE
Lloh32:
	ldr	x9, [x9, _smi_i2c1_getscl@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x10, #8]
	mov	x0, x19
	mov	w1, #1
	bl	_smi_i2c1_setsda
	mov	x0, x19
	mov	w1, #1
	bl	_smi_i2c1_setscl
	ldr	x8, [x19]
	add	x0, x8, #32
	bl	_i2c_bit_add_bus
	mov	x20, x0
	tbz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_i2c_del_adapter
	b	LBB0_4
LBB0_3:
	mov	x20, x0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_A_SW_CTL,4,2               ; @I2C_A_SW_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SMI-I2C0"

	.comm	_THIS_MODULE,8,3                ; @THIS_MODULE
	.comm	_smi_i2c0_getsda,4,2            ; @smi_i2c0_getsda
	.comm	_smi_i2c0_getscl,4,2            ; @smi_i2c0_getscl
	.comm	_I2C_B_SW_CTL,4,2               ; @I2C_B_SW_CTL
l_.str.1:                               ; @.str.1
	.asciz	"SMI-I2C1"

	.comm	_smi_i2c1_getsda,4,2            ; @smi_i2c1_getsda
	.comm	_smi_i2c1_getscl,4,2            ; @smi_i2c1_getscl
	.no_dead_strip	_smi_i2c_init
.subsections_via_symbols
