	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_bind_virq             ## -- Begin function xen_intr_bind_virq
	.p2align	4, 0x90
_xen_intr_bind_virq:                    ## @xen_intr_bind_virq
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rdx, %rdi
	callq	_pcpu_find
	movl	(%rax), %eax
	movq	%r15, -64(%rbp)
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	$0, -72(%rbp)
	movq	_EVTCHNOP_bind_virq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%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	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	24(%rbp), %rcx
	movl	-52(%rbp), %ebx
	movq	_EVTCHN_TYPE_VIRQ@GOTPCREL(%rip), %rax
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movl	%r14d, %edi
	movq	%rcx, %r14
	callq	_device_get_nameunit
	subq	$8, %rsp
	leaq	-72(%rbp), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	%r13d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r14
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_xen_intr_bind_isrc
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	(%r14), %edi
	callq	_xen_intr_unbind
	movq	_EVTCHNOP_close@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-96(%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	-72(%rbp), %rax
	movl	$1, 8(%rax)
	movq	%r15, 16(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EVTCHNOP_bind_virq,4,2         ## @EVTCHNOP_bind_virq
	.comm	_EVTCHN_TYPE_VIRQ,4,2           ## @EVTCHN_TYPE_VIRQ
	.comm	_EVTCHNOP_close,4,2             ## @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EVTCHNOP_close failed"

	.comm	_cpu_apic_ids,8,3               ## @cpu_apic_ids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_bind_virq             ; -- Begin function xen_intr_bind_virq
	.p2align	2
_xen_intr_bind_virq:                    ; @xen_intr_bind_virq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x1
	mov	x25, x0
	mov	x0, x2
	bl	_pcpu_find
	ldr	w8, [x0]
	str	x20, [sp, #24]
	stp	w8, wzr, [sp, #32]
	str	xzr, [sp, #40]
Lloh0:
	adrp	x8, _EVTCHNOP_bind_virq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTCHNOP_bind_virq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #24
	bl	_HYPERVISOR_event_channel_op
	cbz	w0, LBB0_3
; %bb.1:
	neg	w21, w0
LBB0_2:
	mov	x0, x21
	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
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	ldr	w26, [sp, #36]
Lloh3:
	adrp	x8, _EVTCHN_TYPE_VIRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVTCHN_TYPE_VIRQ@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	mov	x0, x25
	bl	_device_get_nameunit
	mov	x3, x0
	str	x19, [sp]
	add	x0, sp, #40
	mov	x1, x26
	mov	x2, x27
	mov	x4, x24
	mov	x5, x23
	mov	x6, x22
	mov	x7, x21
	bl	_xen_intr_bind_isrc
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	str	xzr, [sp, #8]
	ldr	w8, [sp, #36]
	stp	wzr, w8, [sp, #16]
	ldr	w0, [x19]
	bl	_xen_intr_unbind
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, #40]
	mov	w9, #1
	str	w9, [x8, #8]
	str	x20, [x8, #16]
	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_virq,4,2         ; @EVTCHNOP_bind_virq
	.comm	_EVTCHN_TYPE_VIRQ,4,2           ; @EVTCHN_TYPE_VIRQ
	.comm	_EVTCHNOP_close,4,2             ; @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EVTCHNOP_close failed"

	.comm	_cpu_apic_ids,8,3               ; @cpu_apic_ids
.subsections_via_symbols
