	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_rebind_virq
_xen_rebind_virq:                       ## @xen_rebind_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_pcpu_find
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -24(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -16(%rbp)
	movq	_EVTCHNOP_bind_virq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_HYPERVISOR_event_channel_op
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_panic
LBB0_2:
	movq	-24(%rbp), %rdi
	movq	%rdi, 8(%rbx)
	movl	$0, (%rbx)
	movq	_xen_intr_port_to_isrc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, (%rax,%rdi,8)
	callq	_evtchn_unmask_port
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVTCHNOP_bind_virq,4,2         ## @EVTCHNOP_bind_virq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to rebind xen VIRQ#%d: %d"

	.comm	_xen_intr_port_to_isrc,8,3      ## @xen_intr_port_to_isrc
	.comm	_cpu_apic_ids,8,3               ## @cpu_apic_ids
	.no_dead_strip	_xen_rebind_virq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_rebind_virq
_xen_rebind_virq:                       ; @xen_rebind_virq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w0, [x0]
	bl	_pcpu_find
	ldr	w8, [x0]
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
	ldr	w8, [x19, #16]
	str	w8, [sp, #24]
Lloh0:
	adrp	x8, _EVTCHNOP_bind_virq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTCHNOP_bind_virq@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_HYPERVISOR_event_channel_op
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w1, [x19, #16]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	ldr	x0, [sp, #16]
	str	x0, [x19, #8]
	str	wzr, [x19]
Lloh5:
	adrp	x8, _xen_intr_port_to_isrc@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xen_intr_port_to_isrc@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x19, [x8, x0, lsl #3]
	bl	_evtchn_unmask_port
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EVTCHNOP_bind_virq,4,2         ; @EVTCHNOP_bind_virq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to rebind xen VIRQ#%d: %d"

	.comm	_xen_intr_port_to_isrc,8,3      ; @xen_intr_port_to_isrc
	.comm	_cpu_apic_ids,8,3               ; @cpu_apic_ids
	.no_dead_strip	_xen_rebind_virq
.subsections_via_symbols
