	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_conf_pin_drive_set
_uniphier_conf_pin_drive_set:           ## @uniphier_conf_pin_drive_set
	.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
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_pin_desc_get
	movq	%rax, %r12
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_uniphier_conf_get_drvctrl_data
	testl	%eax, %eax
	je	LBB0_1
## %bb.10:
	movl	%eax, %r13d
	movl	(%r14), %edi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movl	-44(%rbp), %edx
	xorl	%eax, %eax
	movq	-64(%rbp), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	cmpl	%ebx, (%rcx,%rsi,4)
	ja	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	cmpl	%edx, %eax
	jbe	LBB0_2
	jmp	LBB0_4
LBB0_6:
	testl	%eax, %eax
	je	LBB0_7
LBB0_4:
	testl	%edx, %edx
	je	LBB0_5
## %bb.8:
	decl	%eax
	movl	(%r15), %edi
	movb	-48(%rbp), %cl
	shll	%cl, %edx
	movl	-52(%rbp), %esi
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	movl	%eax, %r13d
	jmp	LBB0_9
LBB0_5:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movl	(%r14), %edi
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %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	"cannot set drive strength for pin %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"unsupported drive strength %u mA for pin %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uniphier_conf_pin_drive_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_conf_pin_drive_set
_uniphier_conf_pin_drive_set:           ; @uniphier_conf_pin_drive_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x23, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	bl	_pin_desc_get
	mov	x22, x0
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x23
	bl	_uniphier_conf_get_drvctrl_data
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	w0, [x20]
	ldr	w2, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_2:
	mov	w9, #0
	ldr	w8, [sp, #20]
	ldr	x10, [sp, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10, w9, uxtw #2]
	cmp	w11, w19
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w9, #1
	cmp	w9, w8
	b.ls	LBB0_3
	b	LBB0_6
LBB0_5:
	cbz	w9, LBB0_9
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
	sub	w9, w9, #1
	ldr	w0, [x21]
	ldp	w10, w1, [sp, #24]
	lsl	w2, w8, w10
	lsl	w3, w9, w10
	bl	_regmap_update_bits
	mov	x23, x0
	b	LBB0_10
LBB0_8:
	mov	w23, #0
	b	LBB0_10
LBB0_9:
	ldr	w0, [x20]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set drive strength for pin %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"unsupported drive strength %u mA for pin %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uniphier_conf_pin_drive_set
.subsections_via_symbols
