	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em_i2c_reset
_em_i2c_reset:                          ## @em_i2c_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_i2c_get_adapdata
	movq	%rax, %r12
	movq	_I2C_OFS_IICACT0@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rax), %rdi
	callq	_readb
	movq	_I2C_BIT_IICE0@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.1:
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movl	$1001, %ebx                     ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_readb
	leal	-1(%rbx), %ecx
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	jne	LBB0_2
LBB0_4:
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	callq	_WARN_ON
LBB0_5:
	movq	_I2C_BIT_DFC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_OFS_IICCL0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	movq	_I2C_BIT_STCEN@GOTPCREL(%rip), %rax
	movq	_I2C_BIT_IICRSV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_I2C_OFS_IICF0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	movq	_I2C_BIT_WTIM0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_OFS_IICC0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	movl	(%r15), %edi
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	callq	_writeb
	movl	$1001, %ebx                     ## imm = 0x3E9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	callq	_readb
	leal	-1(%rbx), %ecx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	jne	LBB0_6
LBB0_8:
	xorl	%edi, %edi
	testl	%ecx, %ecx
	sete	%dil
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_OFS_IICACT0,8,3            ## @I2C_OFS_IICACT0
	.comm	_I2C_BIT_IICE0,4,2              ## @I2C_BIT_IICE0
	.comm	_I2C_BIT_DFC0,4,2               ## @I2C_BIT_DFC0
	.comm	_I2C_OFS_IICCL0,8,3             ## @I2C_OFS_IICCL0
	.comm	_I2C_BIT_STCEN,4,2              ## @I2C_BIT_STCEN
	.comm	_I2C_BIT_IICRSV,4,2             ## @I2C_BIT_IICRSV
	.comm	_I2C_OFS_IICF0,8,3              ## @I2C_OFS_IICF0
	.comm	_I2C_BIT_WTIM0,4,2              ## @I2C_BIT_WTIM0
	.comm	_I2C_OFS_IICC0,8,3              ## @I2C_OFS_IICC0
	.no_dead_strip	_em_i2c_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em_i2c_reset
_em_i2c_reset:                          ; @em_i2c_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _I2C_OFS_IICACT0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _I2C_OFS_IICACT0@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
Lloh2:
	adrp	x21, _I2C_BIT_IICE0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _I2C_BIT_IICE0@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	mov	w22, #1001
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
	sub	w8, w22, #1
	cmp	w0, #1
	ccmp	w22, #1, #4, eq
	mov	x22, x8
	b.ne	LBB0_2
; %bb.3:
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
LBB0_4:
Lloh4:
	adrp	x8, _I2C_BIT_DFC0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I2C_BIT_DFC0@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _I2C_OFS_IICCL0@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I2C_OFS_IICCL0@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
Lloh10:
	adrp	x8, _I2C_BIT_STCEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_BIT_STCEN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _I2C_BIT_IICRSV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I2C_BIT_IICRSV@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh16:
	adrp	x9, _I2C_OFS_IICF0@GOTPAGE
Lloh17:
	ldr	x9, [x9, _I2C_OFS_IICF0@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
Lloh19:
	adrp	x8, _I2C_BIT_WTIM0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_BIT_WTIM0@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh22:
	adrp	x9, _I2C_OFS_IICC0@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I2C_OFS_IICC0@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldr	w0, [x21]
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeb
	mov	w21, #1001
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readb
	sub	w8, w21, #1
	cmp	w0, #0
	ccmp	w21, #1, #4, eq
	mov	x21, x8
	b.ne	LBB0_5
; %bb.6:
	cmp	w8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WARN_ON
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_OFS_IICACT0,8,3            ; @I2C_OFS_IICACT0
	.comm	_I2C_BIT_IICE0,4,2              ; @I2C_BIT_IICE0
	.comm	_I2C_BIT_DFC0,4,2               ; @I2C_BIT_DFC0
	.comm	_I2C_OFS_IICCL0,8,3             ; @I2C_OFS_IICCL0
	.comm	_I2C_BIT_STCEN,4,2              ; @I2C_BIT_STCEN
	.comm	_I2C_BIT_IICRSV,4,2             ; @I2C_BIT_IICRSV
	.comm	_I2C_OFS_IICF0,8,3              ; @I2C_OFS_IICF0
	.comm	_I2C_BIT_WTIM0,4,2              ; @I2C_BIT_WTIM0
	.comm	_I2C_OFS_IICC0,8,3              ; @I2C_OFS_IICC0
	.no_dead_strip	_em_i2c_reset
.subsections_via_symbols
