	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nwl_pcie_init_irq_domain
_nwl_pcie_init_irq_domain:              ## @nwl_pcie_init_irq_domain
	.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	%rdi, %r12
	movq	8(%rdi), %r14
	movq	(%r14), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	_PCI_NUM_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_legacy_domain_ops@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	callq	_of_node_put
	cmpl	$0, 4(%r12)
	je	LBB0_4
## %bb.2:
	movq	%r12, %rdi
	callq	_raw_spin_lock_init
	movq	%r12, %rdi
	callq	_nwl_pcie_init_msi_irq_domain
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_5:
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %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	"No legacy intc node found\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_NUM_INTX,4,2               ## @PCI_NUM_INTX
	.comm	_legacy_domain_ops,4,2          ## @legacy_domain_ops
L_.str.1:                               ## @.str.1
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nwl_pcie_init_irq_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nwl_pcie_init_irq_domain
_nwl_pcie_init_irq_domain:              ; @nwl_pcie_init_irq_domain
	.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, x0
	ldr	x20, [x0, #8]
	ldr	x0, [x20]
	mov	x1, #0
	bl	_of_get_next_child
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, _PCI_NUM_INTX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_NUM_INTX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, _legacy_domain_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _legacy_domain_ops@GOTPAGEOFF]
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19, #4]
	mov	x0, x21
	bl	_of_node_put
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_raw_spin_lock_init
	mov	x0, x19
	bl	_nwl_pcie_init_msi_irq_domain
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No legacy intc node found\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_NUM_INTX,4,2               ; @PCI_NUM_INTX
	.comm	_legacy_domain_ops,4,2          ; @legacy_domain_ops
l_.str.1:                               ; @.str.1
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nwl_pcie_init_irq_domain
.subsections_via_symbols
