	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8821_irq_get_irqchip_state
_pm8821_irq_get_irqchip_state:          ## @pm8821_irq_get_irqchip_state
	.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	%rdx, %r14
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, %r12d
	leal	7(%r12), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	%ebx, %eax
	sarl	$3, %eax
	movq	_PM8821_BLOCKS_PER_MASTER@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	(%r15), %r15d
	movl	%eax, %edi
	movl	%edx, %esi
	callq	_PM8821_SSBI_ADDR_IRQ_RT_STATUS
	leaq	-36(%rbp), %rdx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_regmap_read
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_pr_err
	jmp	LBB0_3
LBB0_2:
	andl	$-8, %ebx
	subl	%ebx, %r12d
	movl	-36(%rbp), %ebx
	movl	%r12d, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movl	%ecx, (%r14)
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM8821_BLOCKS_PER_MASTER,4,2   ## @PM8821_BLOCKS_PER_MASTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading Status of IRQ %d failed rc=%d\n"

	.no_dead_strip	_pm8821_irq_get_irqchip_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8821_irq_get_irqchip_state
_pm8821_irq_get_irqchip_state:          ; @pm8821_irq_get_irqchip_state
	.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, x2
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	mov	x0, x20
	bl	_irqd_to_hwirq
	mov	x20, x0
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w22, w8, #3
Lloh0:
	adrp	x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w0, w22, w8
	msub	w1, w0, w8, w22
	ldr	w21, [x21]
	bl	_PM8821_SSBI_ADDR_IRQ_RT_STATUS
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x21
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_pr_err
	b	LBB0_3
LBB0_2:
	sub	w0, w20, w22, lsl #3
	ldr	w20, [sp, #12]
	bl	_BIT
	tst	w0, w20
	cset	w8, ne
	str	w8, [x19]
LBB0_3:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8821_BLOCKS_PER_MASTER,4,2   ; @PM8821_BLOCKS_PER_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading Status of IRQ %d failed rc=%d\n"

	.no_dead_strip	_pm8821_irq_get_irqchip_state
.subsections_via_symbols
