	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_pconf_set_ies_smt
_mtk_pconf_set_ies_smt:                 ## @mtk_pconf_set_ies_smt
	.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, %r12d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.11:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%rcx, %rbx
	callq	_mtk_get_regmap
	movq	(%r13), %rcx
	movl	16(%rcx), %edx
	movl	%eax, %edi
	movl	%r14d, %esi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	movq	_MTK_PINCTRL_NOT_SUPPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PIN_CONFIG_INPUT_ENABLE@GOTPCREL(%rip), %rbx
	cmpl	%ecx, 8(%rax)
	jne	LBB0_4
## %bb.2:
	cmpl	%r12d, (%rbx)
	je	LBB0_3
LBB0_4:
	cmpl	%ecx, 12(%rax)
	jne	LBB0_6
## %bb.5:
	movq	_PIN_CONFIG_INPUT_SCHMITT_ENABLE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_6:
	movl	%r14d, %edi
	andl	$15, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	cmpl	%r12d, (%rbx)
	movl	%eax, %r12d
	setne	%cl
	movq	(%r13), %rax
	movl	8(%rax,%rcx,4), %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mtk_get_port
	addq	%rbx, %rax
	movq	%rax, %rdi
	movq	%r13, %rsi
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	callq	_SET_ADDR
	jmp	LBB0_9
LBB0_8:
	callq	_CLR_ADDR
LBB0_9:
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_mtk_get_regmap
	movl	%eax, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_regmap_write
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_PINCTRL_NOT_SUPPORT,4,2    ## @MTK_PINCTRL_NOT_SUPPORT
	.comm	_PIN_CONFIG_INPUT_ENABLE,4,2    ## @PIN_CONFIG_INPUT_ENABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PIN_CONFIG_INPUT_SCHMITT_ENABLE,4,2 ## @PIN_CONFIG_INPUT_SCHMITT_ENABLE
	.no_dead_strip	_mtk_pconf_set_ies_smt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_pconf_set_ies_smt
_mtk_pconf_set_ies_smt:                 ; @mtk_pconf_set_ies_smt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_get_regmap
	ldr	x8, [x20]
	ldr	w2, [x8, #16]
	mov	x1, x19
	mov	x3, x21
	mov	x4, x23
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	br	x5
LBB0_2:
	ldr	w10, [x8, #8]
Lloh0:
	adrp	x9, _MTK_PINCTRL_NOT_SUPPORT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTK_PINCTRL_NOT_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x24, _PIN_CONFIG_INPUT_ENABLE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PIN_CONFIG_INPUT_ENABLE@GOTPAGEOFF]
	ldr	w11, [x24]
	cmp	w10, w9
	ccmp	w11, w23, #0, eq
	b.eq	LBB0_6
; %bb.3:
	ldr	w8, [x8, #12]
Lloh5:
	adrp	x10, _PIN_CONFIG_INPUT_SCHMITT_ENABLE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PIN_CONFIG_INPUT_SCHMITT_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w10, w23, #0, eq
	b.eq	LBB0_6
; %bb.4:
	and	w0, w19, #0xf
	bl	_BIT
	mov	x22, x0
	ldr	w8, [x24]
	ldr	x9, [x20]
	cmp	w8, w23
	mov	w8, #12
	mov	w10, #8
	csel	x8, x10, x8, eq
	ldr	w23, [x9, x8]
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_get_port
	add	x0, x0, x23
	mov	x1, x20
	cbz	w21, LBB0_7
; %bb.5:
	bl	_SET_ADDR
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	bl	_CLR_ADDR
LBB0_8:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mtk_get_regmap
	mov	x1, x21
	mov	x2, x22
	bl	_regmap_write
	mov	w0, #0
LBB0_9:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_PINCTRL_NOT_SUPPORT,4,2    ; @MTK_PINCTRL_NOT_SUPPORT
	.comm	_PIN_CONFIG_INPUT_ENABLE,4,2    ; @PIN_CONFIG_INPUT_ENABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PIN_CONFIG_INPUT_SCHMITT_ENABLE,4,2 ; @PIN_CONFIG_INPUT_SCHMITT_ENABLE
	.no_dead_strip	_mtk_pconf_set_ies_smt
.subsections_via_symbols
