	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_intr_pirq_disable_intr
_xen_intr_pirq_disable_intr:            ## @xen_intr_pirq_disable_intr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_evtchn_mask_port
	movq	(%rbx), %rax
	movq	%rax, -24(%rbp)
	movq	_EVTCHNOP_close@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_HYPERVISOR_event_channel_op
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_xen_intr_isrc_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_xen_intr_port_to_isrc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	%r14, %rdi
	callq	_mtx_unlock
	movq	$0, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVTCHNOP_close,4,2             ## @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to close event channel %d IRQ#%d"

	.comm	_xen_intr_isrc_lock,4,2         ## @xen_intr_isrc_lock
	.comm	_xen_intr_port_to_isrc,8,3      ## @xen_intr_port_to_isrc
	.no_dead_strip	_xen_intr_pirq_disable_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_intr_pirq_disable_intr
_xen_intr_pirq_disable_intr:            ; @xen_intr_pirq_disable_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, [x0]
	bl	_evtchn_mask_port
	ldr	x8, [x19]
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _EVTCHNOP_close@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVTCHNOP_close@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_HYPERVISOR_event_channel_op
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x1, [x19]
	ldr	w2, [x19, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh5:
	adrp	x20, _xen_intr_isrc_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _xen_intr_isrc_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh7:
	adrp	x8, _xen_intr_port_to_isrc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xen_intr_port_to_isrc@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	xzr, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_mtx_unlock
	str	xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EVTCHNOP_close,4,2             ; @EVTCHNOP_close
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to close event channel %d IRQ#%d"

	.comm	_xen_intr_isrc_lock,4,2         ; @xen_intr_isrc_lock
	.comm	_xen_intr_port_to_isrc,8,3      ; @xen_intr_port_to_isrc
	.no_dead_strip	_xen_intr_pirq_disable_intr
.subsections_via_symbols
