	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pctrl_spec_pull_set_samereg ## -- Begin function mtk_pctrl_spec_pull_set_samereg
	.p2align	4, 0x90
_mtk_pctrl_spec_pull_set_samereg:       ## @mtk_pctrl_spec_pull_set_samereg
	.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
	testl	%edx, %edx
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	16(%rbp), %r14d
	movl	%edx, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %rax
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%rbx,%r15)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$20, %r15
	cmpq	%r15, %rax
	jne	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_6:
	movzbl	4(%rbx,%r15), %eax
	movzbl	%r8b, %ecx
	leal	(%rax,%rcx), %edx
	leal	(%rax,%rcx,2), %r13d
	testl	%r9d, %r9d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	cmovel	%edx, %r13d
	movl	16(%rbx,%r15), %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_regmap_write
	movl	12(%rbx,%r15), %edi
	callq	_BIT
	movl	%eax, %r13d
	movl	8(%rbx,%r15), %edi
	callq	_BIT
	addl	$-128, %r14d
	cmpl	$3, %r14d
	ja	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_13:
	movq	%r12, %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_12:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_regmap_write
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_11:
	movq	%r12, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_regmap_write
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_8:
	movq	%r12, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_9:
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_regmap_write
	movq	%r12, %rdi
	movl	%r14d, %esi
LBB0_10:
	movl	%ebx, %edx
	callq	_regmap_write
	xorl	%eax, %eax
LBB0_5:
	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_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_8
	.end_data_region
                                        ## -- 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_pctrl_spec_pull_set_samereg ; -- Begin function mtk_pctrl_spec_pull_set_samereg
	.p2align	2
_mtk_pctrl_spec_pull_set_samereg:       ; @mtk_pctrl_spec_pull_set_samereg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w2, LBB0_4
; %bb.1:
	mov	x20, x6
	mov	x19, x0
	mov	w8, w2
	add	x25, x1, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x25, #-8]
	cmp	w9, w3
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #20
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_5:
	ldurb	w8, [x25, #-4]
	add	w21, w8, w4
	add	w22, w8, w4, lsl #1
	cmp	w5, #0
	csel	w23, w21, w22, eq
	ldr	w0, [x25, #8]
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_regmap_write
	ldr	w0, [x25, #4]
	bl	_BIT
	mov	x24, x0
	ldr	w0, [x25]
	bl	_BIT
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.6:
	mov	x23, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	mov	x1, x22
LBB0_9:
	mov	x2, x24
	bl	_regmap_write
	mov	x0, x19
	mov	x1, x21
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	x1, x22
LBB0_12:
	mov	x2, x24
	bl	_regmap_write
	mov	x0, x19
	mov	x1, x22
LBB0_13:
	mov	x2, x23
	bl	_regmap_write
	mov	w0, #0
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_8-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_11-LBB0_7)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
