	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl6030_irq_thread
_twl6030_irq_thread:                    ## @twl6030_irq_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_TWL_MODULE_PIH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_INT_STS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movl	$3, %ecx
	callq	_twl_i2c_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_warn
	jmp	LBB0_14
LBB0_2:
	movl	$0, -44(%rbp)
	movl	-48(%rbp), %eax
	testb	$16, %al
	je	LBB0_4
## %bb.3:
	orl	$8, %eax
	movl	%eax, -48(%rbp)
LBB0_4:
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r13
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_pr_debug
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %eax
	sarl	%eax
	incq	%rbx
	cmpl	$1, %r15d
	movl	%eax, %r15d
	jbe	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %r15b
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %edi
	movq	(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_irq_find_mapping
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %edi
	callq	_handle_nested_irq
	jmp	LBB0_10
LBB0_12:
	movq	_TWL_MODULE_PIH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_REG_INT_STS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_twl_i2c_write_u8
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_warn
LBB0_14:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL_MODULE_PIH,4,2             ## @TWL_MODULE_PIH
	.comm	_REG_INT_STS_A,4,2              ## @REG_INT_STS_A
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"twl6030_irq: I2C error %d reading PIH ISR\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.1:                               ## @.str.1
	.asciz	"twl6030_irq: Unmapped PIH ISR %u detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"twl6030_irq: PIH ISR %u, virq%u\n"

L_.str.3:                               ## @.str.3
	.asciz	"twl6030_irq: I2C error in clearing PIH ISR\n"

	.no_dead_strip	_twl6030_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl6030_irq_thread
_twl6030_irq_thread:                    ; @twl6030_irq_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
Lloh0:
	adrp	x25, _TWL_MODULE_PIH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TWL_MODULE_PIH@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x26, _REG_INT_STS_A@GOTPAGE
Lloh3:
	ldr	x26, [x26, _REG_INT_STS_A@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x1, sp, #16
	mov	w3, #3
	bl	_twl_i2c_read
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_2
; %bb.1:
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_2:
	str	wzr, [sp, #28]
	ldr	w8, [sp, #24]
	tbz	w8, #4, LBB0_4
; %bb.3:
	orr	w8, w8, #0x8
	str	w8, [sp, #24]
LBB0_4:
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	cbz	w0, LBB0_12
; %bb.5:
	mov	x20, x0
	mov	x21, #0
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_pr_err
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_pr_debug
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	asr	w8, w20, #1
	add	x21, x21, #1
	cmp	w20, #1
	mov	x20, x8
	b.ls	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w20, #0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, x21, lsl #2]
	bl	_irq_find_mapping
	mov	x24, x0
	cbz	w0, LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x24
	bl	_handle_nested_irq
	b	LBB0_7
LBB0_12:
	ldr	w0, [x25]
	ldr	w2, [x26]
	mov	w1, #0
	bl	_twl_i2c_write_u8
	cbz	w0, LBB0_15
; %bb.13:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_14:
	bl	_pr_warn
LBB0_15:
Lloh12:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL_MODULE_PIH,4,2             ; @TWL_MODULE_PIH
	.comm	_REG_INT_STS_A,4,2              ; @REG_INT_STS_A
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"twl6030_irq: I2C error %d reading PIH ISR\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.1:                               ; @.str.1
	.asciz	"twl6030_irq: Unmapped PIH ISR %u detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"twl6030_irq: PIH ISR %u, virq%u\n"

l_.str.3:                               ; @.str.3
	.asciz	"twl6030_irq: I2C error in clearing PIH ISR\n"

	.no_dead_strip	_twl6030_irq_thread
.subsections_via_symbols
