	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_hw_get_value               ## -- Begin function mtk_hw_get_value
	.p2align	4, 0x90
_mtk_hw_get_value:                      ## @mtk_hw_get_value
	.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	%rcx, %r14
	movq	%rdi, %r15
	leaq	-48(%rbp), %rcx
	callq	_mtk_hw_pin_field_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	cmpl	$0, -32(%rbp)
	je	LBB0_2
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_mtk_hw_read_cross_field
	jmp	LBB0_4
LBB0_2:
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	%r15, %rdi
	callq	_mtk_r32
	movb	-48(%rbp), %cl
	sarl	%cl, %eax
	andl	-44(%rbp), %eax
	movl	%eax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_hw_get_value               ; -- Begin function mtk_hw_get_value
	.p2align	2
_mtk_hw_get_value:                      ; @mtk_hw_get_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x21, x0
	add	x3, sp, #8
	bl	_mtk_hw_pin_field_get
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #24]
	cbz	w8, LBB0_3
; %bb.2:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x19
	bl	_mtk_hw_read_cross_field
	b	LBB0_4
LBB0_3:
	ldp	w2, w1, [sp, #16]
	mov	x0, x21
	bl	_mtk_r32
	ldp	w8, w9, [sp, #8]
	asr	w8, w0, w8
	and	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
