	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_efuse_read
_rt2800_efuse_read:                     ## @rt2800_efuse_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_RT3290@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00_rt
	testq	%rax, %rax
	movq	_EFUSE_DATA3_3290@GOTPCREL(%rip), %rax
	cmoveq	_EFUSE_DATA3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_EFUSE_DATA2_3290@GOTPCREL(%rip), %rax
	cmoveq	_EFUSE_DATA2@GOTPCREL(%rip), %rax
	movq	_EFUSE_DATA1_3290@GOTPCREL(%rip), %rcx
	cmoveq	_EFUSE_DATA1@GOTPCREL(%rip), %rcx
	movq	_EFUSE_DATA0_3290@GOTPCREL(%rip), %rdx
	cmoveq	_EFUSE_DATA0@GOTPCREL(%rip), %rdx
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	(%rdx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_EFUSE_CTRL_3290@GOTPCREL(%rip), %rax
	cmoveq	_EFUSE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_rt2800_register_read_lock
	movl	%eax, -44(%rbp)
	movq	_EFUSE_CTRL_ADDRESS_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_rt2x00_set_field32
	movq	_EFUSE_CTRL_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_rt2x00_set_field32
	movq	_EFUSE_CTRL_KICK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_rt2x00_set_field32
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_rt2800_register_write_lock
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r13, %rcx
	callq	_rt2800_regbusy_read
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_rt2800_register_read_lock
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	movl	%r14d, %edx
	movl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_rt2800_register_read_lock
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	leal	2(%r14), %edx
	movl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_rt2800_register_read_lock
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	leal	4(%r14), %edx
	movl	%eax, (%rcx,%rdx,4)
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_rt2800_register_read_lock
	movl	%eax, -44(%rbp)
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	addl	$6, %r14d
	movl	%eax, (%rcx,%r14,4)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT3290,4,2                     ## @RT3290
	.comm	_EFUSE_CTRL_3290,4,2            ## @EFUSE_CTRL_3290
	.comm	_EFUSE_DATA0_3290,4,2           ## @EFUSE_DATA0_3290
	.comm	_EFUSE_DATA1_3290,4,2           ## @EFUSE_DATA1_3290
	.comm	_EFUSE_DATA2_3290,4,2           ## @EFUSE_DATA2_3290
	.comm	_EFUSE_DATA3_3290,4,2           ## @EFUSE_DATA3_3290
	.comm	_EFUSE_CTRL,4,2                 ## @EFUSE_CTRL
	.comm	_EFUSE_DATA0,4,2                ## @EFUSE_DATA0
	.comm	_EFUSE_DATA1,4,2                ## @EFUSE_DATA1
	.comm	_EFUSE_DATA2,4,2                ## @EFUSE_DATA2
	.comm	_EFUSE_DATA3,4,2                ## @EFUSE_DATA3
	.comm	_EFUSE_CTRL_ADDRESS_IN,4,2      ## @EFUSE_CTRL_ADDRESS_IN
	.comm	_EFUSE_CTRL_MODE,4,2            ## @EFUSE_CTRL_MODE
	.comm	_EFUSE_CTRL_KICK,4,2            ## @EFUSE_CTRL_KICK
	.no_dead_strip	_rt2800_efuse_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_efuse_read
_rt2800_efuse_read:                     ; @rt2800_efuse_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RT3290@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT3290@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00_rt
Lloh3:
	adrp	x8, _EFUSE_DATA3@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFUSE_DATA3@GOTPAGEOFF]
Lloh5:
	adrp	x9, _EFUSE_DATA3_3290@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EFUSE_DATA3_3290@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w24, [x8]
Lloh7:
	adrp	x8, _EFUSE_DATA2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFUSE_DATA2@GOTPAGEOFF]
Lloh9:
	adrp	x9, _EFUSE_DATA2_3290@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EFUSE_DATA2_3290@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w23, [x8]
Lloh11:
	adrp	x8, _EFUSE_DATA1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFUSE_DATA1@GOTPAGEOFF]
Lloh13:
	adrp	x9, _EFUSE_DATA1_3290@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EFUSE_DATA1_3290@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _EFUSE_DATA0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFUSE_DATA0@GOTPAGEOFF]
Lloh17:
	adrp	x9, _EFUSE_DATA0_3290@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EFUSE_DATA0_3290@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _EFUSE_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFUSE_CTRL@GOTPAGEOFF]
Lloh21:
	adrp	x9, _EFUSE_CTRL_3290@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EFUSE_CTRL_3290@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w25, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x25
	bl	_rt2800_register_read_lock
	str	w0, [sp, #12]
Lloh23:
	adrp	x8, _EFUSE_CTRL_ADDRESS_IN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EFUSE_CTRL_ADDRESS_IN@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	x2, x20
	bl	_rt2x00_set_field32
Lloh26:
	adrp	x8, _EFUSE_CTRL_MODE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EFUSE_CTRL_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_rt2x00_set_field32
Lloh29:
	adrp	x26, _EFUSE_CTRL_KICK@GOTPAGE
Lloh30:
	ldr	x26, [x26, _EFUSE_CTRL_KICK@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x0, sp, #12
	mov	w2, #1
	bl	_rt2x00_set_field32
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x25
	bl	_rt2800_register_write_lock
	ldr	w2, [x26]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x25
	bl	_rt2800_regbusy_read
	mov	x0, x19
	mov	x1, x24
	bl	_rt2800_register_read_lock
	str	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8, w20, uxtw #2]
	mov	x0, x19
	mov	x1, x23
	bl	_rt2800_register_read_lock
	str	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	add	w9, w20, #2
	str	w0, [x8, w9, uxtw #2]
	mov	x0, x19
	mov	x1, x22
	bl	_rt2800_register_read_lock
	str	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	add	w9, w20, #4
	str	w0, [x8, w9, uxtw #2]
	mov	x0, x19
	mov	x1, x21
	bl	_rt2800_register_read_lock
	str	w0, [sp, #12]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	add	w9, w20, #6
	str	w0, [x8, w9, uxtw #2]
	mov	x0, x19
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RT3290,4,2                     ; @RT3290
	.comm	_EFUSE_CTRL_3290,4,2            ; @EFUSE_CTRL_3290
	.comm	_EFUSE_DATA0_3290,4,2           ; @EFUSE_DATA0_3290
	.comm	_EFUSE_DATA1_3290,4,2           ; @EFUSE_DATA1_3290
	.comm	_EFUSE_DATA2_3290,4,2           ; @EFUSE_DATA2_3290
	.comm	_EFUSE_DATA3_3290,4,2           ; @EFUSE_DATA3_3290
	.comm	_EFUSE_CTRL,4,2                 ; @EFUSE_CTRL
	.comm	_EFUSE_DATA0,4,2                ; @EFUSE_DATA0
	.comm	_EFUSE_DATA1,4,2                ; @EFUSE_DATA1
	.comm	_EFUSE_DATA2,4,2                ; @EFUSE_DATA2
	.comm	_EFUSE_DATA3,4,2                ; @EFUSE_DATA3
	.comm	_EFUSE_CTRL_ADDRESS_IN,4,2      ; @EFUSE_CTRL_ADDRESS_IN
	.comm	_EFUSE_CTRL_MODE,4,2            ; @EFUSE_CTRL_MODE
	.comm	_EFUSE_CTRL_KICK,4,2            ; @EFUSE_CTRL_KICK
	.no_dead_strip	_rt2800_efuse_read
.subsections_via_symbols
