	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio1_interrupt
_gpio1_interrupt:                       ## @gpio1_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_gpio_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$9, %rdi
	callq	_in_8
	testb	$2, %al
	jne	LBB0_1
## %bb.2:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_gpio_irq_enabled@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_4
## %bb.3:
	movq	_gpio_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_disable_irq_nosync
	movq	$0, (%rbx)
LBB0_4:
	movq	_pmu_irq_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	4(%rax)
	movq	_adb_int_pending@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_via_pmu_interrupt
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_reg,8,3                   ## @gpio_reg
	.comm	_pmu_lock,4,2                   ## @pmu_lock
	.comm	_gpio_irq_enabled,8,3           ## @gpio_irq_enabled
	.comm	_gpio_irq,4,2                   ## @gpio_irq
	.comm	_pmu_irq_stats,8,3              ## @pmu_irq_stats
	.comm	_adb_int_pending,4,2            ## @adb_int_pending
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_gpio1_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio1_interrupt
_gpio1_interrupt:                       ; @gpio1_interrupt
	.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
Lloh0:
	adrp	x8, _gpio_reg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gpio_reg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x0, x8, #9
	bl	_in_8
	tbnz	w0, #1, LBB0_4
; %bb.1:
Lloh3:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x19, _gpio_irq_enabled@GOTPAGE
Lloh6:
	ldr	x19, [x19, _gpio_irq_enabled@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _gpio_irq@GOTPAGE
Lloh8:
	ldr	x8, [x8, _gpio_irq@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_disable_irq_nosync
	str	xzr, [x19]
LBB0_3:
Lloh10:
	adrp	x8, _pmu_irq_stats@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pmu_irq_stats@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
Lloh13:
	adrp	x8, _adb_int_pending@GOTPAGE
Lloh14:
	ldr	x8, [x8, _adb_int_pending@GOTPAGEOFF]
	mov	w9, #1
Lloh15:
	str	w9, [x8]
Lloh16:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	mov	x1, #0
	bl	_via_pmu_interrupt
Lloh18:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_reg,8,3                   ; @gpio_reg
	.comm	_pmu_lock,4,2                   ; @pmu_lock
	.comm	_gpio_irq_enabled,8,3           ; @gpio_irq_enabled
	.comm	_gpio_irq,4,2                   ; @gpio_irq
	.comm	_pmu_irq_stats,8,3              ; @pmu_irq_stats
	.comm	_adb_int_pending,4,2            ; @adb_int_pending
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_gpio1_interrupt
.subsections_via_symbols
