	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pinconf_set
_mtk_pinconf_set:                       ## @mtk_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %ebx
	callq	_pinctrl_dev_get_drvdata
	leal	-128(%r12), %ecx
	cmpl	$13, %ecx
	ja	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movq	(%rax), %rax
	movl	%ebx, %r13d
	shlq	$2, %r13
	addq	48(%rax), %r13
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	$137, %r12d
	jne	LBB0_31
## %bb.3:
	movq	_PINCTRL_PIN_REG_TDSEL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_4:
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.5:
	xorl	%edx, %edx
	cmpl	$139, %r12d
	sete	%dl
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %ecx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_35
	jmp	LBB0_27
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_34
LBB0_7:
	movq	_PINCTRL_PIN_REG_SR@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_8:
	movq	_PINCTRL_PIN_REG_SMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mtk_hw_set_value
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.9:
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_OUTPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_10:
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_OUTPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mtk_hw_set_value
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.11:
	movq	_PINCTRL_PIN_REG_DO@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_12:
	cmpl	$1, %r15d
	movl	$2, %ebx
	sbbl	$0, %ebx
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %ecx
	andl	$1, %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mtk_hw_set_value
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.13:
	movq	_PINCTRL_PIN_REG_SMT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shrl	%ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	jmp	LBB0_33
LBB0_14:
	cmpl	$0, 40(%rax)
	je	LBB0_16
## %bb.15:
	movq	_PINCTRL_PIN_REG_IES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mtk_hw_set_value
LBB0_16:
	movq	_PINCTRL_PIN_REG_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_INPUT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	jmp	LBB0_33
LBB0_18:
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_19
	jmp	LBB0_30
LBB0_21:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	jmp	LBB0_20
LBB0_23:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_35
	jmp	LBB0_34
LBB0_25:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_35
	jmp	LBB0_27
LBB0_28:
	movq	32(%rax), %rax
	testq	%rax, %rax
	je	LBB0_30
LBB0_19:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
LBB0_20:
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_35
LBB0_27:
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_30:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_35
LBB0_31:
	movq	_PINCTRL_PIN_REG_RDSEL@GOTPCREL(%rip), %rax
LBB0_32:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r15d, %ecx
LBB0_33:
	callq	_mtk_hw_set_value
	movl	%eax, %r12d
LBB0_34:
	movl	%r12d, %eax
LBB0_35:
	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_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_25
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_PINCTRL_PIN_REG_SMT,4,2        ## @PINCTRL_PIN_REG_SMT
	.comm	_MTK_DISABLE,4,2                ## @MTK_DISABLE
	.comm	_PINCTRL_PIN_REG_DIR,4,2        ## @PINCTRL_PIN_REG_DIR
	.comm	_MTK_OUTPUT,4,2                 ## @MTK_OUTPUT
	.comm	_PINCTRL_PIN_REG_IES,4,2        ## @PINCTRL_PIN_REG_IES
	.comm	_MTK_ENABLE,4,2                 ## @MTK_ENABLE
	.comm	_MTK_INPUT,4,2                  ## @MTK_INPUT
	.comm	_PINCTRL_PIN_REG_SR,4,2         ## @PINCTRL_PIN_REG_SR
	.comm	_PINCTRL_PIN_REG_DO,4,2         ## @PINCTRL_PIN_REG_DO
	.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_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pinconf_set
_mtk_pinconf_set:                       ; @mtk_pinconf_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_pinctrl_dev_get_drvdata
	sub	w9, w22, #128
	cmp	w9, #13
	b.hi	LBB0_27
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x10, [x8, #48]
	add	x19, x10, w19, 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_TDSEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PINCTRL_PIN_REG_TDSEL@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PINCTRL_PIN_REG_RDSEL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PINCTRL_PIN_REG_RDSEL@GOTPAGEOFF]
	cmp	w22, #137
	csel	x8, x8, x9, eq
	b	LBB0_10
LBB0_3:
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_27
; %bb.4:
	cmp	w22, #139
	cset	w2, eq
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	blr	x8
	b	LBB0_28
LBB0_5:
Lloh6:
	adrp	x8, _PINCTRL_PIN_REG_SR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PINCTRL_PIN_REG_SR@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _PINCTRL_PIN_REG_SMT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PINCTRL_PIN_REG_SMT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MTK_DISABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MTK_DISABLE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_hw_set_value
	cbnz	w0, LBB0_28
; %bb.7:
Lloh14:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _MTK_OUTPUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MTK_OUTPUT@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
Lloh19:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _MTK_OUTPUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MTK_OUTPUT@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_hw_set_value
	cbnz	w0, LBB0_28
; %bb.9:
Lloh25:
	adrp	x8, _PINCTRL_PIN_REG_DO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DO@GOTPAGEOFF]
LBB0_10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x21
	bl	_mtk_hw_set_value
	b	LBB0_28
LBB0_11:
	cmp	w21, #0
	mov	w8, #1
	cinc	w21, w8, ne
Lloh27:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	and	w3, w21, #0x1
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_hw_set_value
	cbnz	w0, LBB0_28
; %bb.12:
Lloh30:
	adrp	x8, _PINCTRL_PIN_REG_SMT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PINCTRL_PIN_REG_SMT@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	lsr	w3, w21, #1
	b	LBB0_17
LBB0_13:
	ldr	w8, [x8, #40]
	cbz	w8, LBB0_15
; %bb.14:
Lloh33:
	adrp	x8, _PINCTRL_PIN_REG_IES@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PINCTRL_PIN_REG_IES@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x8, _MTK_ENABLE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MTK_ENABLE@GOTPAGEOFF]
Lloh38:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_hw_set_value
LBB0_15:
Lloh39:
	adrp	x8, _PINCTRL_PIN_REG_DIR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DIR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x8, _MTK_INPUT@GOTPAGE
Lloh43:
	ldr	x8, [x8, _MTK_INPUT@GOTPAGEOFF]
LBB0_16:
	ldr	w3, [x8]
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_hw_set_value
	b	LBB0_28
LBB0_18:
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_26
	b	LBB0_27
LBB0_19:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	blr	x8
	b	LBB0_28
LBB0_21:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_27
; %bb.22:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	blr	x8
	b	LBB0_28
LBB0_23:
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.24:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_28
LBB0_25:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_27
LBB0_26:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	b	LBB0_28
LBB0_27:
Lloh44:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_23-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_PINCTRL_PIN_REG_SMT,4,2        ; @PINCTRL_PIN_REG_SMT
	.comm	_MTK_DISABLE,4,2                ; @MTK_DISABLE
	.comm	_PINCTRL_PIN_REG_DIR,4,2        ; @PINCTRL_PIN_REG_DIR
	.comm	_MTK_OUTPUT,4,2                 ; @MTK_OUTPUT
	.comm	_PINCTRL_PIN_REG_IES,4,2        ; @PINCTRL_PIN_REG_IES
	.comm	_MTK_ENABLE,4,2                 ; @MTK_ENABLE
	.comm	_MTK_INPUT,4,2                  ; @MTK_INPUT
	.comm	_PINCTRL_PIN_REG_SR,4,2         ; @PINCTRL_PIN_REG_SR
	.comm	_PINCTRL_PIN_REG_DO,4,2         ; @PINCTRL_PIN_REG_DO
	.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_set
.subsections_via_symbols
