	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_bias_set_rev1      ## -- Begin function mtk_pinconf_bias_set_rev1
	.p2align	4, 0x90
_mtk_pinconf_bias_set_rev1:             ## @mtk_pinconf_bias_set_rev1
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MTK_PULLUP@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_MTK_PULLDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PINCTRL_PIN_REG_PULLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MTK_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_mtk_hw_set_value
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	testl	%r12d, %r12d
	cmovel	%r13d, %r14d
	movq	_PINCTRL_PIN_REG_PULLSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtk_hw_set_value               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_PULLUP,4,2                 ## @MTK_PULLUP
	.comm	_MTK_PULLDOWN,4,2               ## @MTK_PULLDOWN
	.comm	_PINCTRL_PIN_REG_PULLEN,4,2     ## @PINCTRL_PIN_REG_PULLEN
	.comm	_MTK_ENABLE,4,2                 ## @MTK_ENABLE
	.comm	_PINCTRL_PIN_REG_PULLSEL,4,2    ## @PINCTRL_PIN_REG_PULLSEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_bias_set_rev1      ; -- Begin function mtk_pinconf_bias_set_rev1
	.p2align	2
_mtk_pinconf_bias_set_rev1:             ; @mtk_pinconf_bias_set_rev1
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MTK_PULLUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_PULLUP@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _MTK_PULLDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_PULLDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _PINCTRL_PIN_REG_PULLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PINCTRL_PIN_REG_PULLEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _MTK_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MTK_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_mtk_hw_set_value
	cbz	w0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x8, _PINCTRL_PIN_REG_PULLSEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PINCTRL_PIN_REG_PULLSEL@GOTPAGEOFF]
	cmp	w20, #0
	csel	w3, w23, w22, eq
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mtk_hw_set_value
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_PULLUP,4,2                 ; @MTK_PULLUP
	.comm	_MTK_PULLDOWN,4,2               ; @MTK_PULLDOWN
	.comm	_PINCTRL_PIN_REG_PULLEN,4,2     ; @PINCTRL_PIN_REG_PULLEN
	.comm	_MTK_ENABLE,4,2                 ; @MTK_ENABLE
	.comm	_PINCTRL_PIN_REG_PULLSEL,4,2    ; @PINCTRL_PIN_REG_PULLSEL
.subsections_via_symbols
