	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EVCH_CREAT@GOTPCREL(%rip), %rax
	movq	_EVCH_HOLD_PEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_sysevent_evc_bind
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_2:
	movq	-48(%rbp), %rdi
	movq	_EVCH_SLEEP@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.5(%rip), %r8
	xorl	%r9d, %r9d
	callq	_sysevent_evc_publish
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.3(%rip), %r15
	leaq	L_.str.4(%rip), %r12
	leaq	L_.str.5(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_sleep
	movq	-48(%rbp), %rdi
	movl	(%r13), %eax
	movl	%eax, (%rsp)
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%rbx, %r8
	xorl	%r9d, %r9d
	callq	_sysevent_evc_publish
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi
	callq	_sysevent_evc_unbind
	leaq	L_.str.6(%rip), %rsi
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
	movl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel_dtest"

	.comm	_EVCH_CREAT,4,2                 ## @EVCH_CREAT
	.comm	_EVCH_HOLD_PEND,4,2             ## @EVCH_HOLD_PEND
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"failed to bind to sysevent channel\n"

L_.str.2:                               ## @.str.2
	.asciz	"class_dtest"

L_.str.3:                               ## @.str.3
	.asciz	"subclass_dtest"

L_.str.4:                               ## @.str.4
	.asciz	"vendor_dtest"

L_.str.5:                               ## @.str.5
	.asciz	"publisher_dtest"

	.comm	_EVCH_SLEEP,4,2                 ## @EVCH_SLEEP
L_.str.6:                               ## @.str.6
	.asciz	"failed to publisth sysevent\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
Lloh0:
	adrp	x8, _EVCH_CREAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVCH_CREAT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EVCH_HOLD_PEND@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVCH_HOLD_PEND@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #8
	bl	_sysevent_evc_bind
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x23, _EVCH_SLEEP@GOTPAGE
Lloh11:
	ldr	x23, [x23, _EVCH_SLEEP@GOTPAGEOFF]
	ldr	w6, [x23]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh16:
	adrp	x3, l_.str.4@PAGE
Lloh17:
	add	x3, x3, l_.str.4@PAGEOFF
Lloh18:
	adrp	x4, l_.str.5@PAGE
Lloh19:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x5, #0
	bl	_sysevent_evc_publish
	cbnz	x0, LBB0_5
; %bb.3:
Lloh20:
	adrp	x19, l_.str.2@PAGE
Lloh21:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh22:
	adrp	x20, l_.str.3@PAGE
Lloh23:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh24:
	adrp	x21, l_.str.4@PAGE
Lloh25:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh26:
	adrp	x22, l_.str.5@PAGE
Lloh27:
	add	x22, x22, l_.str.5@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_sleep
	ldr	x0, [sp, #8]
	ldr	w6, [x23]
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	mov	x5, #0
	bl	_sysevent_evc_publish
	cbz	x0, LBB0_4
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_sysevent_evc_unbind
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_6:
Lloh30:
	adrp	x8, _stderr@GOTPAGE
Lloh31:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_fprintf
	mov	w0, #1
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel_dtest"

	.comm	_EVCH_CREAT,4,2                 ; @EVCH_CREAT
	.comm	_EVCH_HOLD_PEND,4,2             ; @EVCH_HOLD_PEND
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"failed to bind to sysevent channel\n"

l_.str.2:                               ; @.str.2
	.asciz	"class_dtest"

l_.str.3:                               ; @.str.3
	.asciz	"subclass_dtest"

l_.str.4:                               ; @.str.4
	.asciz	"vendor_dtest"

l_.str.5:                               ; @.str.5
	.asciz	"publisher_dtest"

	.comm	_EVCH_SLEEP,4,2                 ; @EVCH_SLEEP
l_.str.6:                               ; @.str.6
	.asciz	"failed to publisth sysevent\n"

.subsections_via_symbols
