	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_conf_get_drvctrl_data
_uniphier_conf_get_drvctrl_data:        ## @uniphier_conf_get_drvctrl_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	%r9, %r13
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	_pin_desc_get
	movq	%rax, %r14
	movl	(%rax), %edi
	callq	_uniphier_pin_get_drv_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_8
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_uniphier_conf_drv_strengths_fixed8@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_uniphier_conf_drv_strengths_fixed5@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_uniphier_conf_drv_strengths_fixed4@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, (%r13)
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_uniphier_conf_drv_strengths_3bit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_UNIPHIER_PINCTRL_DRV3CTRL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$3, %ebx
	movl	$4, %r15d
	jmp	LBB0_10
LBB0_2:
	movq	_uniphier_conf_drv_strengths_2bit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_UNIPHIER_PINCTRL_DRV2CTRL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$2, %r15d
	movl	$2, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_uniphier_conf_drv_strengths_1bit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_UNIPHIER_PINCTRL_DRVCTRL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	$1, %r15d
	movl	$1, %ebx
LBB0_10:
	movl	(%r14), %edi
	callq	_uniphier_pin_get_drvctrl
	imull	%r15d, %eax
	movl	%eax, %ecx
	shrl	$5, %ecx
	leal	(%r13,%rcx,4), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, (%rdx)
	andl	$31, %eax
	movl	$-1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%eax, (%r12)
	notl	%edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_uniphier_conf_drv_strengths_1bit,8,3 ## @uniphier_conf_drv_strengths_1bit
	.comm	_UNIPHIER_PINCTRL_DRVCTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_DRVCTRL_BASE
	.comm	_uniphier_conf_drv_strengths_2bit,8,3 ## @uniphier_conf_drv_strengths_2bit
	.comm	_UNIPHIER_PINCTRL_DRV2CTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_DRV2CTRL_BASE
	.comm	_uniphier_conf_drv_strengths_3bit,8,3 ## @uniphier_conf_drv_strengths_3bit
	.comm	_UNIPHIER_PINCTRL_DRV3CTRL_BASE,4,2 ## @UNIPHIER_PINCTRL_DRV3CTRL_BASE
	.comm	_uniphier_conf_drv_strengths_fixed4,8,3 ## @uniphier_conf_drv_strengths_fixed4
	.comm	_uniphier_conf_drv_strengths_fixed5,8,3 ## @uniphier_conf_drv_strengths_fixed5
	.comm	_uniphier_conf_drv_strengths_fixed8,8,3 ## @uniphier_conf_drv_strengths_fixed8
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uniphier_conf_get_drvctrl_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_conf_get_drvctrl_data
_uniphier_conf_get_drvctrl_data:        ; @uniphier_conf_get_drvctrl_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	bl	_pin_desc_get
	mov	x22, x0
	ldr	w0, [x0]
	bl	_uniphier_pin_get_drv_type
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	w24, #0
	mov	w25, #0
	mov	w26, #0
Lloh2:
	adrp	x8, _uniphier_conf_drv_strengths_fixed8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_fixed8@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_4:
	mov	w24, #0
	mov	w25, #0
	mov	w26, #0
Lloh7:
	adrp	x8, _uniphier_conf_drv_strengths_fixed5@GOTPAGE
Lloh8:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_fixed5@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	w24, #0
	mov	w25, #0
	mov	w26, #0
Lloh9:
	adrp	x8, _uniphier_conf_drv_strengths_fixed4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_fixed4@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x23]
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _uniphier_conf_drv_strengths_3bit@GOTPAGE
Lloh12:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_3bit@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x23]
Lloh14:
	adrp	x8, _UNIPHIER_PINCTRL_DRV3CTRL_BASE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_DRV3CTRL_BASE@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	w26, #3
	mov	w25, #4
	b	LBB0_10
LBB0_8:
Lloh17:
	adrp	x8, _uniphier_conf_drv_strengths_2bit@GOTPAGE
Lloh18:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_2bit@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x23]
Lloh20:
	adrp	x8, _UNIPHIER_PINCTRL_DRV2CTRL_BASE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_DRV2CTRL_BASE@GOTPAGEOFF]
Lloh22:
	ldr	w24, [x8]
	mov	w25, #2
	mov	w26, #2
	b	LBB0_10
LBB0_9:
Lloh23:
	adrp	x8, _uniphier_conf_drv_strengths_1bit@GOTPAGE
Lloh24:
	ldr	x8, [x8, _uniphier_conf_drv_strengths_1bit@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	str	x8, [x23]
Lloh26:
	adrp	x8, _UNIPHIER_PINCTRL_DRVCTRL_BASE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _UNIPHIER_PINCTRL_DRVCTRL_BASE@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	w25, #1
	mov	w26, #1
LBB0_10:
	ldr	w0, [x22]
	bl	_uniphier_pin_get_drvctrl
	mov	x8, x0
	mov	w0, #0
	mul	w8, w8, w25
	lsr	w9, w8, #3
	and	w9, w9, #0x1ffffffc
	add	w9, w9, w24
	str	w9, [x21]
	and	w8, w8, #0x1f
	str	w8, [x20]
	mov	w8, #-1
	lsl	w8, w8, w26
	mvn	w8, w8
	str	w8, [x19]
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_uniphier_conf_drv_strengths_1bit,8,3 ; @uniphier_conf_drv_strengths_1bit
	.comm	_UNIPHIER_PINCTRL_DRVCTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_DRVCTRL_BASE
	.comm	_uniphier_conf_drv_strengths_2bit,8,3 ; @uniphier_conf_drv_strengths_2bit
	.comm	_UNIPHIER_PINCTRL_DRV2CTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_DRV2CTRL_BASE
	.comm	_uniphier_conf_drv_strengths_3bit,8,3 ; @uniphier_conf_drv_strengths_3bit
	.comm	_UNIPHIER_PINCTRL_DRV3CTRL_BASE,4,2 ; @UNIPHIER_PINCTRL_DRV3CTRL_BASE
	.comm	_uniphier_conf_drv_strengths_fixed4,8,3 ; @uniphier_conf_drv_strengths_fixed4
	.comm	_uniphier_conf_drv_strengths_fixed5,8,3 ; @uniphier_conf_drv_strengths_fixed5
	.comm	_uniphier_conf_drv_strengths_fixed8,8,3 ; @uniphier_conf_drv_strengths_fixed8
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uniphier_conf_get_drvctrl_data
.subsections_via_symbols
