	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_reg_write               ## -- Begin function mt753x_reg_write
	.p2align	4, 0x90
_mt753x_reg_write:                      ## @mt753x_reg_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_mutex_lock
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_MT753X_REG_PAGE_ADDR_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_MT753X_REG_PAGE_ADDR_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	$31, %edx
	movl	%eax, %ecx
	callq	*8(%rdi)
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	movq	_MT753X_REG_ADDR_M@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MT753X_REG_ADDR_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movzwl	%r14w, %ecx
	movl	%r15d, %edx
	callq	*8(%rdi)
	movq	(%rbx), %rdi
	movl	8(%rbx), %esi
	sarl	$16, %r14d
	movl	$16, %edx
	movl	%r14d, %ecx
	callq	*8(%rdi)
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT753X_REG_PAGE_ADDR_M,4,2     ## @MT753X_REG_PAGE_ADDR_M
	.comm	_MT753X_REG_PAGE_ADDR_S,4,2     ## @MT753X_REG_PAGE_ADDR_S
	.comm	_MT753X_REG_ADDR_M,4,2          ## @MT753X_REG_ADDR_M
	.comm	_MT753X_REG_ADDR_S,4,2          ## @MT753X_REG_ADDR_S
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt753x_reg_write               ; -- Begin function mt753x_reg_write
	.p2align	2
_mt753x_reg_write:                      ; @mt753x_reg_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_mutex_lock
	ldr	x0, [x21]
	ldr	x8, [x0, #8]
	ldr	w1, [x21, #8]
Lloh0:
	adrp	x9, _MT753X_REG_PAGE_ADDR_M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MT753X_REG_PAGE_ADDR_M@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh3:
	adrp	x10, _MT753X_REG_PAGE_ADDR_S@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MT753X_REG_PAGE_ADDR_S@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w3, w9, w10
	mov	w2, #31
	blr	x8
	ldr	x0, [x21]
	ldr	x8, [x0, #8]
	ldr	w1, [x21, #8]
Lloh6:
	adrp	x9, _MT753X_REG_ADDR_M@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MT753X_REG_ADDR_M@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w20
Lloh9:
	adrp	x10, _MT753X_REG_ADDR_S@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MT753X_REG_ADDR_S@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	asr	w2, w9, w10
	and	w3, w19, #0xffff
	blr	x8
	ldr	x0, [x21]
	ldr	x8, [x0, #8]
	ldr	w1, [x21, #8]
	asr	w3, w19, #16
	mov	w2, #16
	blr	x8
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT753X_REG_PAGE_ADDR_M,4,2     ; @MT753X_REG_PAGE_ADDR_M
	.comm	_MT753X_REG_PAGE_ADDR_S,4,2     ; @MT753X_REG_PAGE_ADDR_S
	.comm	_MT753X_REG_ADDR_M,4,2          ; @MT753X_REG_ADDR_M
	.comm	_MT753X_REG_ADDR_S,4,2          ; @MT753X_REG_ADDR_S
.subsections_via_symbols
