	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_alloc_irqs            ## -- Begin function xen_intr_alloc_irqs
	.p2align	4, 0x90
_xen_intr_alloc_irqs:                   ## @xen_intr_alloc_irqs
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_num_io_irqs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_UINT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_NR_EVENT_CHANNELS@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	subq	%rcx, %rdx
	cmpq	%rdx, %rax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
	movq	(%rbx), %rax
	movq	(%r14), %rcx
LBB0_2:
	movq	_first_evtchn_irq@GOTPCREL(%rip), %rdx
	movq	%rax, (%rdx)
	addq	%rax, %rcx
	movq	%rcx, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_io_irqs,8,3                ## @num_io_irqs
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_NR_EVENT_CHANNELS,8,3          ## @NR_EVENT_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRQ allocation overflow (num_msi_irqs too high?)"

	.comm	_first_evtchn_irq,8,3           ## @first_evtchn_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xen_intr_alloc_irqs            ; -- Begin function xen_intr_alloc_irqs
	.p2align	2
_xen_intr_alloc_irqs:                   ; @xen_intr_alloc_irqs
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _num_io_irqs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _num_io_irqs@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x9]
Lloh5:
	adrp	x20, _NR_EVENT_CHANNELS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NR_EVENT_CHANNELS@GOTPAGEOFF]
	ldr	x9, [x20]
	sub	x10, x10, x9
	cmp	x8, x10
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	ldr	x8, [x19]
	ldr	x9, [x20]
LBB0_2:
Lloh9:
	adrp	x10, _first_evtchn_irq@GOTPAGE
Lloh10:
	ldr	x10, [x10, _first_evtchn_irq@GOTPAGEOFF]
Lloh11:
	str	x8, [x10]
	add	x8, x9, x8
	str	x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_num_io_irqs,8,3                ; @num_io_irqs
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_NR_EVENT_CHANNELS,8,3          ; @NR_EVENT_CHANNELS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRQ allocation overflow (num_msi_irqs too high?)"

	.comm	_first_evtchn_irq,8,3           ; @first_evtchn_irq
.subsections_via_symbols
