	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_get_pull
_rockchip_get_pull:                     ## @rockchip_get_pull
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	movq	8(%r15), %rbx
	movl	(%rbx), %eax
	movq	_RK3066B@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
LBB0_1:
	movq	_PIN_CONFIG_BIAS_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	*8(%rbx)
	movq	-56(%rbp), %rdi
	movl	-44(%rbp), %esi
	leaq	-36(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_9
## %bb.4:
	movl	$159, %ecx
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.5:
	movq	(%r12), %rax
	leal	7(%r14), %edx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %edx
	sarl	$3, %edx
	movb	-40(%rbp), %cl
	movl	-36(%rbp), %esi
	sarl	%cl, %esi
	movslq	%edx, %rcx
	movslq	(%rax,%rcx,4), %rax
	movq	_RK3188_PULL_BITS_PER_PIN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$-1, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%esi, %edx
	movl	%edx, -36(%rbp)
	movq	_rockchip_pull_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-36(%rbp), %ebx
	movl	-40(%rbp), %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_1
## %bb.8:
	movq	_PIN_CONFIG_BIAS_PULL_PIN_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_9:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3066B,4,2                    ## @RK3066B
	.comm	_PIN_CONFIG_BIAS_DISABLE,4,2    ## @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_PIN_DEFAULT,4,2 ## @PIN_CONFIG_BIAS_PULL_PIN_DEFAULT
	.comm	_RK3188_PULL_BITS_PER_PIN,4,2   ## @RK3188_PULL_BITS_PER_PIN
	.comm	_rockchip_pull_list,8,3         ## @rockchip_pull_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported pinctrl type\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_get_pull
_rockchip_get_pull:                     ; @rockchip_get_pull
	.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
	ldr	x21, [x0, #8]
	ldr	x22, [x21, #8]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _RK3066B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RK3066B@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x22, #8]
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	blr	x8
	ldr	x0, [sp, #24]
	ldr	w1, [sp, #20]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x22]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.4:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #159
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	add	w9, w19, #7
	cmp	w19, #0
	csel	w9, w9, w19, lt
	asr	w9, w9, #3
	ldrsw	x8, [x8, w9, sxtw #2]
	ldp	w10, w9, [sp, #12]
	asr	w9, w10, w9
Lloh6:
	adrp	x10, _RK3188_PULL_BITS_PER_PIN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RK3188_PULL_BITS_PER_PIN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #-1
	lsl	w10, w11, w10
	bic	w9, w9, w10
Lloh9:
	adrp	x10, _rockchip_pull_list@GOTPAGE
Lloh10:
	ldr	x10, [x10, _rockchip_pull_list@GOTPAGEOFF]
	str	w9, [sp, #12]
Lloh11:
	ldr	x10, [x10]
	ldr	x8, [x10, x8, lsl #3]
	ldr	w0, [x8, w9, sxtw #2]
	b	LBB0_8
LBB0_6:
	ldp	w19, w0, [sp, #12]
	bl	_BIT
Lloh12:
	adrp	x8, _PIN_CONFIG_BIAS_PULL_PIN_DEFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PIN_CONFIG_BIAS_PULL_PIN_DEFAULT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PIN_CONFIG_BIAS_DISABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIN_CONFIG_BIAS_DISABLE@GOTPAGEOFF]
	tst	w0, w19
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3066B,4,2                    ; @RK3066B
	.comm	_PIN_CONFIG_BIAS_DISABLE,4,2    ; @PIN_CONFIG_BIAS_DISABLE
	.comm	_PIN_CONFIG_BIAS_PULL_PIN_DEFAULT,4,2 ; @PIN_CONFIG_BIAS_PULL_PIN_DEFAULT
	.comm	_RK3188_PULL_BITS_PER_PIN,4,2   ; @RK3188_PULL_BITS_PER_PIN
	.comm	_rockchip_pull_list,8,3         ; @rockchip_pull_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported pinctrl type\n"

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