	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_pcie_get_resources
_rcar_pcie_get_resources:               ## @rcar_pcie_get_resources
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_phy_optional_get
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movl	16(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%r14), %edi
	leaq	-32(%rbp), %rdx
	xorl	%esi, %esi
	callq	_of_address_to_resource
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_devm_ioremap_resource
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	12(%rbx), %edi
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	8(%rbx), %edi
LBB0_4:
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, (%rbx)
	movl	(%r14), %edi
	movl	$1, %esi
	callq	_irq_of_parse_and_map
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:
	movl	%eax, 4(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_irq_dispose_mapping
LBB0_11:
	negl	%r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pcie"

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

L_.str.2:                               ## @.str.2
	.asciz	"cannot get pcie bus clock\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get platform resources for msi interrupt\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_rcar_pcie_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_pcie_get_resources
_rcar_pcie_get_resources:               ; @rcar_pcie_get_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_phy_optional_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_2:
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	w1, #0
	bl	_of_address_to_resource
	cbnz	w0, LBB0_13
; %bb.3:
	add	x1, sp, #8
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #12]
	bl	_PTR_ERR
	b	LBB0_13
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	b	LBB0_13
LBB0_7:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_10
; %bb.8:
	str	w0, [x19]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_irq_of_parse_and_map
	cbz	w0, LBB0_11
; %bb.9:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_10:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_irq_dispose_mapping
LBB0_12:
	neg	w0, w20
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pcie"

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

l_.str.2:                               ; @.str.2
	.asciz	"cannot get pcie bus clock\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get platform resources for msi interrupt\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_rcar_pcie_get_resources
.subsections_via_symbols
