	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_i2c_pio_check_error_state
_mxs_i2c_pio_check_error_state:         ## @mxs_i2c_pio_check_error_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MXS_I2C_CTRL1_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MXS_I2C_IRQ_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_2:
	movq	_MXS_I2C_CTRL1_EARLY_TERM_IRQ@GOTPCREL(%rip), %rcx
	movq	_MXS_I2C_CTRL1_MASTER_LOSS_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_MXS_I2C_CTRL1_SLAVE_STOP_IRQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_MXS_I2C_CTRL1_SLAVE_IRQ@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_3
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MXS_I2C_CTRL1_CLR,8,3          ## @MXS_I2C_CTRL1_CLR
	.comm	_MXS_I2C_IRQ_MASK,4,2           ## @MXS_I2C_IRQ_MASK
	.comm	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ,4,2 ## @MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MXS_I2C_CTRL1_EARLY_TERM_IRQ,4,2 ## @MXS_I2C_CTRL1_EARLY_TERM_IRQ
	.comm	_MXS_I2C_CTRL1_MASTER_LOSS_IRQ,4,2 ## @MXS_I2C_CTRL1_MASTER_LOSS_IRQ
	.comm	_MXS_I2C_CTRL1_SLAVE_STOP_IRQ,4,2 ## @MXS_I2C_CTRL1_SLAVE_STOP_IRQ
	.comm	_MXS_I2C_CTRL1_SLAVE_IRQ,4,2    ## @MXS_I2C_CTRL1_SLAVE_IRQ
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mxs_i2c_pio_check_error_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_i2c_pio_check_error_state
_mxs_i2c_pio_check_error_state:         ; @mxs_i2c_pio_check_error_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _MXS_I2C_CTRL1_CLR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MXS_I2C_CTRL1_CLR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
Lloh3:
	adrp	x8, _MXS_I2C_IRQ_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8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B0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MXS_I2C_CTRL1_CLR,8,3          ; @MXS_I2C_CTRL1_CLR
	.comm	_MXS_I2C_IRQ_MASK,4,2           ; @MXS_I2C_IRQ_MASK
	.comm	_MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ,4,2 ; @MXS_I2C_CTRL1_NO_SLAVE_ACK_IRQ
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MXS_I2C_CTRL1_EARLY_TERM_IRQ,4,2 ; @MXS_I2C_CTRL1_EARLY_TERM_IRQ
	.comm	_MXS_I2C_CTRL1_MASTER_LOSS_IRQ,4,2 ; @MXS_I2C_CTRL1_MASTER_LOSS_IRQ
	.comm	_MXS_I2C_CTRL1_SLAVE_STOP_IRQ,4,2 ; @MXS_I2C_CTRL1_SLAVE_STOP_IRQ
	.comm	_MXS_I2C_CTRL1_SLAVE_IRQ,4,2    ; @MXS_I2C_CTRL1_SLAVE_IRQ
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mxs_i2c_pio_check_error_state
.subsections_via_symbols
