	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function counter_show
_counter_show:                          ## @counter_show
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	_counter_attrs@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movq	_acpi_irq_handled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_all_counters@GOTPCREL(%rip), %rcx
	movq	_num_gpes@GOTPCREL(%rip), %rsi
	movq	_ACPI_NUM_FIXED_EVENTS@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	addq	(%rsi), %rdx
	movq	(%rcx), %rcx
	movq	_COUNT_SCI@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rdx, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movq	_acpi_irq_not_handled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_COUNT_SCI_NOT@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rdx, %rsi
	movl	%eax, (%rcx,%rsi,4)
	movq	_acpi_gpe_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_COUNT_GPE@GOTPCREL(%rip), %rsi
	addq	(%rsi), %rdx
	movl	%eax, (%rcx,%rdx,4)
	shrq	$2, %rbx
	movslq	%ebx, %r14
	movl	(%rcx,%r14,4), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %r15d
	movq	(%r13), %rax
	movq	_num_gpes@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	cmpq	%rax, %r14
	jae	LBB0_11
## %bb.1:
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	callq	_get_status
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:
	movslq	%r15d, %rcx
	movw	$10, (%r12,%rcx)
	jmp	LBB0_12
LBB0_2:
	movl	-44(%rbp), %eax
	movq	_ACPI_EVENT_FLAG_HANDLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%r12, %rsi
	je	LBB0_3
## %bb.5:
	movq	_ACPI_EVENT_FLAG_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movslq	%r15d, %rax
	movabsq	$7234307546237789449, %rcx      ## imm = 0x64656C62616E6509
	jmp	LBB0_4
LBB0_3:
	movslq	%r15d, %rax
	movabsq	$7235433442201987337, %rcx      ## imm = 0x64696C61766E6909
LBB0_4:
	movq	%rcx, (%rsi,%rax)
	movb	$0, 8(%rsi,%rax)
	addl	$8, %r15d
	movq	%rsi, %r12
LBB0_11:
	movslq	%r15d, %rax
	movw	$10, (%r12,%rax)
	incl	%eax
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPCREL(%rip), %rdx
	movslq	%r15d, %rcx
	addq	%rsi, %rcx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.8:
	movabsq	$28259013852491365, %rax        ## imm = 0x64656C62616E65
	movq	%rax, 6(%rcx)
	movabsq	$7954869206017734409, %rax      ## imm = 0x6E655F656B617709
	movq	%rax, (%rcx)
	addl	$13, %r15d
	jmp	LBB0_11
LBB0_10:
	movabsq	$7308324466003108873, %rax      ## imm = 0x656C626173696409
	movq	%rax, (%rcx)
	movw	$100, 8(%rcx)
	addl	$9, %r15d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_counter_attrs,8,3              ## @counter_attrs
	.comm	_acpi_irq_handled,4,2           ## @acpi_irq_handled
	.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_SCI,8,3                  ## @COUNT_SCI
	.comm	_acpi_irq_not_handled,4,2       ## @acpi_irq_not_handled
	.comm	_COUNT_SCI_NOT,8,3              ## @COUNT_SCI_NOT
	.comm	_acpi_gpe_count,4,2             ## @acpi_gpe_count
	.comm	_COUNT_GPE,8,3                  ## @COUNT_GPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%8d"

	.comm	_ACPI_EVENT_FLAG_HANDLE,4,2     ## @ACPI_EVENT_FLAG_HANDLE
L_.str.1:                               ## @.str.1
	.asciz	"\tinvalid"

	.comm	_ACPI_EVENT_FLAG_ENABLED,4,2    ## @ACPI_EVENT_FLAG_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"\tenabled"

	.comm	_ACPI_EVENT_FLAG_WAKE_ENABLED,4,2 ## @ACPI_EVENT_FLAG_WAKE_ENABLED
L_.str.3:                               ## @.str.3
	.asciz	"\twake_enabled"

L_.str.4:                               ## @.str.4
	.asciz	"\tdisabled"

	.no_dead_strip	_counter_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function counter_show
_counter_show:                          ; @counter_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
Lloh0:
	adrp	x8, _acpi_irq_handled@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_irq_handled@GOTPAGEOFF]
Lloh2:
	adrp	x9, _all_counters@GOTPAGE
Lloh3:
	ldr	x9, [x9, _all_counters@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x22, _num_gpes@GOTPAGE
Lloh7:
	ldr	x22, [x22, _num_gpes@GOTPAGEOFF]
Lloh8:
	adrp	x23, _ACPI_NUM_FIXED_EVENTS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ACPI_NUM_FIXED_EVENTS@GOTPAGEOFF]
	ldr	x10, [x22]
	ldr	x11, [x23]
Lloh10:
	adrp	x12, _COUNT_SCI@GOTPAGE
