	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt9455_irq_handler_check_irq1_register
_rt9455_irq_handler_check_irq1_register: ## @rt9455_irq_handler_check_irq1_register
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	24(%rdi), %r12
	movl	16(%rdi), %edi
	movq	_RT9455_REG_IRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	16(%r13), %edi
	movq	_RT9455_REG_MASK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_26:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ebx
	movq	_F_TSDI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_GET_MASK
	testl	%ebx, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	$1, %r15d
	jmp	LBB0_8
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	-44(%rbp), %r14d
	movq	_F_VINOVPI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_GET_MASK
	testl	%r14d, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	$1, %r15d
LBB0_10:
	movl	-44(%rbp), %ebx
	movq	_F_BATAB@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_GET_MASK
	testl	%ebx, %eax
	je	LBB0_22
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	-52(%rbp), %ebx
	movq	_F_BATABM@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_GET_MASK
	testl	%ebx, %eax
	je	LBB0_12
LBB0_14:
	movl	16(%r13), %edi
	movq	_RT9455_REG_MASK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_2
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	testl	%r15d, %r15d
	jne	LBB0_24
	jmp	LBB0_25
LBB0_12:
	movq	8(%r13), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1, %esi
	callq	_regmap_field_write
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_2
LBB0_16:
	movl	-48(%rbp), %ebx
	movq	_F_CHTERMIM@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_GET_MASK
	testl	%ebx, %eax
	je	LBB0_19
## %bb.17:
	movq	8(%r13), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_regmap_field_write
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_2
LBB0_19:
	movl	-48(%rbp), %ebx
	movq	_F_CHRCHGIM@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_GET_MASK
	testl	%ebx, %eax
	je	LBB0_23
## %bb.20:
	movq	8(%r13), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,4), %edi
	xorl	%esi, %esi
	callq	_regmap_field_write
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_2
LBB0_23:
	leaq	4(%r13), %rdi
	callq	_cancel_delayed_work_sync
	movq	_system_power_efficient_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_RT9455_BATT_PRESENCE_DELAY@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	imull	(%rax), %edx
	movq	%r13, %rsi
	callq	_queue_delayed_work
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_24:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_25:
	xorl	%ebx, %ebx
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_RT9455_REG_IRQ1,4,2            ## @RT9455_REG_IRQ1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read IRQ1 register\n"

	.comm	_RT9455_REG_MASK1,4,2           ## @RT9455_REG_MASK1
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read MASK1 register\n"

	.comm	_F_TSDI,8,3                     ## @F_TSDI
L_.str.2:                               ## @.str.2
	.asciz	"Thermal shutdown fault occurred\n"

	.comm	_F_VINOVPI,8,3                  ## @F_VINOVPI
L_.str.3:                               ## @.str.3
	.asciz	"Overvoltage input occurred\n"

	.comm	_F_BATAB,8,3                    ## @F_BATAB
L_.str.4:                               ## @.str.4
	.asciz	"Battery absence occurred\n"

	.comm	_F_BATABM,8,3                   ## @F_BATABM
L_.str.5:                               ## @.str.5
	.asciz	"Failed to mask BATAB interrupt\n"

	.comm	_RT9455_REG_MASK2,4,2           ## @RT9455_REG_MASK2
L_.str.6:                               ## @.str.6
	.asciz	"Failed to read MASK2 register\n"

	.comm	_F_CHTERMIM,8,3                 ## @F_CHTERMIM
L_.str.7:                               ## @.str.7
	.asciz	"Failed to unmask CHTERMI interrupt\n"

	.comm	_F_CHRCHGIM,8,3                 ## @F_CHRCHGIM
