	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_dt_pad_ctrl_data
_get_dt_pad_ctrl_data:                  ## @get_dt_pad_ctrl_data
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_of_device_is_compatible
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	_armada_3700_soc_pad_voltage_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_of_address_to_resource
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_mmc_dev
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edi
	movq	%r13, %rdx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_devm_ioremap_resource
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_mmc_dev
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_14
LBB0_7:
	movq	-56(%rbp), %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	(%r15), %edi
	callq	_mmc_dev
	movq	-56(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%eax, %edi
	jmp	LBB0_13
LBB0_8:
	movq	_SOC_PAD_SD@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_SOC_PAD_FIXED_1_8V@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"marvell,armada-3700-sdhci"

	.comm	_armada_3700_soc_pad_voltage_set,4,2 ## @armada_3700_soc_pad_voltage_set
L_.str.1:                               ## @.str.1
	.asciz	"Unable to find SoC PAD ctrl register address for %pOFn\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"marvell,pad-type"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to determine SoC PHY PAD ctrl type\n"

L_.str.4:                               ## @.str.4
	.asciz	"sd"

	.comm	_SOC_PAD_SD,4,2                 ## @SOC_PAD_SD
L_.str.5:                               ## @.str.5
	.asciz	"fixed-1-8v"

	.comm	_SOC_PAD_FIXED_1_8V,4,2         ## @SOC_PAD_FIXED_1_8V
L_.str.6:                               ## @.str.6
	.asciz	"Unsupported SoC PHY PAD ctrl type %s\n"

	.no_dead_strip	_get_dt_pad_ctrl_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_dt_pad_ctrl_data
_get_dt_pad_ctrl_data:                  ; @get_dt_pad_ctrl_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_device_is_compatible
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _armada_3700_soc_pad_voltage_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _armada_3700_soc_pad_voltage_set@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	add	x2, sp, #16
	mov	x0, x21
	mov	w1, #1
	bl	_of_address_to_resource
	mov	x22, x0
	ldr	w0, [x20]
	bl	_mmc_dev
	cbz	x22, LBB0_5
; %bb.2:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_4:
	mov	w21, #0
	b	LBB0_15
LBB0_5:
	add	x1, sp, #16
	bl	_devm_ioremap_resource
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_15
LBB0_7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_of_property_read_string
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	w0, [x20]
	bl	_mmc_dev
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_9:
	ldr	x21, [sp, #24]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.10:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x20]
	bl	_mmc_dev
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_3
LBB0_12:
	mov	w21, #0
Lloh20:
	adrp	x8, _SOC_PAD_SD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SOC_PAD_SD@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	mov	w21, #0
Lloh22:
	adrp	x8, _SOC_PAD_FIXED_1_8V@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SOC_PAD_FIXED_1_8V@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"marvell,armada-3700-sdhci"

	.comm	_armada_3700_soc_pad_voltage_set,4,2 ; @armada_3700_soc_pad_voltage_set
l_.str.1:                               ; @.str.1
	.asciz	"Unable to find SoC PAD ctrl register address for %pOFn\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"marvell,pad-type"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to determine SoC PHY PAD ctrl type\n"

l_.str.4:                               ; @.str.4
	.asciz	"sd"

	.comm	_SOC_PAD_SD,4,2                 ; @SOC_PAD_SD
l_.str.5:                               ; @.str.5
	.asciz	"fixed-1-8v"

	.comm	_SOC_PAD_FIXED_1_8V,4,2         ; @SOC_PAD_FIXED_1_8V
l_.str.6:                               ; @.str.6
	.asciz	"Unsupported SoC PHY PAD ctrl type %s\n"

	.no_dead_strip	_get_dt_pad_ctrl_data
.subsections_via_symbols
