	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hw_write_cross_field
_mtk_hw_write_cross_field:              ## @mtk_hw_write_cross_field
	.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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_mtk_hw_bits_part
	movl	24(%rbx), %esi
	movq	16(%rbx), %rdx
	movl	(%rbx), %r8d
	movb	4(%rbx), %cl
	movl	%r8d, %eax
	shll	%cl, %eax
	andl	%r15d, %r8d
	shll	%cl, %r8d
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_mtk_rmw
	movl	24(%rbx), %r12d
	movq	8(%rbx), %r13
	addq	16(%rbx), %r13
	movl	-44(%rbp), %edi
	callq	_BIT
                                        ## kill: def $eax killed $eax def $rax
	decl	%eax
	andl	(%rbx), %r15d
	movb	-48(%rbp), %cl
	sarl	%cl, %r15d
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%r15d, %r8d
	callq	_mtk_rmw
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mtk_hw_write_cross_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hw_write_cross_field
_mtk_hw_write_cross_field:              ; @mtk_hw_write_cross_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, sp, #8
	add	x2, sp, #12
	mov	x0, x20
	bl	_mtk_hw_bits_part
	ldr	w1, [x20, #24]
	ldr	x2, [x20, #16]
	ldp	w8, w9, [x20]
	lsl	w3, w8, w9
	and	w8, w8, w19
	lsl	w4, w8, w9
	mov	x0, x21
	bl	_mtk_rmw
	ldr	w22, [x20, #24]
	ldp	x9, x8, [x20, #8]
	add	x23, x9, x8
	ldr	w0, [sp, #8]
	bl	_BIT
	sub	w3, w0, #1
	ldr	w8, [x20]
	and	w8, w8, w19
	ldr	w9, [sp, #12]
	asr	w4, w8, w9
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_mtk_rmw
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mtk_hw_write_cross_field
.subsections_via_symbols
