	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx6_pcie_attach_pd
_imx6_pcie_attach_pd:                   ## @imx6_pcie_attach_pd
	.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	%rdi, %rbx
	callq	_dev_get_drvdata
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	je	LBB0_1
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_pm_domain_attach_by_name
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r15), %rsi
	testq	%rax, %rax
	je	LBB0_2
LBB0_10:
	movq	%rsi, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.3:
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %rax
	movq	_DL_FLAG_PM_RUNTIME@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	movq	_DL_FLAG_RPM_ACTIVE@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_device_link_add
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_pm_domain_attach_by_name
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rsi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:
	movl	(%r13), %edx
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_device_link_add
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcie"

	.comm	_DL_FLAG_STATELESS,4,2          ## @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ## @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_RPM_ACTIVE,4,2         ## @DL_FLAG_RPM_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to add device_link to pcie pd.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"pcie_phy"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to add device_link to pcie_phy pd.\n"

	.no_dead_strip	_imx6_pcie_attach_pd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx6_pcie_attach_pd
_imx6_pcie_attach_pd:                   ; @imx6_pcie_attach_pd
	.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	x19, x0
	bl	_dev_get_drvdata
	ldr	x8, [x19]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_pm_domain_attach_by_name
	str	x0, [x20, #8]
	bl	_IS_ERR
	ldr	x1, [x20, #8]
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x1
	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_5:
	cbz	x1, LBB0_1
; %bb.6:
Lloh2:
	adrp	x21, _DL_FLAG_STATELESS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DL_FLAG_STATELESS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x22, _DL_FLAG_PM_RUNTIME@GOTPAGE
Lloh5:
	ldr	x22, [x22, _DL_FLAG_PM_RUNTIME@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh6:
	adrp	x23, _DL_FLAG_RPM_ACTIVE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DL_FLAG_RPM_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_device_link_add
	cbz	x0, LBB0_10
; %bb.7:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_pm_domain_attach_by_name
	str	x0, [x20]
	bl	_IS_ERR
	ldr	x1, [x20]
	cbnz	x0, LBB0_4
; %bb.8:
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_device_link_add
	cbnz	x0, LBB0_1
; %bb.9:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcie"

	.comm	_DL_FLAG_STATELESS,4,2          ; @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ; @DL_FLAG_PM_RUNTIME
	.comm	_DL_FLAG_RPM_ACTIVE,4,2         ; @DL_FLAG_RPM_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to add device_link to pcie pd.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"pcie_phy"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to add device_link to pcie_phy pd.\n"

	.no_dead_strip	_imx6_pcie_attach_pd
.subsections_via_symbols
