	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_event
_get_event:                             ## @get_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_APM_NO_EVENTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, -20(%rbp)
	leaq	-20(%rbp), %rdi
	leaq	-24(%rbp), %rsi
	callq	_apm_get_event
	movq	_APM_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	-20(%rbp), %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	(%r14), %eax
	je	LBB0_5
## %bb.3:
	movl	_get_event.notified(%rip), %ecx
	leal	1(%rcx), %edx
	movl	%edx, _get_event.notified(%rip)
	testl	%ecx, %ecx
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_apm_error
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APM_NO_EVENTS,4,2              ## @APM_NO_EVENTS
.zerofill __DATA,__bss,_get_event.notified,4,2 ## @get_event.notified
	.comm	_APM_SUCCESS,4,2                ## @APM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_event"

	.no_dead_strip	_get_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_event
_get_event:                             ; @get_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _APM_NO_EVENTS@GOTPAGE
Lloh1:
	ldr	x19, [x19, _APM_NO_EVENTS@GOTPAGEOFF]
	ldr	w8, [x19]
	str	w8, [sp, #12]
	add	x0, sp, #12
	add	x1, sp, #8
	bl	_apm_get_event
Lloh2:
	adrp	x8, _APM_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APM_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [sp, #12]
	b	LBB0_6
LBB0_2:
	mov	x1, x0
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.3:
	adrp	x8, _get_event.notified@PAGE
	ldr	w9, [x8, _get_event.notified@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x8, _get_event.notified@PAGEOFF]
	cbnz	w9, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_apm_error
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_APM_NO_EVENTS,4,2              ; @APM_NO_EVENTS
.zerofill __DATA,__bss,_get_event.notified,4,2 ; @get_event.notified
	.comm	_APM_SUCCESS,4,2                ; @APM_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_event"

	.no_dead_strip	_get_event
.subsections_via_symbols
