	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_scfg_msi_domains_init
_ls_scfg_msi_domains_init:              ## @ls_scfg_msi_domains_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	20(%rdi), %esi
	movq	_ls_scfg_msi_domain_ops@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%rbx)
	movq	8(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rdi), %edi
	callq	_of_node_to_fwnode
	movl	(%rbx), %edx
	movq	_ls_scfg_msi_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_pci_msi_create_irq_domain
	movl	%eax, 16(%rbx)
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %edi
	callq	_irq_domain_remove
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ls_scfg_msi_domain_ops,4,2     ## @ls_scfg_msi_domain_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ls_scfg_msi_domain_info,4,2    ## @ls_scfg_msi_domain_info
L_.str.1:                               ## @.str.1
	.asciz	"failed to create MSI domain\n"

	.no_dead_strip	_ls_scfg_msi_domains_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_scfg_msi_domains_init
_ls_scfg_msi_domains_init:              ; @ls_scfg_msi_domains_init
	.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, x0
	ldr	w1, [x0, #20]
Lloh0:
	adrp	x2, _ls_scfg_msi_domain_ops@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ls_scfg_msi_domain_ops@GOTPAGEOFF]
	mov	x0, #0
	mov	x3, x19
	bl	_irq_domain_add_linear
	mov	x8, x0
	str	w0, [x19]
	ldr	x0, [x19, #8]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x0]
	bl	_of_node_to_fwnode
	ldr	w2, [x19]
Lloh2:
	adrp	x1, _ls_scfg_msi_domain_info@GOTPAGE
Lloh3:
	ldr	x1, [x1, _ls_scfg_msi_domain_info@GOTPAGEOFF]
	bl	_pci_msi_create_irq_domain
	str	w0, [x19, #16]
	cbz	w0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	bl	_irq_domain_remove
LBB0_5:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ls_scfg_msi_domain_ops,4,2     ; @ls_scfg_msi_domain_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ls_scfg_msi_domain_info,4,2    ; @ls_scfg_msi_domain_info
l_.str.1:                               ; @.str.1
	.asciz	"failed to create MSI domain\n"

	.no_dead_strip	_ls_scfg_msi_domains_init
.subsections_via_symbols
