	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_gpe_count              ## -- Begin function acpi_os_gpe_count
	.p2align	4, 0x90
_acpi_os_gpe_count:                     ## @acpi_os_gpe_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_acpi_gpe_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_all_counters@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_num_gpes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_ACPI_NUM_FIXED_EVENTS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	%rcx, %rdx
	movq	_COUNT_ERROR@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rdx
	cmpq	%rdi, %rcx
	cmovaq	%rdi, %rdx
	incl	(%rax,%rdx,4)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_gpe_count,4,2             ## @acpi_gpe_count
	.comm	_all_counters,8,3               ## @all_counters
	.comm	_num_gpes,8,3                   ## @num_gpes
	.comm	_ACPI_NUM_FIXED_EVENTS,8,3      ## @ACPI_NUM_FIXED_EVENTS
	.comm	_COUNT_ERROR,8,3                ## @COUNT_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_os_gpe_count              ; -- Begin function acpi_os_gpe_count
	.p2align	2
_acpi_os_gpe_count:                     ; @acpi_os_gpe_count
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _acpi_gpe_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_gpe_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _all_counters@GOTPAGE
Lloh3:
	ldr	x8, [x8, _all_counters@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x9, _num_gpes@GOTPAGE
Lloh6:
	ldr	x9, [x9, _num_gpes@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _ACPI_NUM_FIXED_EVENTS@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ACPI_NUM_FIXED_EVENTS@GOTPAGEOFF]
Lloh10:
	adrp	x11, _COUNT_ERROR@GOTPAGE
Lloh11:
	ldr	x11, [x11, _COUNT_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	ldr	x11, [x11]
	add	x10, x10, x9
	add	x10, x10, x11
	cmp	x9, x0
	csel	x9, x0, x10, hi
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gpe_count,4,2             ; @acpi_gpe_count
	.comm	_all_counters,8,3               ; @all_counters
	.comm	_num_gpes,8,3                   ; @num_gpes
	.comm	_ACPI_NUM_FIXED_EVENTS,8,3      ; @ACPI_NUM_FIXED_EVENTS
	.comm	_COUNT_ERROR,8,3                ; @COUNT_ERROR
.subsections_via_symbols
