	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_adv_drive_get      ## -- Begin function mtk_pinconf_adv_drive_get
	.p2align	4, 0x90
_mtk_pinconf_adv_drive_get:             ## @mtk_pinconf_adv_drive_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_PINCTRL_PIN_REG_DRV_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-36(%rbp), %rcx
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_PINCTRL_PIN_REG_DRV_E0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_PINCTRL_PIN_REG_DRV_E1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mtk_hw_get_value
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-32(%rbp), %eax
	addl	%eax, %eax
	orl	-36(%rbp), %eax
	movl	-28(%rbp), %ecx
	shll	$2, %ecx
	orl	%eax, %ecx
	andl	$7, %ecx
	movl	%ecx, (%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PINCTRL_PIN_REG_DRV_EN,4,2     ## @PINCTRL_PIN_REG_DRV_EN
	.comm	_PINCTRL_PIN_REG_DRV_E0,4,2     ## @PINCTRL_PIN_REG_DRV_E0
	.comm	_PINCTRL_PIN_REG_DRV_E1,4,2     ## @PINCTRL_PIN_REG_DRV_E1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_pinconf_adv_drive_get      ; -- Begin function mtk_pinconf_adv_drive_get
	.p2align	2
_mtk_pinconf_adv_drive_get:             ; @mtk_pinconf_adv_drive_get
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PINCTRL_PIN_REG_DRV_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DRV_EN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PINCTRL_PIN_REG_DRV_E0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DRV_E0@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _PINCTRL_PIN_REG_DRV_E1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PINCTRL_PIN_REG_DRV_E1@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x0, x21
	mov	x1, x20
	bl	_mtk_hw_get_value
	cbnz	w0, LBB0_4
; %bb.3:
	ldp	w9, w8, [sp, #8]
	orr	w8, w8, w9, lsl #1
	ldr	w9, [sp, #4]
	orr	w8, w8, w9, lsl #2
	and	w8, w8, #0x7
	str	w8, [x19]
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_PINCTRL_PIN_REG_DRV_EN,4,2     ; @PINCTRL_PIN_REG_DRV_EN
	.comm	_PINCTRL_PIN_REG_DRV_E0,4,2     ; @PINCTRL_PIN_REG_DRV_E0
	.comm	_PINCTRL_PIN_REG_DRV_E1,4,2     ; @PINCTRL_PIN_REG_DRV_E1
.subsections_via_symbols
