	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_i2c_isr_thread
_st_i2c_isr_thread:                     ## @st_i2c_isr_thread
	.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
	movq	%rsi, %r14
	movq	_SSC_IEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%rsi), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	_SSC_STA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %r15d
	movl	%eax, %edi
	andl	%ebx, %edi
	callq	___fls
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	leaq	12(%r14), %rdi
	callq	_complete
	jmp	LBB0_15
LBB0_1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_dev_err
	jmp	LBB0_15
LBB0_4:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	jne	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_st_i2c_handle_write
	jmp	LBB0_15
LBB0_8:
	movq	_SSC_CLR_NACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSC_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r14)
	je	LBB0_11
## %bb.9:
	cmpl	$1, 20(%r14)
	jne	LBB0_11
## %bb.10:
	cmpl	$0, 28(%r14)
	je	LBB0_11
LBB0_5:
	movq	%r14, %rdi
	callq	_st_i2c_handle_read
	jmp	LBB0_15
LBB0_13:
	movq	_SSC_CLR_SSCARBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSC_CLR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	movq	_SSC_IEN_STOPEN@GOTPCREL(%rip), %rax
	movq	_SSC_IEN_ARBLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	movq	_SSC_I2C@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movq	_SSC_I2C_STOPG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_st_i2c_set_bits
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_SSC_IEN_STOPEN@GOTPCREL(%rip), %rax
	movq	_SSC_IEN_ARBLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	callq	_writel_relaxed
	movq	_SSC_I2C@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	movq	_SSC_I2C_STOPG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_st_i2c_set_bits
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 24(%r14)
LBB0_15:
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_SSC_IEN,8,3                    ## @SSC_IEN
	.comm	_SSC_STA,8,3                    ## @SSC_STA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spurious it (sta=0x%04x, ien=0x%04x)\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_SSC_CLR_NACK,4,2               ## @SSC_CLR_NACK
	.comm	_SSC_CLR,8,3                    ## @SSC_CLR
	.comm	_SSC_IEN_STOPEN,4,2             ## @SSC_IEN_STOPEN
	.comm	_SSC_IEN_ARBLEN,4,2             ## @SSC_IEN_ARBLEN
	.comm	_SSC_I2C,8,3                    ## @SSC_I2C
	.comm	_SSC_I2C_STOPG,4,2              ## @SSC_I2C_STOPG
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SSC_CLR_SSCARBL,4,2            ## @SSC_CLR_SSCARBL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"it %d unhandled (sta=0x%04x)\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_st_i2c_isr_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_i2c_isr_thread
_st_i2c_isr_thread:                     ; @st_i2c_isr_thread
	.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
	mov	x19, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _SSC_IEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SSC_IEN@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x21, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _SSC_STA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SSC_STA@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x20, x0
	and	w0, w0, w21
	bl	___fls
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x2, x0
	mov	w8, #1
	lsl	w8, w8, w0
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x20, x19
	ldr	x8, [x20], #12
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	mov	x0, x20
	bl	_complete
	b	LBB0_15
LBB0_4:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_dev_dbg
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_dev_err
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19, #16]
Lloh13:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.7:
	mov	x0, x19
	bl	_st_i2c_handle_write
	b	LBB0_15
LBB0_8:
Lloh16:
	adrp	x8, _SSC_CLR_NACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SSC_CLR_NACK@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _SSC_CLR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SSC_CLR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	w8, [x19, #16]
Lloh22:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh23:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.9:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.ne	LBB0_13
; %bb.10:
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_st_i2c_handle_read
	b	LBB0_15
LBB0_12:
Lloh25:
	adrp	x8, _SSC_CLR_SSCARBL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SSC_CLR_SSCARBL@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh28:
	adrp	x9, _SSC_CLR@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SSC_CLR@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh31:
	adrp	x8, _SSC_IEN_STOPEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SSC_IEN_STOPEN@GOTPAGEOFF]
Lloh33:
	adrp	x9, _SSC_IEN_ARBLEN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SSC_IEN_ARBLEN@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh37:
	adrp	x8, _SSC_I2C@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SSC_I2C@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh39:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh40:
	adrp	x8, _SSC_I2C_STOPG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SSC_I2C_STOPG@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_st_i2c_set_bits
Lloh43:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh45:
	adrp	x8, _SSC_IEN_STOPEN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SSC_IEN_STOPEN@GOTPAGEOFF]
Lloh47:
	adrp	x9, _SSC_IEN_ARBLEN@GOTPAGE
Lloh48:
	ldr	x9, [x9, _SSC_IEN_ARBLEN@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh51:
	adrp	x8, _SSC_I2C@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SSC_I2C@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh53:
	ldr	x8, [x8]
	add	x0, x8, x9
Lloh54:
	adrp	x8, _SSC_I2C_STOPG@GOTPAGE
Lloh55:
	ldr	x8, [x8, _SSC_I2C_STOPG@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	bl	_st_i2c_set_bits
Lloh57:
	adrp	x8, _EIO@GOTPAGE
Lloh58:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #24]
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
Lloh59:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh60:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh35
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGot	Lloh59, Lloh60
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_SSC_IEN,8,3                    ; @SSC_IEN
	.comm	_SSC_STA,8,3                    ; @SSC_STA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spurious it (sta=0x%04x, ien=0x%04x)\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_SSC_CLR_NACK,4,2               ; @SSC_CLR_NACK
	.comm	_SSC_CLR,8,3                    ; @SSC_CLR
	.comm	_SSC_IEN_STOPEN,4,2             ; @SSC_IEN_STOPEN
	.comm	_SSC_IEN_ARBLEN,4,2             ; @SSC_IEN_ARBLEN
	.comm	_SSC_I2C,8,3                    ; @SSC_I2C
	.comm	_SSC_I2C_STOPG,4,2              ; @SSC_I2C_STOPG
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SSC_CLR_SSCARBL,4,2            ; @SSC_CLR_SSCARBL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"it %d unhandled (sta=0x%04x)\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_st_i2c_isr_thread
.subsections_via_symbols
