	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8821_irq_block_handler
_pm8821_irq_block_handler:              ## @pm8821_irq_block_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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	4(%rdi), %r12d
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_PM8821_SSBI_ADDR_IRQ_ROOT
	leaq	-36(%rbp), %rdx
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_pr_err
	jmp	LBB0_18
LBB0_2:
	movq	_PM8821_BLOCKS_PER_MASTER@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	addl	%r14d, %ebx
	leal	-8(,%rbx,8), %r14d
	movl	-36(%rbp), %ebx
	xorl	%edi, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_4:
	movl	-36(%rbp), %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movl	%r14d, %esi
	orl	$1, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_6:
	movl	-36(%rbp), %ebx
	movl	$2, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_8
## %bb.7:
	movl	%r14d, %esi
	orl	$2, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_8:
	movl	-36(%rbp), %ebx
	movl	$3, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_10
## %bb.9:
	movl	%r14d, %esi
	orl	$3, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_10:
	movl	-36(%rbp), %ebx
	movl	$4, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_12
## %bb.11:
	movl	%r14d, %esi
	orl	$4, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_12:
	movl	-36(%rbp), %ebx
	movl	$5, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_14
## %bb.13:
	movl	%r14d, %esi
	orl	$5, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_14:
	movl	-36(%rbp), %ebx
	movl	$6, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_16
## %bb.15:
	movl	%r14d, %esi
	orl	$6, %esi
	movl	(%r15), %edi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_16:
	movl	-36(%rbp), %ebx
	movl	$7, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_18
## %bb.17:
	orl	$7, %r14d
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_generic_handle_irq
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading block %d failed ret=%d"

	.comm	_PM8821_BLOCKS_PER_MASTER,4,2   ## @PM8821_BLOCKS_PER_MASTER
	.no_dead_strip	_pm8821_irq_block_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_block_handler
_pm8821_irq_block_handler:              ; @pm8821_irq_block_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w22, [x0, #4]
	mov	x0, x1
	mov	x1, x2
	bl	_PM8821_SSBI_ADDR_IRQ_ROOT
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x22
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_18
LBB0_2:
Lloh2:
	adrp	x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	madd	w8, w8, w21, w20
	lsl	w8, w8, #3
	sub	w20, w8, #8
	ldr	w21, [sp, #12]
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
	mov	x1, x20
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_4:
	ldr	w21, [sp, #12]
	mov	w0, #1
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_6
; %bb.5:
	orr	w1, w20, #0x1
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_6:
	ldr	w21, [sp, #12]
	mov	w0, #2
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_8
; %bb.7:
	orr	w1, w20, #0x2
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_8:
	ldr	w21, [sp, #12]
	mov	w0, #3
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_10
; %bb.9:
	orr	w1, w20, #0x3
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_10:
	ldr	w21, [sp, #12]
	mov	w0, #4
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_12
; %bb.11:
	orr	w1, w20, #0x4
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_12:
	ldr	w22, [sp, #12]
	mov	w21, #5
	mov	w0, #5
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_14
; %bb.13:
	orr	w1, w20, w21
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_14:
	ldr	w21, [sp, #12]
	mov	w0, #6
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_16
; %bb.15:
	orr	w1, w20, #0x6
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_16:
	ldr	w21, [sp, #12]
	mov	w0, #7
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_18
; %bb.17:
	orr	w1, w20, #0x7
	ldr	w0, [x19]
	bl	_irq_find_mapping
	bl	_generic_handle_irq
LBB0_18:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading block %d failed ret=%d"

	.comm	_PM8821_BLOCKS_PER_MASTER,4,2   ; @PM8821_BLOCKS_PER_MASTER
	.no_dead_strip	_pm8821_irq_block_handler
.subsections_via_symbols
