	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_msi_alloc_domains
_iproc_msi_alloc_domains:               ## @iproc_msi_alloc_domains
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	8(%rsi), %esi
	movq	_msi_domain_ops@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_of_node_to_fwnode
	movl	(%rbx), %edx
	movq	_iproc_msi_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_pci_msi_create_irq_domain
	movl	%eax, 4(%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %edi
	callq	_irq_domain_remove
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msi_domain_ops,4,2             ## @msi_domain_ops
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_iproc_msi_domain_info,4,2      ## @iproc_msi_domain_info
	.no_dead_strip	_iproc_msi_alloc_domains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_msi_alloc_domains
_iproc_msi_alloc_domains:               ; @iproc_msi_alloc_domains
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x1, #8]
Lloh0:
	adrp	x2, _msi_domain_ops@GOTPAGE
Lloh1:
	ldr	x2, [x2, _msi_domain_ops@GOTPAGEOFF]
	mov	x0, #0
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_of_node_to_fwnode
	ldr	w2, [x19]
Lloh2:
	adrp	x1, _iproc_msi_domain_info@GOTPAGE
Lloh3:
	ldr	x1, [x1, _iproc_msi_domain_info@GOTPAGEOFF]
	bl	_pci_msi_create_irq_domain
	str	w0, [x19, #4]
	cbz	w0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
	bl	_irq_domain_remove
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_msi_domain_ops,4,2             ; @msi_domain_ops
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_iproc_msi_domain_info,4,2      ; @iproc_msi_domain_info
	.no_dead_strip	_iproc_msi_alloc_domains
.subsections_via_symbols
