	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_bias_get_rev1      ## -- Begin function mtk_pinconf_bias_get_rev1
	.p2align	4, 0x90
_mtk_pinconf_bias_get_rev1:             ## @mtk_pinconf_bias_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_PINCTRL_PIN_REG_PULLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-36(%rbp), %eax
	movq	_MTK_DISABLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	movq	_PINCTRL_PIN_REG_PULLSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	-36(%rbp), %eax
	movq	_MTK_PULLUP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	cmpl	%r15d, %edx
	jne	LBB0_2
## %bb.5:
	movl	$1, (%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINCTRL_PIN_REG_PULLEN,4,2     ## @PINCTRL_PIN_REG_PULLEN
	.comm	_MTK_DISABLE,4,2                ## @MTK_DISABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PINCTRL_PIN_REG_PULLSEL,4,2    ## @PINCTRL_PIN_REG_PULLSEL
	.comm	_MTK_PULLUP,4,2                 ## @MTK_PULLUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_bias_get_rev1      ; -- Begin function mtk_pinconf_bias_get_rev1
	.p2align	2
_mtk_pinconf_bias_get_rev1:             ; @mtk_pinconf_bias_get_rev1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _PINCTRL_PIN_REG_PULLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINCTRL_PIN_REG_PULLEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _MTK_DISABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MTK_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _PINCTRL_PIN_REG_PULLSEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PINCTRL_PIN_REG_PULLSEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _MTK_PULLUP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MTK_PULLUP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w8, eq
	cmp	w8, w20
	b.ne	LBB0_2
; %bb.5:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PINCTRL_PIN_REG_PULLEN,4,2     ; @PINCTRL_PIN_REG_PULLEN
	.comm	_MTK_DISABLE,4,2                ; @MTK_DISABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PINCTRL_PIN_REG_PULLSEL,4,2    ; @PINCTRL_PIN_REG_PULLSEL
	.comm	_MTK_PULLUP,4,2                 ; @MTK_PULLUP
.subsections_via_symbols
