	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pinconf_get
_mtk_pinconf_get:                       ## @mtk_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r15d
	movl	$1, -36(%rbp)
	leal	-128(%r15), %ecx
	cmpl	$11, %ecx
	ja	LBB0_4
## %bb.1:
	movq	(%r12), %rax
	movl	%ebx, %ebx
	shlq	$2, %rbx
	addq	32(%rax), %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_15:
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.16:
	movl	-40(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	cmpl	$131, %r15d
	je	LBB0_14
LBB0_18:
	testl	%eax, %eax
	jne	LBB0_30
## %bb.19:
	cmpl	$129, %r15d
	je	LBB0_14
	jmp	LBB0_30
LBB0_25:
	cmpl	$136, %r15d
	jne	LBB0_26
## %bb.27:
	movq	_PINCTRL_PIN_REG_TDSEL@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_32:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.33:
	xorl	%edx, %edx
	cmpl	$138, %r15d
	sete	%dl
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_8
LBB0_12:
	movq	_PINCTRL_PIN_REG_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.13:
	cmpl	$0, -40(%rbp)
	jne	LBB0_30
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_20:
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.21:
	movq	_PINCTRL_PIN_REG_SMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.22:
	cmpl	$0, -40(%rbp)
	jne	LBB0_14
## %bb.23:
	cmpl	$0, -44(%rbp)
	jne	LBB0_30
	jmp	LBB0_14
LBB0_24:
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_30
LBB0_6:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	jmp	LBB0_8
LBB0_10:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
LBB0_8:
	callq	*%rax
	jmp	LBB0_9
LBB0_2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	*%rax
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_30
LBB0_4:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_31
LBB0_26:
	movq	_PINCTRL_PIN_REG_RDSEL@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.29:
	movl	-40(%rbp), %eax
	movl	%eax, -36(%rbp)
LBB0_30:
	movl	-36(%rbp), %esi
	movl	%r15d, %edi
	callq	_pinconf_to_config_packed
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_31:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_20
	.long	L0_0_set_15
	.long	L0_0_set_24
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_25
	.long	L0_0_set_25
	.long	L0_0_set_32
	.long	L0_0_set_32
	.end_data_region
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_PINCTRL_PIN_REG_SR,4,2         ## @PINCTRL_PIN_REG_SR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PINCTRL_PIN_REG_DIR,4,2        ## @PINCTRL_PIN_REG_DIR
	.comm	_PINCTRL_PIN_REG_SMT,4,2        ## @PINCTRL_PIN_REG_SMT
	.comm	_PINCTRL_PIN_REG_TDSEL,4,2      ## @PINCTRL_PIN_REG_TDSEL
	.comm	_PINCTRL_PIN_REG_RDSEL,4,2      ## @PINCTRL_PIN_REG_RDSEL
	.no_dead_strip	_mtk_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pinconf_get
_mtk_pinconf_get:                       ; @mtk_pinconf_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	w8, #1
	str	w8, [sp, #4]
	sub	w9, w0, #128
	cmp	w9, #11
	b.hi	LBB0_27
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x10, [x8, #32]
	add	x22, x10, w22, uxtw #2
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh2:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_29
; %bb.3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.4:
	cmp	w20, #131
	b.eq	LBB0_13
LBB0_5:
	cbnz	w8, LBB0_26
; %bb.6:
	cmp	w20, #129
	b.eq	LBB0_13
	b	LBB0_26
LBB0_7:
Lloh5:
	adrp	x8, _PINCTRL_PIN_REG_TDSEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PINCTRL_PIN_REG_TDSEL@GOTPAGEOFF]
Lloh7:
	adrp	x9, _PINCTRL_PIN_REG_RDSEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PINCTRL_PIN_REG_RDSEL@GOTPAGEOFF]
	cmp	w20, #136
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_29
; %bb.8:
	ldr	w8, [sp, #12]
	str	w8, [sp, #4]
	b	LBB0_26
LBB0_9:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_27
; %bb.10:
	cmp	w20, #138
	cset	w2, eq
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x22
	b	LBB0_23
LBB0_11:
Lloh9:
	adrp	x8, _PINCTRL_PIN_REG_SR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PINCTRL_PIN_REG_SR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_29
; %bb.12:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_26
LBB0_13:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_28
LBB0_14:
Lloh14:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_29
; %bb.15:
Lloh17:
	adrp	x8, _PINCTRL_PIN_REG_SMT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PINCTRL_PIN_REG_SMT@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_29
; %bb.16:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_13
; %bb.17:
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_26
	b	LBB0_13
LBB0_18:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_25
	b	LBB0_26
LBB0_19:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.20:
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	b	LBB0_23
LBB0_21:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.22:
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
LBB0_23:
	blr	x8
	cbnz	w0, LBB0_29
	b	LBB0_26
LBB0_24:
	ldr	x8, [x8]
	cbz	x8, LBB0_27
LBB0_25:
	add	x2, sp, #4
	mov	x0, x21
	mov	x1, x22
	blr	x8
	cbnz	w0, LBB0_29
LBB0_26:
	ldr	w1, [sp, #4]
	mov	x0, x20
	bl	_pinconf_to_config_packed
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_29
LBB0_27:
Lloh20:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_29:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_PINCTRL_PIN_REG_SR,4,2         ; @PINCTRL_PIN_REG_SR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PINCTRL_PIN_REG_DIR,4,2        ; @PINCTRL_PIN_REG_DIR
	.comm	_PINCTRL_PIN_REG_SMT,4,2        ; @PINCTRL_PIN_REG_SMT
	.comm	_PINCTRL_PIN_REG_TDSEL,4,2      ; @PINCTRL_PIN_REG_TDSEL
	.comm	_PINCTRL_PIN_REG_RDSEL,4,2      ; @PINCTRL_PIN_REG_RDSEL
	.no_dead_strip	_mtk_pinconf_get
.subsections_via_symbols
