	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function errata_omap3_i462
_errata_omap3_i462:                     ## @errata_omap3_i462
	.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, %r15
	movq	$-10000, %r14                   ## imm = 0xD8F0
	movq	_OMAP_I2C_STAT_REG@GOTPCREL(%rip), %r12
	movq	_OMAP_I2C_STAT_XUDF@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_omap_i2c_read_reg
	testl	%eax, (%r13)
	jne	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movq	_OMAP_I2C_STAT_AL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_OMAP_I2C_STAT_NACK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%ebx, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	incq	%r14
	jne	LBB0_1
## %bb.9:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_3:
	movq	_OMAP_I2C_STAT_XRDY@GOTPCREL(%rip), %rax
	movq	_OMAP_I2C_STAT_XDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_omap_i2c_ack_stat
	movq	_OMAP_I2C_STAT_NACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_5
## %bb.4:
	orl	%eax, (%r15)
	movl	(%rcx), %esi
	movq	%r15, %rdi
	callq	_omap_i2c_ack_stat
LBB0_5:
	movq	_OMAP_I2C_STAT_AL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %eax
	orl	%eax, (%r15)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_omap_i2c_ack_stat
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAP_I2C_STAT_REG,4,2          ## @OMAP_I2C_STAT_REG
	.comm	_OMAP_I2C_STAT_XUDF,4,2         ## @OMAP_I2C_STAT_XUDF
	.comm	_OMAP_I2C_STAT_NACK,4,2         ## @OMAP_I2C_STAT_NACK
	.comm	_OMAP_I2C_STAT_AL,4,2           ## @OMAP_I2C_STAT_AL
	.comm	_OMAP_I2C_STAT_XRDY,4,2         ## @OMAP_I2C_STAT_XRDY
	.comm	_OMAP_I2C_STAT_XDR,4,2          ## @OMAP_I2C_STAT_XDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Arbitration lost\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"timeout waiting on XUDF bit\n"

	.no_dead_strip	_errata_omap3_i462
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function errata_omap3_i462
_errata_omap3_i462:                     ; @errata_omap3_i462
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x23, #-10000
Lloh0:
	adrp	x24, _OMAP_I2C_STAT_REG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OMAP_I2C_STAT_REG@GOTPAGEOFF]
Lloh2:
	adrp	x25, _OMAP_I2C_STAT_XUDF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _OMAP_I2C_STAT_XUDF@GOTPAGEOFF]
Lloh4:
	adrp	x22, _OMAP_I2C_STAT_NACK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _OMAP_I2C_STAT_NACK@GOTPAGEOFF]
Lloh6:
	adrp	x21, _OMAP_I2C_STAT_AL@GOTPAGE
Lloh7:
	ldr	x21, [x21, _OMAP_I2C_STAT_AL@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_omap_i2c_read_reg
	ldr	w8, [x25]
	tst	w8, w0
	b.ne	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	adds	x23, x23, #1
	b.lo	LBB0_1
; %bb.4:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _OMAP_I2C_STAT_XRDY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OMAP_I2C_STAT_XRDY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _OMAP_I2C_STAT_XDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OMAP_I2C_STAT_XDR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_omap_i2c_ack_stat
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_omap_i2c_ack_stat
LBB0_8:
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_omap_i2c_ack_stat
LBB0_10:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAP_I2C_STAT_REG,4,2          ; @OMAP_I2C_STAT_REG
	.comm	_OMAP_I2C_STAT_XUDF,4,2         ; @OMAP_I2C_STAT_XUDF
	.comm	_OMAP_I2C_STAT_NACK,4,2         ; @OMAP_I2C_STAT_NACK
	.comm	_OMAP_I2C_STAT_AL,4,2           ; @OMAP_I2C_STAT_AL
	.comm	_OMAP_I2C_STAT_XRDY,4,2         ; @OMAP_I2C_STAT_XRDY
	.comm	_OMAP_I2C_STAT_XDR,4,2          ; @OMAP_I2C_STAT_XDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Arbitration lost\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"timeout waiting on XUDF bit\n"

	.no_dead_strip	_errata_omap3_i462
.subsections_via_symbols
