	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nwl_pcie_parse_dt
_nwl_pcie_parse_dt:                     ## @nwl_pcie_parse_dt
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	48(%rdi), %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	40(%r12), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	(%rbx), %eax
	movl	%eax, 32(%r12)
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	24(%r12), %rdi
	jmp	LBB0_2
LBB0_5:
	movl	(%rbx), %eax
	movl	%eax, 16(%r12)
	movl	(%r13), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_pci_remap_cfg_resource
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	8(%r12), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_nwl_pcie_leg_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movq	%r12, %rdx
	callq	_irq_set_chained_handler_and_data
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	(%r12), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"breg"

L_.str.1:                               ## @.str.1
	.asciz	"pcireg"

L_.str.2:                               ## @.str.2
	.asciz	"cfg"

L_.str.3:                               ## @.str.3
	.asciz	"intx"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get intx IRQ %d\n"

	.comm	_nwl_pcie_leg_handler,4,2       ## @nwl_pcie_leg_handler
	.no_dead_strip	_nwl_pcie_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nwl_pcie_parse_dt
_nwl_pcie_parse_dt:                     ; @nwl_pcie_parse_dt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	ldr	x20, [x0, #48]
Lloh0:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19, #40]
	b	LBB0_6
LBB0_2:
	ldr	w8, [x22]
	str	w8, [x19, #32]
	ldr	w1, [x23]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x0, [x19, #24]
	b	LBB0_6
LBB0_4:
	ldr	w8, [x22]
	str	w8, [x19, #16]
	ldr	w1, [x23]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_devm_pci_remap_cfg_resource
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x0, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
	ldr	w8, [x22]
	str	w8, [x19, #4]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_platform_get_irq_byname
	mov	x2, x0
	str	w0, [x19]
	tbnz	w0, #31, LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _nwl_pcie_leg_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _nwl_pcie_leg_handler@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x2
	mov	x2, x19
	bl	_irq_set_chained_handler_and_data
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"breg"

l_.str.1:                               ; @.str.1
	.asciz	"pcireg"

l_.str.2:                               ; @.str.2
	.asciz	"cfg"

l_.str.3:                               ; @.str.3
	.asciz	"intx"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get intx IRQ %d\n"

	.comm	_nwl_pcie_leg_handler,4,2       ; @nwl_pcie_leg_handler
	.no_dead_strip	_nwl_pcie_parse_dt
.subsections_via_symbols