Lloh11:
	ldr	x12, [x12, _COUNT_SCI@GOTPAGEOFF]
Lloh12:
	ldr	x12, [x12]
	add	x10, x11, x10
	add	x11, x10, x12
	str	w8, [x9, x11, lsl #2]
Lloh13:
	adrp	x8, _acpi_irq_not_handled@GOTPAGE
Lloh14:
	ldr	x8, [x8, _acpi_irq_not_handled@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x11, _COUNT_SCI_NOT@GOTPAGE
Lloh17:
	ldr	x11, [x11, _COUNT_SCI_NOT@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	add	x11, x11, x10
	str	w8, [x9, x11, lsl #2]
Lloh19:
	adrp	x8, _counter_attrs@GOTPAGE
Lloh20:
	ldr	x8, [x8, _counter_attrs@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x11, _acpi_gpe_count@GOTPAGE
Lloh23:
	ldr	x11, [x11, _acpi_gpe_count@GOTPAGEOFF]
	sub	x8, x1, x8
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, _COUNT_GPE@GOTPAGE
Lloh26:
	ldr	x12, [x12, _COUNT_GPE@GOTPAGEOFF]
Lloh27:
	ldr	x12, [x12]
	add	x10, x12, x10
	str	w11, [x9, x10, lsl #2]
	sbfx	x24, x8, #2, #32
	lsr	x21, x8, #2
	ldr	w8, [x9, w21, sxtw #2]
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x2
	bl	_sprintf
	mov	x20, x0
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x8, x9, x8
	cmp	x24, x8
	b.hs	LBB0_8
; %bb.1:
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x21
	bl	_get_status
	cbz	w0, LBB0_3
; %bb.2:
	mov	w8, #10
	strh	w8, [x19, w20, sxtw]
	b	LBB0_9
LBB0_3:
	ldr	w8, [sp, #8]
Lloh30:
	adrp	x9, _ACPI_EVENT_FLAG_HANDLE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ACPI_EVENT_FLAG_HANDLE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
Lloh33:
	adrp	x9, _ACPI_EVENT_FLAG_ENABLED@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ACPI_EVENT_FLAG_ENABLED@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.5:
Lloh36:
	adrp	x8, l_.str.2@PAGE
Lloh37:
	add	x8, x8, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh38:
	adrp	x8, l_.str.1@PAGE
Lloh39:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_7:
	ldr	x8, [x8]
	add	x9, x19, w20, sxtw
	str	x8, [x9]
	strb	wzr, [x9, #8]
	add	w20, w20, #8
LBB0_8:
	mov	w8, #10
	strh	w8, [x19, w20, sxtw]
	add	w0, w20, #1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh40:
	adrp	x9, _ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x9]
	add	x9, x19, w20, sxtw
	tst	w10, w8
	b.eq	LBB0_12
; %bb.11:
Lloh43:
	adrp	x8, l_.str.3@PAGE
Lloh44:
	add	x8, x8, l_.str.3@PAGEOFF
	ldr	x10, [x8]
	ldur	x8, [x8, #6]
	stur	x8, [x9, #6]
	str	x10, [x9]
	add	w20, w20, #13
	b	LBB0_8
LBB0_12:
	mov	w8, #100
	strh	w8, [x9, #8]
Lloh45:
	adrp	x8, l_.str.4@PAGE
Lloh46:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh47:
	ldr	x8, [x8]
	str	x8, [x9]
	add	w20, w20, #9
	b	LBB0_8
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAddLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_counter_attrs,8,3              ; @counter_attrs
	.comm	_acpi_irq_handled,4,2           ; @acpi_irq_handled
	.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_SCI,8,3                  ; @COUNT_SCI
	.comm	_acpi_irq_not_handled,4,2       ; @acpi_irq_not_handled
	.comm	_COUNT_SCI_NOT,8,3              ; @COUNT_SCI_NOT
	.comm	_acpi_gpe_count,4,2             ; @acpi_gpe_count
	.comm	_COUNT_GPE,8,3                  ; @COUNT_GPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%8d"

	.comm	_ACPI_EVENT_FLAG_HANDLE,4,2     ; @ACPI_EVENT_FLAG_HANDLE
l_.str.1:                               ; @.str.1
	.asciz	"\tinvalid"

	.comm	_ACPI_EVENT_FLAG_ENABLED,4,2    ; @ACPI_EVENT_FLAG_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"\tenabled"

	.comm	_ACPI_EVENT_FLAG_WAKE_ENABLED,4,2 ; @ACPI_EVENT_FLAG_WAKE_ENABLED
l_.str.3:                               ; @.str.3
	.asciz	"\twake_enabled"

l_.str.4:                               ; @.str.4
	.asciz	"\tdisabled"

	.no_dead_strip	_counter_show
.subsections_via_symbols
