	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evtchnl_publish
_evtchnl_publish:                       ## @evtchnl_publish
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	8(%rsi), %rax
	movq	(%rax), %r15
	movl	4(%rsi), %r8d
	leaq	L_.str(%rip), %rax
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_xenbus_printf
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rcx
	movl	%r13d, %edi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_xenbus_printf
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_xenbus_dev_error
	movl	%r14d, %ebx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_xenbus_dev_error
LBB0_4:
	movl	%ebx, %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	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"writing ring-ref"

L_.str.2:                               ## @.str.2
	.asciz	"writing event channel"

	.no_dead_strip	_evtchnl_publish
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evtchnl_publish
_evtchnl_publish:                       ; @evtchnl_publish
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x4
	mov	x8, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x9, [x1, #8]
	ldr	x19, [x9]
	ldr	w4, [x1, #4]
	and	x24, x0, #0xffffffff
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x2
	mov	x2, x8
	bl	_xenbus_printf
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w4, [x23]
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_xenbus_printf
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_6
LBB0_3:
	mov	x20, x0
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_xenbus_dev_error
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"writing ring-ref"

l_.str.2:                               ; @.str.2
	.asciz	"writing event channel"

	.no_dead_strip	_evtchnl_publish
.subsections_via_symbols
