	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function iproc_msi_irq_domain_alloc
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_iproc_msi_irq_domain_alloc:            ## @iproc_msi_irq_domain_alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	12(%r13), %edi
	movl	(%r13), %esi
	movl	8(%r13), %ecx
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_bitmap_find_next_zero_area
	cmpl	(%r13), %eax
	jge	LBB0_5
## %bb.1:
	movl	%eax, %r12d
	movl	8(%r13), %edx
	movl	12(%r13), %edi
	movl	%eax, %esi
	callq	_bitmap_set
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r13), %esi
	leal	(%r12,%r13), %edx
	movq	(%rbx), %r8
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%rbx, %rdi
	movq	_iproc_msi_bottom_irq_chip@GOTPCREL(%rip), %rcx
	callq	_irq_domain_set_info
	incl	%r13d
	cmpl	%r13d, %r15d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_iproc_msi_bottom_irq_chip,4,2  ## @iproc_msi_bottom_irq_chip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.no_dead_strip	_iproc_msi_irq_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_msi_irq_domain_alloc
_iproc_msi_irq_domain_alloc:            ; @iproc_msi_irq_domain_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x24, [x0]
	add	x23, x24, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w1, [x24]
	ldp	w3, w0, [x24, #8]
	mov	w2, #0
	mov	w4, #0
	bl	_bitmap_find_next_zero_area
	ldr	w8, [x24]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.1:
	mov	x22, x0
	ldp	w2, w0, [x24, #8]
	mov	x1, x22
	bl	_bitmap_set
	mov	x0, x23
	bl	_mutex_unlock
	cbz	w19, LBB0_5
; %bb.2:
	mov	w24, #0
Lloh0:
	adrp	x25, _handle_simple_irq@GOTPAGE
Lloh1:
	ldr	x25, [x25, _handle_simple_irq@GOTPAGEOFF]
Lloh2:
	adrp	x23, _iproc_msi_bottom_irq_chip@GOTPAGE
Lloh3:
	ldr	x23, [x23, _iproc_msi_bottom_irq_chip@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w20, w24
	add	w2, w22, w24
	ldr	x4, [x21]
	ldr	w5, [x25]
	mov	x0, x21
	mov	x3, x23
	mov	x6, #0
	mov	x7, #0
	bl	_irq_domain_set_info
	add	w24, w24, #1
	cmp	w19, w24
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_mutex_unlock
Lloh4:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_iproc_msi_bottom_irq_chip,4,2  ; @iproc_msi_bottom_irq_chip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.no_dead_strip	_iproc_msi_irq_domain_alloc
.subsections_via_symbols
