	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt9455_irq_handler_thread
_rt9455_irq_handler_thread:             ## @rt9455_irq_handler_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -28(%rbp)
	movl	$0, -32(%rbp)
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.1:
	movq	%rsi, %rbx
	movq	16(%rsi), %rax
	leaq	4(%rax), %r14
	cmpl	%edi, (%rax)
	jne	LBB0_2
## %bb.3:
	movq	8(%rbx), %rax
	movq	_F_STAT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	leaq	-36(%rbp), %rsi
	callq	_regmap_field_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_15
LBB0_6:
	movl	-36(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt9455_irq_handler_check_irq1_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	movl	-32(%rbp), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_rt9455_irq_handler_check_irq2_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_5
LBB0_10:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_rt9455_irq_handler_check_irq3_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
LBB0_5:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
LBB0_15:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	cmpl	$0, -28(%rbp)
	je	LBB0_15
## %bb.13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_power_supply_changed
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt is not for RT9455 charger\n"

	.comm	_F_STAT,8,3                     ## @F_STAT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read STAT bits\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
L_.str.2:                               ## @.str.2
	.asciz	"Charger status is %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to handle IRQ1 register\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to handle IRQ2 register\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to handle IRQ3 register\n"

	.no_dead_strip	_rt9455_irq_handler_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt9455_irq_handler_thread
_rt9455_irq_handler_thread:             ; @rt9455_irq_handler_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	xzr, [sp, #8]
	cbz	x1, LBB0_5
; %bb.1:
	mov	x20, x1
	ldr	x19, [x1, #16]
	ldr	w8, [x19], #4
	cmp	w8, w0
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _F_STAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _F_STAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	add	x1, sp, #4
	bl	_regmap_field_read
	cbz	w0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_5:
Lloh7:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	ldr	w2, [sp, #4]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_rt9455_irq_handler_check_irq1_register
	cbz	w0, LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	w1, [sp, #8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_rt9455_irq_handler_check_irq2_register
	cbz	w0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
	add	x1, sp, #12
	mov	x0, x20
	bl	_rt9455_irq_handler_check_irq3_register
	cbz	w0, LBB0_15
; %bb.11:
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_15:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.16:
	ldr	x0, [x20]
	cbz	x0, LBB0_13
; %bb.17:
	bl	_power_supply_changed
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt is not for RT9455 charger\n"

	.comm	_F_STAT,8,3                     ; @F_STAT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read STAT bits\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
l_.str.2:                               ; @.str.2
	.asciz	"Charger status is %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to handle IRQ1 register\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to handle IRQ2 register\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to handle IRQ3 register\n"

	.no_dead_strip	_rt9455_irq_handler_thread
.subsections_via_symbols
