	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arizona_irq_exit               ## -- Begin function arizona_irq_exit
	.p2align	4, 0x90
_arizona_irq_exit:                      ## @arizona_irq_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_ARIZONA_IRQ_CTRLIF_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_arizona_free_irq
LBB0_2:
	movq	_ARIZONA_IRQ_BOOT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	callq	_arizona_free_irq
	movl	4(%rbx), %edi
	movq	_ARIZONA_MAIN_IRQ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_find_mapping
	movl	%eax, %r14d
	movl	12(%rbx), %esi
	movl	%eax, %edi
	callq	_regmap_del_irq_chip
	movl	%r14d, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	movq	_ARIZONA_AOD_IRQ_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_irq_find_mapping
	movl	%eax, %r14d
	movl	8(%rbx), %esi
	movl	%eax, %edi
	callq	_regmap_del_irq_chip
	movl	%r14d, %edi
	callq	_irq_dispose_mapping
	movl	4(%rbx), %edi
	callq	_irq_domain_remove
	movl	(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARIZONA_IRQ_CTRLIF_ERR,4,2     ## @ARIZONA_IRQ_CTRLIF_ERR
	.comm	_ARIZONA_IRQ_BOOT_DONE,4,2      ## @ARIZONA_IRQ_BOOT_DONE
	.comm	_ARIZONA_MAIN_IRQ_INDEX,4,2     ## @ARIZONA_MAIN_IRQ_INDEX
	.comm	_ARIZONA_AOD_IRQ_INDEX,4,2      ## @ARIZONA_AOD_IRQ_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arizona_irq_exit               ; -- Begin function arizona_irq_exit
	.p2align	2
_arizona_irq_exit:                      ; @arizona_irq_exit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ARIZONA_IRQ_CTRLIF_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARIZONA_IRQ_CTRLIF_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_arizona_free_irq
LBB0_2:
Lloh3:
	adrp	x8, _ARIZONA_IRQ_BOOT_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARIZONA_IRQ_BOOT_DONE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_arizona_free_irq
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _ARIZONA_MAIN_IRQ_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARIZONA_MAIN_IRQ_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_irq_find_mapping
	mov	x20, x0
	ldr	w1, [x19, #12]
	bl	_regmap_del_irq_chip
	mov	x0, x20
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x8, _ARIZONA_AOD_IRQ_INDEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARIZONA_AOD_IRQ_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_irq_find_mapping
	mov	x20, x0
	ldr	w1, [x19, #8]
	bl	_regmap_del_irq_chip
	mov	x0, x20
	bl	_irq_dispose_mapping
	ldr	w0, [x19, #4]
	bl	_irq_domain_remove
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ARIZONA_IRQ_CTRLIF_ERR,4,2     ; @ARIZONA_IRQ_CTRLIF_ERR
	.comm	_ARIZONA_IRQ_BOOT_DONE,4,2      ; @ARIZONA_IRQ_BOOT_DONE
	.comm	_ARIZONA_MAIN_IRQ_INDEX,4,2     ; @ARIZONA_MAIN_IRQ_INDEX
	.comm	_ARIZONA_AOD_IRQ_INDEX,4,2      ; @ARIZONA_AOD_IRQ_INDEX
.subsections_via_symbols
