	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pconf_spec_set_ies_smt_range ## -- Begin function mtk_pconf_spec_set_ies_smt_range
	.p2align	4, 0x90
_mtk_pconf_spec_set_ies_smt_range:      ## @mtk_pconf_spec_set_ies_smt_range
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_1
## %bb.4:
	movl	%edx, %edi
	leaq	4(%rsi), %rbx
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	addq	$16, %rbx
	cmpq	%rax, %rdi
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, -4(%rbx)
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%ecx, (%rbx)
	jb	LBB0_7
## %bb.2:
	cmpl	%edx, %eax
	jne	LBB0_3
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_1:
	xorl	%eax, %eax
	cmpl	%edx, %eax
	je	LBB0_8
LBB0_3:
	testl	%r9d, %r9d
	sete	%cl
	movl	%eax, %eax
	movzbl	%r8b, %ebx
	shll	%cl, %ebx
	shlq	$4, %rax
	movzbl	8(%rsi,%rax), %ecx
	addl	%ecx, %ebx
	movl	12(%rsi,%rax), %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_write
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pconf_spec_set_ies_smt_range ; -- Begin function mtk_pconf_spec_set_ies_smt_range
	.p2align	2
_mtk_pconf_spec_set_ies_smt_range:      ; @mtk_pconf_spec_set_ies_smt_range
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w2, LBB0_7
; %bb.1:
	mov	x8, #0
	mov	w9, w2
	add	x10, x1, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-4]
	cmp	w11, w3
	b.hi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	cmp	w11, w3
	b.lo	LBB0_2
; %bb.5:
	cmp	w8, w2
	b.ne	LBB0_8
LBB0_6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	mov	w8, #0
	cmp	w8, w2
	b.eq	LBB0_6
LBB0_8:
	cmp	w5, #0
	cset	w9, eq
	add	x8, x1, w8, uxtw #4
	ldrb	w10, [x8, #8]
	lsl	w9, w4, w9
	add	w20, w9, w10
	ldr	w0, [x8, #12]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_regmap_write
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
