	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_pinconf_get
_rockchip_pinconf_get:                  ## @rockchip_pinconf_get
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_pin_to_bank
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	leal	-128(%r15), %eax
	cmpl	$7, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	(%rbx), %rdi
	movl	%r15d, %esi
	callq	_rockchip_pinconf_pull_valid
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	subl	(%r12), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rockchip_get_pull
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	%r15d, %ecx
	je	LBB0_11
	jmp	LBB0_3
LBB0_8:
	movl	%r13d, %esi
	subl	(%r12), %esi
	movq	%r12, %rdi
	callq	_rockchip_get_mux
	movq	_RK_FUNC_GPIO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.9:
	movq	%r12, %rdi
	addq	$4, %rdi
	subl	(%r12), %r13d
	movl	%r13d, %esi
	callq	_rockchip_gpio_get
	testl	%eax, %eax
	js	LBB0_12
## %bb.10:
	setne	%al
	movzbl	%al, %eax
	jmp	LBB0_11
LBB0_16:
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.17:
	subl	(%r12), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rockchip_get_schmitt
	jmp	LBB0_15
LBB0_13:
	movq	(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.14:
	subl	(%r12), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rockchip_get_drive_perpin
LBB0_15:
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_12
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	subl	(%r12), %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_rockchip_get_pull
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$134, %ecx
	jne	LBB0_3
LBB0_11:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %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_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_RK_FUNC_GPIO,4,2               ## @RK_FUNC_GPIO
	.no_dead_strip	_rockchip_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_pinconf_get
_rockchip_pinconf_get:                  ; @rockchip_pinconf_get
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	mov	x1, x21
	bl	_pin_to_bank
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	sub	w8, w0, #128
	cmp	w8, #7
	b.hi	LBB0_13
; %bb.1:
	mov	x20, x0
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:
	ldr	x0, [x23]
	mov	x1, x20
	bl	_rockchip_pinconf_pull_valid
	cbz	w0, LBB0_13
; %bb.3:
	ldr	w8, [x22]
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_get_pull
	cmp	w0, w20
	b.ne	LBB0_17
; %bb.4:
	mov	w1, #1
	b	LBB0_16
LBB0_5:
	ldr	w8, [x22]
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_get_mux
Lloh2:
	adrp	x8, _RK_FUNC_GPIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RK_FUNC_GPIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.6:
	ldr	w8, [x22], #4
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_gpio_get
	mov	x1, x0
	tbnz	w0, #31, LBB0_19
; %bb.7:
	cmp	w1, #0
	cset	w1, ne
	b	LBB0_16
LBB0_8:
	ldr	x8, [x23]
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.9:
	ldr	w8, [x22]
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_get_schmitt
	b	LBB0_12
LBB0_10:
	ldr	x8, [x23]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_13
; %bb.11:
	ldr	w8, [x22]
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_get_drive_perpin
LBB0_12:
	mov	x1, x0
	tbz	w0, #31, LBB0_16
	b	LBB0_19
LBB0_13:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
	ldr	w8, [x22]
	sub	w1, w21, w8
	mov	x0, x22
	bl	_rockchip_get_pull
	cmp	w0, #134
	b.ne	LBB0_17
; %bb.15:
	mov	w1, #0
LBB0_16:
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	w1, #0
	str	x0, [x19]
	b	LBB0_19
LBB0_17:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_19:
	mov	x0, x1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_RK_FUNC_GPIO,4,2               ; @RK_FUNC_GPIO
	.no_dead_strip	_rockchip_pinconf_get
.subsections_via_symbols
