	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aeon_setup_intr
_aeon_setup_intr:                       ## @aeon_setup_intr
	.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	_is_aeon@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_3:
	xorl	%edi, %edi
	movl	$4, %esi
	callq	_MAP_IRQ
	movl	%eax, %ebx
	movq	_INTR_TRIGGER_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_INTR_POLARITY_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	callq	_powerpc_config_intr
	movq	_aeon_pbutton_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_INTR_TYPE_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$0
	callq	_powerpc_setup_intr
	addq	$24, %rsp
	jmp	LBB0_5
LBB0_4:
	addq	$8, %rsp
LBB0_5:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_aeon,4,2                    ## @is_aeon
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_INTR_TRIGGER_EDGE,4,2          ## @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_LOW,4,2          ## @INTR_POLARITY_LOW
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"power_button"

	.comm	_aeon_pbutton_intr,4,2          ## @aeon_pbutton_intr
	.comm	_INTR_TYPE_MISC,4,2             ## @INTR_TYPE_MISC
L_str:                                  ## @str
	.asciz	"Configuring AmigaOne power button."

	.no_dead_strip	_aeon_setup_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aeon_setup_intr
_aeon_setup_intr:                       ; @aeon_setup_intr
	.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, _is_aeon@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_aeon@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _bootverbose@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_3:
	mov	w0, #0
	mov	w1, #4
	bl	_MAP_IRQ
	mov	x19, x0
Lloh8:
	adrp	x8, _INTR_TRIGGER_EDGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INTR_TRIGGER_EDGE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _INTR_POLARITY_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INTR_POLARITY_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_powerpc_config_intr
Lloh14:
	adrp	x8, _aeon_pbutton_intr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _aeon_pbutton_intr@GOTPAGEOFF]
Lloh16:
	adrp	x9, _INTR_TYPE_MISC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INTR_TYPE_MISC@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	ldr	w5, [x9]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, #0
	mov	x4, #0
	mov	x6, #0
	mov	w7, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_powerpc_setup_intr
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_is_aeon,4,2                    ; @is_aeon
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_INTR_TRIGGER_EDGE,4,2          ; @INTR_TRIGGER_EDGE
	.comm	_INTR_POLARITY_LOW,4,2          ; @INTR_POLARITY_LOW
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"power_button"

	.comm	_aeon_pbutton_intr,4,2          ; @aeon_pbutton_intr
	.comm	_INTR_TYPE_MISC,4,2             ; @INTR_TYPE_MISC
l_str:                                  ; @str
	.asciz	"Configuring AmigaOne power button."

	.no_dead_strip	_aeon_setup_intr
.subsections_via_symbols
