	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arizona_irq_thread
_arizona_irq_thread:                    ## @arizona_irq_thread
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	(%rsi), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movq	_ARIZONA_IRQ_PIN_STATUS@GOTPCREL(%rip), %r13
	leaq	-44(%rbp), %r14
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %r12
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movq	_ARIZONA_AOD_IRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %edi
	movl	(%r13), %esi
	movq	%r14, %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ARIZONA_IRQ1_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edi
	movl	$1, %esi
	callq	_irq_find_mapping
	movl	%eax, %edi
	callq	_handle_nested_irq
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_gpio_get_value_cansleep
	testq	%rax, %rax
	jne	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%rbx), %eax
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx), %edi
	callq	_gpio_get_value_cansleep
	testq	%rax, %rax
	je	LBB0_2
LBB0_17:
	movl	(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_19:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to resume device: %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ARIZONA_AOD_IRQ1,4,2           ## @ARIZONA_AOD_IRQ1
L_.str.1:                               ## @.str.1
	.asciz	"Failed to read AOD IRQ1 %d\n"

	.comm	_ARIZONA_IRQ_PIN_STATUS,4,2     ## @ARIZONA_IRQ_PIN_STATUS
	.comm	_ARIZONA_IRQ1_STS,4,2           ## @ARIZONA_IRQ1_STS
L_.str.2:                               ## @.str.2
	.asciz	"Failed to read main IRQ status: %d\n"

	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_arizona_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arizona_irq_thread
_arizona_irq_thread:                    ; @arizona_irq_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x1
	ldr	w0, [x1]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_18
; %bb.1:
Lloh0:
	adrp	x22, _ARIZONA_IRQ_PIN_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ARIZONA_IRQ_PIN_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ARIZONA_IRQ1_STS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ARIZONA_IRQ1_STS@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh6:
	adrp	x24, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh8:
	adrp	x25, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh12:
	adrp	x26, _ARIZONA_AOD_IRQ1@GOTPAGE
Lloh13:
	ldr	x26, [x26, _ARIZONA_AOD_IRQ1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	ldr	w0, [x19]
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #12]
	mov	w1, #0
	bl	_irq_find_mapping
	bl	_handle_nested_irq
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #16]
	ldr	w1, [x22]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	ldr	w0, [x19]
	mov	x1, x20
	bl	_dev_err
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #12]
	mov	w1, #1
	bl	_irq_find_mapping
	bl	_handle_nested_irq
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #8]
	cbz	w0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	bl	_gpio_get_value_cansleep
	cbnz	x0, LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19, #4]
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19, #8]
	bl	_gpio_get_value_cansleep
	cbz	x0, LBB0_2
LBB0_17:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	mov	x2, x0
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to resume device: %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ARIZONA_AOD_IRQ1,4,2           ; @ARIZONA_AOD_IRQ1
l_.str.1:                               ; @.str.1
	.asciz	"Failed to read AOD IRQ1 %d\n"

	.comm	_ARIZONA_IRQ_PIN_STATUS,4,2     ; @ARIZONA_IRQ_PIN_STATUS
	.comm	_ARIZONA_IRQ1_STS,4,2           ; @ARIZONA_IRQ1_STS
l_.str.2:                               ; @.str.2
	.asciz	"Failed to read main IRQ status: %d\n"

	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_arizona_irq_thread
.subsections_via_symbols
