	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw20k2_i2c_init
_hw20k2_i2c_init:                       ## @hw20k2_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_hw20k2_i2c_unlock_full_access
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movl	$0, -36(%rbp)
	movq	_I2C_ADDRESS_SLAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdi
	movl	%r14d, %edx
	callq	_set_field
	movq	_I2C_IF_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_hw_write_20kx
	movq	_I2C_IF_STATUS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_hw_read_20kx
	movl	%eax, -40(%rbp)
	movq	_I2C_STATUS_DCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	movl	$1, %edx
	callq	_set_field
	movl	(%r14), %esi
	movl	-40(%rbp), %edx
	movq	%rbx, %rdi
	callq	_hw_write_20kx
	xorl	%eax, %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_ADDRESS_SLAD,4,2           ## @I2C_ADDRESS_SLAD
	.comm	_I2C_IF_ADDRESS,4,2             ## @I2C_IF_ADDRESS
	.comm	_I2C_IF_STATUS,4,2              ## @I2C_IF_STATUS
	.comm	_I2C_STATUS_DCM,4,2             ## @I2C_STATUS_DCM
	.no_dead_strip	_hw20k2_i2c_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw20k2_i2c_init
_hw20k2_i2c_init:                       ; @hw20k2_i2c_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	bl	_hw20k2_i2c_unlock_full_access
	tbnz	w0, #31, LBB0_2
; %bb.1:
	stp	w22, w21, [x19]
	str	w20, [x19, #8]
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _I2C_ADDRESS_SLAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_ADDRESS_SLAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x20
	bl	_set_field
Lloh3:
	adrp	x8, _I2C_IF_ADDRESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_IF_ADDRESS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_hw_write_20kx
Lloh6:
	adrp	x20, _I2C_IF_STATUS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _I2C_IF_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_hw_read_20kx
	str	w0, [sp, #12]
Lloh8:
	adrp	x8, _I2C_STATUS_DCM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_STATUS_DCM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #1
	bl	_set_field
	ldr	w1, [x20]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_hw_write_20kx
	mov	w0, #0
LBB0_2:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_ADDRESS_SLAD,4,2           ; @I2C_ADDRESS_SLAD
	.comm	_I2C_IF_ADDRESS,4,2             ; @I2C_IF_ADDRESS
	.comm	_I2C_IF_STATUS,4,2              ; @I2C_IF_STATUS
	.comm	_I2C_STATUS_DCM,4,2             ; @I2C_STATUS_DCM
	.no_dead_strip	_hw20k2_i2c_init
.subsections_via_symbols
