	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_bias_get           ## -- Begin function mtk_pinconf_bias_get
	.p2align	4, 0x90
_mtk_pinconf_bias_get:                  ## @mtk_pinconf_bias_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rcx, %rbx
	testl	%edx, %edx
	jne	LBB0_1
## %bb.2:
	movq	_PINCTRL_PIN_REG_PD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PINCTRL_PIN_REG_PU@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, -12(%rbp)
	je	LBB0_5
## %bb.6:
	movl	$1, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINCTRL_PIN_REG_PU,4,2         ## @PINCTRL_PIN_REG_PU
	.comm	_PINCTRL_PIN_REG_PD,4,2         ## @PINCTRL_PIN_REG_PD
	.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_pinconf_bias_get           ; -- Begin function mtk_pinconf_bias_get
	.p2align	2
_mtk_pinconf_bias_get:                  ; @mtk_pinconf_bias_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x3
Lloh0:
	adrp	x8, _PINCTRL_PIN_REG_PU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINCTRL_PIN_REG_PU@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PINCTRL_PIN_REG_PD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PINCTRL_PIN_REG_PD@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PINCTRL_PIN_REG_PU,4,2         ; @PINCTRL_PIN_REG_PU
	.comm	_PINCTRL_PIN_REG_PD,4,2         ; @PINCTRL_PIN_REG_PD
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