L_.str.8:                               ## @.str.8
	.asciz	"Failed to unmask CHRCHGI interrupt\n"

	.comm	_system_power_efficient_wq,4,2  ## @system_power_efficient_wq
	.comm	_RT9455_BATT_PRESENCE_DELAY,4,2 ## @RT9455_BATT_PRESENCE_DELAY
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_rt9455_irq_handler_check_irq1_register
.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_check_irq1_register
_rt9455_irq_handler_check_irq1_register: ; @rt9455_irq_handler_check_irq1_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x20, [x0, #24]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _RT9455_REG_IRQ1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT9455_REG_IRQ1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w0, [x22, #16]
Lloh5:
	adrp	x8, _RT9455_REG_MASK1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RT9455_REG_MASK1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	cbz	w0, LBB0_6
; %bb.3:
	mov	x23, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w23, [sp, #12]
Lloh10:
	adrp	x8, _F_TSDI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_TSDI@GOTPAGEOFF]
Lloh12:
	ldr	x0, [x8]
	bl	_GET_MASK
	tst	w0, w23
	b.eq	LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w23, #1
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	ldr	w24, [sp, #12]
Lloh15:
	adrp	x8, _F_VINOVPI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _F_VINOVPI@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	bl	_GET_MASK
	tst	w0, w24
	b.eq	LBB0_11
; %bb.10:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w23, #1
LBB0_11:
	ldr	w24, [sp, #12]
Lloh20:
	adrp	x8, _F_BATAB@GOTPAGE
Lloh21:
	ldr	x8, [x8, _F_BATAB@GOTPAGEOFF]
Lloh22:
	ldr	x0, [x8]
	bl	_GET_MASK
	tst	w0, w24
	b.eq	LBB0_15
; %bb.12:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w24, [sp, #8]
Lloh25:
	adrp	x23, _F_BATABM@GOTPAGE
Lloh26:
	ldr	x23, [x23, _F_BATABM@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_GET_MASK
	tst	w0, w24
	b.eq	LBB0_16
LBB0_13:
	ldr	w0, [x22, #16]
Lloh27:
	adrp	x8, _RT9455_REG_MASK2@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RT9455_REG_MASK2@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_regmap_read
	cbz	w0, LBB0_18
; %bb.14:
	mov	x23, x0
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_4
LBB0_15:
	str	wzr, [x21]
	cbnz	w23, LBB0_25
	b	LBB0_5
LBB0_16:
	ldr	x8, [x22, #8]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #1
	bl	_regmap_field_write
	cbz	w0, LBB0_13
; %bb.17:
	mov	x23, x0
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_18:
	ldr	w24, [sp, #4]
Lloh34:
	adrp	x23, _F_CHTERMIM@GOTPAGE
Lloh35:
	ldr	x23, [x23, _F_CHTERMIM@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_GET_MASK
	tst	w0, w24
	b.eq	LBB0_21
; %bb.19:
	ldr	x8, [x22, #8]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #0
	bl	_regmap_field_write
	cbz	w0, LBB0_21
; %bb.20:
	mov	x23, x0
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_4
LBB0_21:
	ldr	w24, [sp, #4]
Lloh38:
	adrp	x23, _F_CHRCHGIM@GOTPAGE
Lloh39:
	ldr	x23, [x23, _F_CHRCHGIM@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_GET_MASK
	tst	w0, w24
	b.eq	LBB0_24
; %bb.22:
	ldr	x8, [x22, #8]
	ldr	x9, [x23]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #0
	bl	_regmap_field_write
	cbz	w0, LBB0_24
; %bb.23:
	mov	x23, x0
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
LBB0_24:
	add	x0, x22, #4
	bl	_cancel_delayed_work_sync
Lloh42:
	adrp	x8, _system_power_efficient_wq@GOTPAGE
Lloh43:
	ldr	x8, [x8, _system_power_efficient_wq@GOTPAGEOFF]
Lloh44:
	adrp	x9, _RT9455_BATT_PRESENCE_DELAY@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RT9455_BATT_PRESENCE_DELAY@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	ldr	w8, [x9]
Lloh48:
	adrp	x9, _HZ@GOTPAGE
Lloh49:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	mul	w2, w9, w8
	mov	x1, x22
	bl	_queue_delayed_work
	mov	w8, #1
	str	w8, [x21]
LBB0_25:
	mov	w23, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_RT9455_REG_IRQ1,4,2            ; @RT9455_REG_IRQ1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read IRQ1 register\n"

	.comm	_RT9455_REG_MASK1,4,2           ; @RT9455_REG_MASK1
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read MASK1 register\n"

	.comm	_F_TSDI,8,3                     ; @F_TSDI
l_.str.2:                               ; @.str.2
	.asciz	"Thermal shutdown fault occurred\n"

	.comm	_F_VINOVPI,8,3                  ; @F_VINOVPI
l_.str.3:                               ; @.str.3
	.asciz	"Overvoltage input occurred\n"

	.comm	_F_BATAB,8,3                    ; @F_BATAB
l_.str.4:                               ; @.str.4
	.asciz	"Battery absence occurred\n"

	.comm	_F_BATABM,8,3                   ; @F_BATABM
l_.str.5:                               ; @.str.5
	.asciz	"Failed to mask BATAB interrupt\n"

	.comm	_RT9455_REG_MASK2,4,2           ; @RT9455_REG_MASK2
l_.str.6:                               ; @.str.6
	.asciz	"Failed to read MASK2 register\n"

	.comm	_F_CHTERMIM,8,3                 ; @F_CHTERMIM
l_.str.7:                               ; @.str.7
	.asciz	"Failed to unmask CHTERMI interrupt\n"

	.comm	_F_CHRCHGIM,8,3                 ; @F_CHRCHGIM
l_.str.8:                               ; @.str.8
	.asciz	"Failed to unmask CHRCHGI interrupt\n"

	.comm	_system_power_efficient_wq,4,2  ; @system_power_efficient_wq
	.comm	_RT9455_BATT_PRESENCE_DELAY,4,2 ; @RT9455_BATT_PRESENCE_DELAY
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_rt9455_irq_handler_check_irq1_register
.subsections_via_symbols
