	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pinconf_set
_rockchip_pinconf_set:                  ## @rockchip_pinconf_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_pin_to_bank
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	addq	$4, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rockchip_set_schmitt
	testl	%eax, %eax
	jns	LBB0_19
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movq	(%r12,%r14,8), %rdi
	callq	_pinconf_to_config_argument
	movl	%eax, %r13d
	leal	-128(%r15), %eax
	cmpl	$7, %eax
	ja	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_rockchip_pinconf_pull_valid
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	jmp	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	subl	(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_rockchip_gpio_set
	movl	%r15d, %esi
	subl	(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	__rockchip_pmx_gpio_set_direction
	jmp	LBB0_6
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_8
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	callq	_rockchip_set_drive_perpin
	testl	%eax, %eax
	jns	LBB0_19
	jmp	LBB0_21
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	$134, %edx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_rockchip_set_pull
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_21
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_20:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_8:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$40, %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_13, LBB0_13-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_16
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_rockchip_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_pinconf_set
_rockchip_pinconf_set:                  ; @rockchip_pinconf_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x19, x2
	mov	x20, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	mov	x1, x20
	bl	_pin_to_bank
	cbz	w24, LBB0_15
; %bb.1:
	mov	x22, x0
	add	x23, x0, #4
	mov	w26, w24
Lloh0:
	adrp	x27, lJTI0_0@PAGE
Lloh1:
	add	x27, x27, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x23
	mov	x2, x24
	bl	_rockchip_gpio_set
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x23
	mov	w2, #0
	bl	__rockchip_pmx_gpio_set_direction
	cbnz	w0, LBB0_19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x19, x19, #8
	subs	x26, x26, #1
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x25, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	sub	w8, w25, #128
	cmp	w8, #7
	b.hi	LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	adr	x9, LBB0_2
	ldrb	w10, [x27, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x21]
	mov	x1, x25
	bl	_rockchip_pinconf_pull_valid
	cbz	w0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w24, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x22
	mov	x2, x25
	b	LBB0_14
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x22
	mov	x2, x24
	bl	_rockchip_set_schmitt
	tbz	w0, #31, LBB0_3
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x22
	mov	x2, x24
	bl	_rockchip_set_drive_perpin
	tbz	w0, #31, LBB0_3
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	sub	w1, w20, w8
	mov	x0, x22
	mov	w2, #134
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_rockchip_set_pull
	cbz	w0, LBB0_3
	b	LBB0_19
LBB0_15:
	mov	w0, #0
	b	LBB0_19
LBB0_16:
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_rockchip_pinconf_set
.subsections_via_symbols
