	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_bind_remote_port      ## -- Begin function xen_intr_bind_remote_port
	.p2align	4, 0x90
_xen_intr_bind_remote_port:             ## @xen_intr_bind_remote_port
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edi, %r13d
	movq	%rsi, -64(%rbp)
	movq	%rdx, -72(%rbp)
	movq	_EVTCHNOP_bind_interdomain@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	callq	_HYPERVISOR_event_channel_op
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	negl	%ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-76(%rbp), %ebx
	movq	_EVTCHN_TYPE_PORT@GOTPCREL(%rip), %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_device_get_nameunit
	subq	$8, %rsp
	leaq	-56(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	24(%rbp)
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_xen_intr_bind_isrc
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movq	$0, -96(%rbp)
	movl	-76(%rbp), %eax
	movl	%eax, -112(%rbp)
	movq	_EVTCHNOP_close@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-112(%rbp), %rsi
	callq	_HYPERVISOR_event_channel_op
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	jmp	LBB0_6
LBB0_5:
	movq	-56(%rbp), %rax
	movl	$1, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EVTCHNOP_bind_interdomain,4,2  ## @EVTCHNOP_bind_interdomain
	.comm	_EVTCHN_TYPE_PORT,4,2           ## @EVTCHN_TYPE_PORT
	.comm	_EVTCHNOP_close,4,2             ## @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVTCHNOP_close failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_bind_remote_port      ; -- Begin function xen_intr_bind_remote_port
	.p2align	2
_xen_intr_bind_remote_port:             ; @xen_intr_bind_remote_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x7
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x0
	stp	x2, x1, [sp, #40]
Lloh0:
	adrp	x8, _EVTCHNOP_bind_interdomain@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTCHNOP_bind_interdomain@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #32
	bl	_HYPERVISOR_event_channel_op
	cbz	w0, LBB0_3
; %bb.1:
	neg	w19, w0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldr	w25, [sp, #36]
Lloh3:
	adrp	x8, _EVTCHN_TYPE_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVTCHN_TYPE_PORT@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x0, x24
	bl	_device_get_nameunit
	mov	x3, x0
	str	x23, [sp]
	add	x0, sp, #56
	mov	x1, x25
	mov	x2, x26
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_xen_intr_bind_isrc
	mov	x19, x0
	cbz	w0, LBB0_6
; %bb.4:
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	w8, [sp, #36]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, _EVTCHNOP_close@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVTCHNOP_close@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_HYPERVISOR_event_channel_op
	cbz	w0, LBB0_2
; %bb.5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	b	LBB0_2
LBB0_6:
	ldr	x8, [sp, #56]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EVTCHNOP_bind_interdomain,4,2  ; @EVTCHNOP_bind_interdomain
	.comm	_EVTCHN_TYPE_PORT,4,2           ; @EVTCHN_TYPE_PORT
	.comm	_EVTCHNOP_close,4,2             ; @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVTCHNOP_close failed"

.subsections_via_symbols
