	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function advk_pcie_init_irq_domain
_advk_pcie_init_irq_domain:             ## @advk_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	40(%rdi), %r15
	movq	(%r15), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_of_get_next_child
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_devm_kasprintf
	movl	%eax, 32(%r12)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_advk_pcie_irq_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	%rax, 16(%r12)
	movq	_advk_pcie_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_PCI_NUM_INTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_advk_pcie_irq_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%r12)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r14, %rdi
	callq	_of_node_put
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	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	"No PCIe Intc node found\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"%s-irq"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_advk_pcie_irq_mask,8,3         ## @advk_pcie_irq_mask
	.comm	_advk_pcie_irq_unmask,4,2       ## @advk_pcie_irq_unmask
	.comm	_PCI_NUM_INTX,4,2               ## @PCI_NUM_INTX
	.comm	_advk_pcie_irq_domain_ops,4,2   ## @advk_pcie_irq_domain_ops
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get a INTx IRQ domain\n"

	.no_dead_strip	_advk_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 advk_pcie_init_irq_domain
_advk_pcie_init_irq_domain:             ; @advk_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	x21, x0
	ldr	x20, [x0, #40]
	ldr	x0, [x20]
	mov	x1, #0
	bl	_of_get_next_child
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_devm_kasprintf
	str	w0, [x21, #32]
	cbz	w0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _advk_pcie_irq_mask@GOTPAGE
Lloh6:
	ldr	x8, [x8, _advk_pcie_irq_mask@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _advk_pcie_irq_unmask@GOTPAGE
Lloh9:
	ldr	x9, [x9, _advk_pcie_irq_unmask@GOTPAGEOFF]
	stp	x8, x8, [x21, #16]
Lloh10:
	ldr	w8, [x9]
	str	w8, [x21, #8]
Lloh11:
	adrp	x8, _PCI_NUM_INTX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_NUM_INTX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, _advk_pcie_irq_domain_ops@GOTPAGE
Lloh15:
	ldr	x2, [x2, _advk_pcie_irq_domain_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x21
	bl	_irq_domain_add_linear
	str	w0, [x21]
	cbz	w0, LBB0_5
; %bb.3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_5:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x19
	bl	_of_node_put
LBB0_8:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No PCIe Intc node found\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"%s-irq"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_advk_pcie_irq_mask,8,3         ; @advk_pcie_irq_mask
	.comm	_advk_pcie_irq_unmask,4,2       ; @advk_pcie_irq_unmask
	.comm	_PCI_NUM_INTX,4,2               ; @PCI_NUM_INTX
	.comm	_advk_pcie_irq_domain_ops,4,2   ; @advk_pcie_irq_domain_ops
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get a INTx IRQ domain\n"

	.no_dead_strip	_advk_pcie_init_irq_domain
.subsections_via_symbols
