	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_pmu_acpi_register_irq
_arm_pmu_acpi_register_irq:             ## @arm_pmu_acpi_register_irq
	.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
	callq	_acpi_cpu_get_madt_gicc
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.5:
	movq	_ACPI_MADT_PERFORMANCE_IRQ_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	jne	LBB0_6
## %bb.7:
	movq	_ACPI_LEVEL_SENSITIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_2
LBB0_6:
	movq	_ACPI_EDGE_SENSITIVE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edx
	movq	_ACPI_ACTIVE_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_acpi_register_gsi              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_MADT_PERFORMANCE_IRQ_MODE,4,2 ## @ACPI_MADT_PERFORMANCE_IRQ_MODE
	.comm	_ACPI_EDGE_SENSITIVE,4,2        ## @ACPI_EDGE_SENSITIVE
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ## @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_HIGH,4,2           ## @ACPI_ACTIVE_HIGH
	.no_dead_strip	_arm_pmu_acpi_register_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_pmu_acpi_register_irq
_arm_pmu_acpi_register_irq:             ; @arm_pmu_acpi_register_irq
	.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
	bl	_acpi_cpu_get_madt_gicc
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w1, [x19]
	cbz	w1, LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _ACPI_MADT_PERFORMANCE_IRQ_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_MADT_PERFORMANCE_IRQ_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ACPI_LEVEL_SENSITIVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ACPI_LEVEL_SENSITIVE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ACPI_EDGE_SENSITIVE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ACPI_EDGE_SENSITIVE@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
Lloh10:
	adrp	x9, _ACPI_ACTIVE_HIGH@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ACPI_ACTIVE_HIGH@GOTPAGEOFF]
	ldr	w2, [x8]
Lloh12:
	ldr	w3, [x9]
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_acpi_register_gsi
LBB0_5:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_MADT_PERFORMANCE_IRQ_MODE,4,2 ; @ACPI_MADT_PERFORMANCE_IRQ_MODE
	.comm	_ACPI_EDGE_SENSITIVE,4,2        ; @ACPI_EDGE_SENSITIVE
	.comm	_ACPI_LEVEL_SENSITIVE,4,2       ; @ACPI_LEVEL_SENSITIVE
	.comm	_ACPI_ACTIVE_HIGH,4,2           ; @ACPI_ACTIVE_HIGH
	.no_dead_strip	_arm_pmu_acpi_register_irq
.subsections_via_symbols
