	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbigen_irq_domain_alloc
_mbigen_irq_domain_alloc:               ## @mbigen_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, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-56(%rbp), %rdx
	leaq	-60(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rcx
	callq	_mbigen_domain_translate
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_platform_msi_domain_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_platform_msi_get_host_data
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:
	movl	%r12d, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r15d
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %esi
	movq	-56(%rbp), %rdx
	addq	%r13, %rdx
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movq	_mbigen_irq_chip@GOTPCREL(%rip), %rcx
	movq	%rax, %r12
	callq	_irq_domain_set_hwirq_and_chip
	movq	%r12, %rax
	incq	%r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mbigen_irq_chip,4,2            ## @mbigen_irq_chip
	.no_dead_strip	_mbigen_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 mbigen_irq_domain_alloc
_mbigen_irq_domain_alloc:               ; @mbigen_irq_domain_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x8, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x1, x8
	bl	_mbigen_domain_translate
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_platform_msi_domain_alloc
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_platform_msi_get_host_data
	cbz	w21, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x23, #0
	mov	w24, w21
Lloh0:
	adrp	x21, _mbigen_irq_chip@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mbigen_irq_chip@GOTPAGEOFF]
	mov	w20, w20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w20, w23
	ldr	x8, [sp, #8]
	add	x2, x23, x8
	ldr	w4, [x22]
	mov	x0, x19
	mov	x3, x21
	bl	_irq_domain_set_hwirq_and_chip
	add	x23, x23, #1
	cmp	x24, x23
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mbigen_irq_chip,4,2            ; @mbigen_irq_chip
	.no_dead_strip	_mbigen_irq_domain_alloc
.subsections_via_symbols
