	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8821_irq_handler
_pm8821_irq_handler:                    ## @pm8821_irq_handler
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_irq_desc_get_handler_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_irq_desc_get_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_chained_irq_enter
	movl	(%r15), %edi
	movq	_PM8821_SSBI_REG_ADDR_IRQ_MASTER0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	callq	_pr_err
LBB0_9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_chained_irq_exit
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	-36(%rbp), %r12d
	movl	$7, %edi
	movl	$1, %esi
	callq	_GENMASK
	testl	%r12d, %eax
	je	LBB0_5
## %bb.4:
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pm8821_irq_master_handler
LBB0_5:
	movl	-36(%rbp), %r12d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r12d, %eax
	je	LBB0_9
## %bb.6:
	movl	(%r15), %edi
	movq	_PM8821_SSBI_REG_ADDR_IRQ_MASTER1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	movl	-36(%rbp), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pm8821_irq_master_handler
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PM8821_SSBI_REG_ADDR_IRQ_MASTER0,4,2 ## @PM8821_SSBI_REG_ADDR_IRQ_MASTER0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read master 0 ret=%d\n"

	.comm	_PM8821_SSBI_REG_ADDR_IRQ_MASTER1,4,2 ## @PM8821_SSBI_REG_ADDR_IRQ_MASTER1
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read master 1 ret=%d\n"

	.no_dead_strip	_pm8821_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8821_irq_handler
_pm8821_irq_handler:                    ; @pm8821_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_irq_desc_get_handler_data
	mov	x21, x0
	mov	x0, x19
	bl	_irq_desc_get_chip
	mov	x20, x0
	mov	x1, x19
	bl	_chained_irq_enter
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _PM8821_SSBI_REG_ADDR_IRQ_MASTER0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM8821_SSBI_REG_ADDR_IRQ_MASTER0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_4
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_pr_err
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_chained_irq_exit
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	w22, [sp, #12]
	mov	w0, #7
	mov	w1, #1
	bl	_GENMASK
	tst	w0, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	w1, #0
	bl	_pm8821_irq_master_handler
LBB0_6:
	ldr	w22, [sp, #12]
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_3
; %bb.7:
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _PM8821_SSBI_REG_ADDR_IRQ_MASTER1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PM8821_SSBI_REG_ADDR_IRQ_MASTER1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_9
; %bb.8:
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	w1, #1
	bl	_pm8821_irq_master_handler
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8821_SSBI_REG_ADDR_IRQ_MASTER0,4,2 ; @PM8821_SSBI_REG_ADDR_IRQ_MASTER0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read master 0 ret=%d\n"

	.comm	_PM8821_SSBI_REG_ADDR_IRQ_MASTER1,4,2 ; @PM8821_SSBI_REG_ADDR_IRQ_MASTER1
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read master 1 ret=%d\n"

	.no_dead_strip	_pm8821_irq_handler
.subsections_via_symbols
