	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_i2c_irq
_s3c24xx_i2c_irq:                       ## @s3c24xx_i2c_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_S3C2410_IICSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rsi), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_S3C2410_IICSTAT_ARBITR@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	(%rbx), %rax
	movq	_STATE_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_S3C2410_IICCON@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_S3C2410_IICCON_IRQPEND@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2s_s3c_irq_nextbyte
LBB0_5:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C2410_IICSTAT,8,3            ## @S3C2410_IICSTAT
	.comm	_S3C2410_IICSTAT_ARBITR,8,3     ## @S3C2410_IICSTAT_ARBITR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"deal with arbitration loss\n"

	.comm	_STATE_IDLE,8,3                 ## @STATE_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"IRQ: error i2c->state == IDLE\n"

	.comm	_S3C2410_IICCON,8,3             ## @S3C2410_IICCON
	.comm	_S3C2410_IICCON_IRQPEND,8,3     ## @S3C2410_IICCON_IRQPEND
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s3c24xx_i2c_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_i2c_irq
_s3c24xx_i2c_irq:                       ; @s3c24xx_i2c_irq
	.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, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _S3C2410_IICSTAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S3C2410_IICSTAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
Lloh3:
	adrp	x8, _S3C2410_IICSTAT_ARBITR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S3C2410_IICSTAT_ARBITR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _STATE_IDLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STATE_IDLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x20, _S3C2410_IICCON@GOTPAGE
Lloh14:
	ldr	x20, [x20, _S3C2410_IICCON@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh15:
	adrp	x8, _S3C2410_IICCON_IRQPEND@GOTPAGE
Lloh16:
	ldr	x8, [x8, _S3C2410_IICCON_IRQPEND@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	bic	x0, x0, x8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_i2s_s3c_irq_nextbyte
LBB0_5:
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C2410_IICSTAT,8,3            ; @S3C2410_IICSTAT
	.comm	_S3C2410_IICSTAT_ARBITR,8,3     ; @S3C2410_IICSTAT_ARBITR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"deal with arbitration loss\n"

	.comm	_STATE_IDLE,8,3                 ; @STATE_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"IRQ: error i2c->state == IDLE\n"

	.comm	_S3C2410_IICCON,8,3             ; @S3C2410_IICCON
	.comm	_S3C2410_IICCON_IRQPEND,8,3     ; @S3C2410_IICCON_IRQPEND
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s3c24xx_i2c_irq
.subsections_via_symbols
