	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_drm_front_evtchnl_publish_all ## -- Begin function xen_drm_front_evtchnl_publish_all
	.p2align	4, 0x90
_xen_drm_front_evtchnl_publish_all:     ## @xen_drm_front_evtchnl_publish_all
	.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	%rdi, %r15
	leaq	-48(%rbp), %rdi
	movq	_XENDISPL_FIELD_REQ_CHANNEL@GOTPCREL(%rip), %r14
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	callq	_xenbus_transaction_start
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 16(%r15)
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$4, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rsi
	addq	%r12, %rsi
	movq	24(%r15), %rax
	movl	(%rax,%r13,4), %edx
	movq	_XENDISPL_FIELD_REQ_RING_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movl	-48(%rbp), %edi
	callq	_evtchnl_publish
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	leaq	(%rax,%r12), %rsi
	addq	$-4, %rsi
	movl	(%rcx,%r13,4), %edx
	movq	_XENDISPL_FIELD_EVT_RING_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_XENDISPL_FIELD_EVT_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-48(%rbp), %edi
	callq	_evtchnl_publish
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%r13
	movslq	16(%r15), %rax
	addq	$8, %r12
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_xenbus_transaction_end
	testl	%eax, %eax
	jns	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	leaq	-48(%rbp), %rdi
	je	LBB0_1
## %bb.11:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %esi
	callq	_xenbus_dev_fatal
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	movl	$1, %esi
	callq	_xenbus_transaction_end
LBB0_12:
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %esi
	callq	_xenbus_dev_fatal
	movl	%ebx, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r12d
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %esi
	callq	_xenbus_dev_fatal
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"starting transaction"

	.comm	_XENDISPL_FIELD_REQ_RING_REF,4,2 ## @XENDISPL_FIELD_REQ_RING_REF
	.comm	_XENDISPL_FIELD_REQ_CHANNEL,4,2 ## @XENDISPL_FIELD_REQ_CHANNEL
	.comm	_XENDISPL_FIELD_EVT_RING_REF,4,2 ## @XENDISPL_FIELD_EVT_RING_REF
	.comm	_XENDISPL_FIELD_EVT_CHANNEL,4,2 ## @XENDISPL_FIELD_EVT_CHANNEL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"completing transaction"

L_.str.2:                               ## @.str.2
	.asciz	"writing Xen store"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_drm_front_evtchnl_publish_all ; -- Begin function xen_drm_front_evtchnl_publish_all
	.p2align	2
_xen_drm_front_evtchnl_publish_all:     ; @xen_drm_front_evtchnl_publish_all
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _XENDISPL_FIELD_REQ_RING_REF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XENDISPL_FIELD_REQ_RING_REF@GOTPAGEOFF]
Lloh2:
	adrp	x22, _XENDISPL_FIELD_REQ_CHANNEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _XENDISPL_FIELD_REQ_CHANNEL@GOTPAGEOFF]
Lloh4:
	adrp	x23, _XENDISPL_FIELD_EVT_RING_REF@GOTPAGE
Lloh5:
	ldr	x23, [x23, _XENDISPL_FIELD_EVT_RING_REF@GOTPAGEOFF]
Lloh6:
	adrp	x24, _XENDISPL_FIELD_EVT_CHANNEL@GOTPAGE
Lloh7:
	ldr	x24, [x24, _XENDISPL_FIELD_EVT_CHANNEL@GOTPAGEOFF]
Lloh8:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x0, sp, #8
	bl	_xenbus_transaction_start
	tbnz	w0, #31, LBB0_14
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x26, #0
	mov	w27, #4
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	add	x1, x8, x27
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x26, lsl #2]
	ldr	w3, [x21]
	ldr	w4, [x22]
	ldr	w0, [sp, #8]
	bl	_evtchnl_publish
	tbnz	w0, #31, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x19, #8]
	add	x8, x8, x27
	sub	x1, x8, #4
	ldr	x8, [x19, #24]
	ldr	w2, [x8, x26, lsl #2]
	ldr	w3, [x23]
	ldr	w4, [x24]
	ldr	w0, [sp, #8]
	bl	_evtchnl_publish
	tbnz	w0, #31, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x26, x26, #1
	ldrsw	x8, [x19, #16]
	add	x27, x27, #8
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_xenbus_transaction_end
	tbz	w0, #31, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x0
	ldr	w8, [x25]
	cmn	w0, w8
	b.eq	LBB0_1
; %bb.9:
	ldr	w0, [x19]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_xenbus_dev_fatal
	b	LBB0_11
LBB0_10:
	mov	x20, x0
	ldr	w0, [sp, #8]
	mov	w1, #1
	bl	_xenbus_transaction_end
LBB0_11:
	ldr	w0, [x19]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_12:
	mov	x1, x20
	bl	_xenbus_dev_fatal
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	x20, x0
	ldr	w0, [x19]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_12
LBB0_15:
	mov	w20, #0
	b	LBB0_13
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting transaction"

	.comm	_XENDISPL_FIELD_REQ_RING_REF,4,2 ; @XENDISPL_FIELD_REQ_RING_REF
	.comm	_XENDISPL_FIELD_REQ_CHANNEL,4,2 ; @XENDISPL_FIELD_REQ_CHANNEL
	.comm	_XENDISPL_FIELD_EVT_RING_REF,4,2 ; @XENDISPL_FIELD_EVT_RING_REF
	.comm	_XENDISPL_FIELD_EVT_CHANNEL,4,2 ; @XENDISPL_FIELD_EVT_CHANNEL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"completing transaction"

l_.str.2:                               ; @.str.2
	.asciz	"writing Xen store"

.subsections_via_symbols
