	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8821_irq_mask_ack
_pm8821_irq_mask_ack:                   ## @pm8821_irq_mask_ack
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_irqd_to_hwirq
	movl	%eax, %r13d
	shrl	$3, %eax
	movq	_PM8821_BLOCKS_PER_MASTER@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%r13d, %ebx
	andl	$7, %ebx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	callq	_PM8821_SSBI_ADDR_IRQ_MASK
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_BIT
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_PM8821_SSBI_ADDR_IRQ_CLEAR
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_BIT
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movl	%r13d, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"Failed to mask IRQ:%d rc=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to CLEAR IRQ:%d rc=%d\n"

	.no_dead_strip	_pm8821_irq_mask_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8821_irq_mask_ack
_pm8821_irq_mask_ack:                   ; @pm8821_irq_mask_ack
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_irq_data_get_irq_chip_data
	mov	x21, x0
	mov	x0, x19
	bl	_irqd_to_hwirq
	mov	x19, x0
Lloh0:
	adrp	x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM8821_BLOCKS_PER_MASTER@GOTPAGEOFF]
	lsr	w9, w0, #3
Lloh2:
	ldr	w8, [x8]
	sdiv	w22, w9, w8
	and	w20, w0, #0x7
	msub	w23, w22, w8, w9
	ldr	w24, [x21]
	mov	x0, x22
	mov	x1, x23
	bl	_PM8821_SSBI_ADDR_IRQ_MASK
	mov	x25, x0
	mov	x0, x20
	bl	_BIT
	mov	x26, x0
	mov	x0, x20
	bl	_BIT
	mov	x3, x0
	mov	x0, x24
	mov	x1, x25
	mov	x2, x26
	bl	_regmap_update_bits
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w21, [x21]
	mov	x0, x22
	mov	x1, x23
	bl	_PM8821_SSBI_ADDR_IRQ_CLEAR
	mov	x22, x0
	mov	x0, x20
	bl	_BIT
	mov	x23, x0
	mov	x0, x20
	bl	_BIT
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_regmap_update_bits
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	mov	x1, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pr_err
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8821_BLOCKS_PER_MASTER,4,2   ; @PM8821_BLOCKS_PER_MASTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to mask IRQ:%d rc=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to CLEAR IRQ:%d rc=%d\n"

	.no_dead_strip	_pm8821_irq_mask_ack
.subsections_via_symbols
