	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function irq_free_range
_irq_free_range:                        ## @irq_free_range
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	movl	%esi, %r15d
	movq	8(%rax), %rax
	leal	(%rdx,%r15), %r14d
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rcx), %edi
	cmpl	%r15d, %edi
	jg	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax,%rcx), %ebx
	addl	%edi, %ebx
	cmpl	%ebx, %r14d
	jg	LBB0_6
## %bb.5:
	movl	%r15d, %esi
	subl	%edi, %esi
	movl	8(%rax,%rcx), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_bitmap_clear
	decl	%r14d
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_pr_devel
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"guest: release IRQs %#x->%#x\n"

	.no_dead_strip	_irq_free_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function irq_free_range
_irq_free_range:                        ; @irq_free_range
	.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
	cbz	w2, LBB0_7
; %bb.1:
	ldr	x9, [x0]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x19, x1
	ldr	x9, [x9, #8]
	add	w20, w2, w1
	add	x9, x9, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #12
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-8]
	cmp	w10, w19
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w11, [x9, #-4]
	add	w11, w11, w10
	cmp	w20, w11
	b.gt	LBB0_3
; %bb.6:
	sub	w1, w19, w10
	ldr	w0, [x9]
	bl	_bitmap_clear
	sub	w2, w20, #1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_devel
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"guest: release IRQs %#x->%#x\n"

	.no_dead_strip	_irq_free_range
.subsections_via_symbols
