	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dw_pcie_irq_domain_alloc
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dw_pcie_irq_domain_alloc:              ## @dw_pcie_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	leaq	4(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_raw_spin_lock_irqsave
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	12(%r12), %r13d
	movl	%r14d, %edi
	callq	_order_base_2
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_bitmap_find_free_region
	movl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_raw_spin_unlock_irqrestore
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	%r12, %r8
	callq	_irq_domain_set_info
	incl	%r13d
	incl	%ebx
	decl	%r14d
	jne	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_5:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_dw_pcie_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 dw_pcie_irq_domain_alloc
_dw_pcie_irq_domain_alloc:              ; @dw_pcie_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	x22, [x0]
	add	x24, x22, #4
	mov	x0, x24
	bl	_raw_spin_lock_irqsave
	ldp	w25, w23, [x22, #8]
	mov	x0, x19
	bl	_order_base_2
	mov	x2, x0
	mov	x0, x23
	mov	x1, x25
	bl	_bitmap_find_free_region
	mov	x23, x0
	mov	x0, x24
	bl	_raw_spin_unlock_irqrestore
	tbnz	w23, #31, LBB0_5
; %bb.1:
	cbz	w19, LBB0_4
; %bb.2:
Lloh0:
	adrp	x24, _handle_edge_irq@GOTPAGE
Lloh1:
	ldr	x24, [x24, _handle_edge_irq@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x22]
	ldr	w5, [x24]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x4, x22
	mov	x6, #0
	mov	x7, #0
	bl	_irq_domain_set_info
	add	w23, w23, #1
	add	w20, w20, #1
	subs	w19, w19, #1
	b.ne	LBB0_3
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_dw_pcie_irq_domain_alloc
.subsections_via_symbols
