	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s6i2c_interrupt_entry
_s6i2c_interrupt_entry:                 ## @s6i2c_interrupt_entry
	.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	%rsi, %rbx
	movq	_S6_I2C_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_rd16
	movq	_S6_I2C_INTR_RXUNDER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %sil
	movq	_S6_I2C_INTR_RXOVER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	btsl	%esi, %edx
	movq	_S6_I2C_INTR_RXFULL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_TXOVER@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_TXEMPTY@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_RDREQ@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_TXABRT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_RXDONE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_ACTIVITY@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_STOPDET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_STARTDET@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	movq	_S6_I2C_INTR_GENCALL@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	4(%rbx), %rdi
	callq	_del_timer
	movq	%rbx, %rdi
	callq	_s6i2c_handle_interrupt
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S6_I2C_STATUS,4,2              ## @S6_I2C_STATUS
	.comm	_S6_I2C_INTR_RXUNDER,4,2        ## @S6_I2C_INTR_RXUNDER
	.comm	_S6_I2C_INTR_RXOVER,4,2         ## @S6_I2C_INTR_RXOVER
	.comm	_S6_I2C_INTR_RXFULL,4,2         ## @S6_I2C_INTR_RXFULL
	.comm	_S6_I2C_INTR_TXOVER,4,2         ## @S6_I2C_INTR_TXOVER
	.comm	_S6_I2C_INTR_TXEMPTY,4,2        ## @S6_I2C_INTR_TXEMPTY
	.comm	_S6_I2C_INTR_RDREQ,4,2          ## @S6_I2C_INTR_RDREQ
	.comm	_S6_I2C_INTR_TXABRT,4,2         ## @S6_I2C_INTR_TXABRT
	.comm	_S6_I2C_INTR_RXDONE,4,2         ## @S6_I2C_INTR_RXDONE
	.comm	_S6_I2C_INTR_ACTIVITY,4,2       ## @S6_I2C_INTR_ACTIVITY
	.comm	_S6_I2C_INTR_STOPDET,4,2        ## @S6_I2C_INTR_STOPDET
	.comm	_S6_I2C_INTR_STARTDET,4,2       ## @S6_I2C_INTR_STARTDET
	.comm	_S6_I2C_INTR_GENCALL,4,2        ## @S6_I2C_INTR_GENCALL
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_s6i2c_interrupt_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s6i2c_interrupt_entry
_s6i2c_interrupt_entry:                 ; @s6i2c_interrupt_entry
	.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
Lloh0:
	adrp	x8, _S6_I2C_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S6_I2C_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_rd16
Lloh3:
	adrp	x8, _S6_I2C_INTR_RXUNDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S6_I2C_INTR_RXUNDER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mov	w8, #1
	lsl	w9, w8, w9
Lloh6:
	adrp	x10, _S6_I2C_INTR_RXOVER@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S6_I2C_INTR_RXOVER@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w10, w9
Lloh9:
	adrp	x10, _S6_I2C_INTR_RXFULL@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S6_I2C_INTR_RXFULL@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh12:
	adrp	x10, _S6_I2C_INTR_TXOVER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _S6_I2C_INTR_TXOVER@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh15:
	adrp	x10, _S6_I2C_INTR_TXEMPTY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _S6_I2C_INTR_TXEMPTY@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _S6_I2C_INTR_RDREQ@GOTPAGE
Lloh19:
	ldr	x10, [x10, _S6_I2C_INTR_RDREQ@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w10, w8, w10
Lloh21:
	adrp	x11, _S6_I2C_INTR_TXABRT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _S6_I2C_INTR_TXABRT@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh23:
	ldr	w10, [x11]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh24:
	adrp	x10, _S6_I2C_INTR_RXDONE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _S6_I2C_INTR_RXDONE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh27:
	adrp	x10, _S6_I2C_INTR_ACTIVITY@GOTPAGE
Lloh28:
	ldr	x10, [x10, _S6_I2C_INTR_ACTIVITY@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh30:
	adrp	x10, _S6_I2C_INTR_STOPDET@GOTPAGE
Lloh31:
	ldr	x10, [x10, _S6_I2C_INTR_STOPDET@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh33:
	adrp	x10, _S6_I2C_INTR_STARTDET@GOTPAGE
Lloh34:
	ldr	x10, [x10, _S6_I2C_INTR_STARTDET@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	lsl	w10, w8, w10
	orr	w9, w9, w10
Lloh36:
	adrp	x10, _S6_I2C_INTR_GENCALL@GOTPAGE
Lloh37:
	ldr	x10, [x10, _S6_I2C_INTR_GENCALL@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_lock
	add	x0, x19, #4
	bl	_del_timer
	mov	x0, x19
	bl	_s6i2c_handle_interrupt
	mov	x0, x19
	bl	_spin_unlock
Lloh39:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh40:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh41:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_S6_I2C_STATUS,4,2              ; @S6_I2C_STATUS
	.comm	_S6_I2C_INTR_RXUNDER,4,2        ; @S6_I2C_INTR_RXUNDER
	.comm	_S6_I2C_INTR_RXOVER,4,2         ; @S6_I2C_INTR_RXOVER
	.comm	_S6_I2C_INTR_RXFULL,4,2         ; @S6_I2C_INTR_RXFULL
	.comm	_S6_I2C_INTR_TXOVER,4,2         ; @S6_I2C_INTR_TXOVER
	.comm	_S6_I2C_INTR_TXEMPTY,4,2        ; @S6_I2C_INTR_TXEMPTY
	.comm	_S6_I2C_INTR_RDREQ,4,2          ; @S6_I2C_INTR_RDREQ
	.comm	_S6_I2C_INTR_TXABRT,4,2         ; @S6_I2C_INTR_TXABRT
	.comm	_S6_I2C_INTR_RXDONE,4,2         ; @S6_I2C_INTR_RXDONE
	.comm	_S6_I2C_INTR_ACTIVITY,4,2       ; @S6_I2C_INTR_ACTIVITY
	.comm	_S6_I2C_INTR_STOPDET,4,2        ; @S6_I2C_INTR_STOPDET
	.comm	_S6_I2C_INTR_STARTDET,4,2       ; @S6_I2C_INTR_STARTDET
	.comm	_S6_I2C_INTR_GENCALL,4,2        ; @S6_I2C_INTR_GENCALL
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_s6i2c_interrupt_entry
.subsections_via_symbols
