	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alpine_msix_init_domains
_alpine_msix_init_domains:              ## @alpine_msix_init_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_of_irq_find_parent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_irq_find_host
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	_alpine_msix_middle_domain_ops@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r15, %rdx
	callq	_irq_domain_add_tree
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r15
	movq	%r12, (%rax)
	movq	%r14, %rdi
	callq	_of_node_to_fwnode
	movq	_alpine_msix_domain_info@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%r15, %rdx
	callq	_pci_msi_create_irq_domain
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	%r15, %rdi
	callq	_irq_domain_remove
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to find the GIC node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Failed to find the GIC domain\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_alpine_msix_middle_domain_ops,4,2 ## @alpine_msix_middle_domain_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create the MSIX middle domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_alpine_msix_domain_info,4,2    ## @alpine_msix_domain_info
L_.str.3:                               ## @.str.3
	.asciz	"Failed to create MSI domain\n"

	.no_dead_strip	_alpine_msix_init_domains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpine_msix_init_domains
_alpine_msix_init_domains:              ; @alpine_msix_init_domains
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_of_irq_find_parent
	cbz	x0, LBB0_5
; %bb.1:
	bl	_irq_find_host
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x1, _alpine_msix_middle_domain_ops@GOTPAGE
Lloh1:
	ldr	x1, [x1, _alpine_msix_middle_domain_ops@GOTPAGEOFF]
	mov	x0, #0
	mov	x2, x20
	bl	_irq_domain_add_tree
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	str	x21, [x0]
	mov	x0, x19
	bl	_of_node_to_fwnode
Lloh2:
	adrp	x1, _alpine_msix_domain_info@GOTPAGE
Lloh3:
	ldr	x1, [x1, _alpine_msix_domain_info@GOTPAGEOFF]
	mov	x2, x20
	bl	_pci_msi_create_irq_domain
	cbz	x0, LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_11
LBB0_5:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	mov	x0, x20
	bl	_irq_domain_remove
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to find the GIC node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Failed to find the GIC domain\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_alpine_msix_middle_domain_ops,4,2 ; @alpine_msix_middle_domain_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create the MSIX middle domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_alpine_msix_domain_info,4,2    ; @alpine_msix_domain_info
l_.str.3:                               ; @.str.3
	.asciz	"Failed to create MSI domain\n"

	.no_dead_strip	_alpine_msix_init_domains
.subsections_via_symbols
