	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x02_efuse_read
_mt76x02_efuse_read:                    ## @mt76x02_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_MT_EFUSE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt76_rr
	movq	_MT_EFUSE_CTRL_AIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MT_EFUSE_CTRL_MODE@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	orl	%edi, %r13d
	notl	%r13d
	andl	%eax, %r13d
	andl	$-16, %ebx
	movl	%ebx, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	%r15d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movq	_MT_EFUSE_CTRL_KICK@GOTPCREL(%rip), %r14
	orl	(%r14), %ebx
	movq	_MT_EFUSE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movq	%rax, %rbx
	callq	_mt76_wr
	movl	(%rbx), %esi
	movl	(%r14), %edx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_mt76_poll_msec
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$2, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_mt76_rr
	movq	_MT_EFUSE_CTRL_AOUT@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_MT_EFUSE_DATA
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	movl	%eax, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
	movl	$1, %edi
	callq	_MT_EFUSE_DATA
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	leaq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le32
	movl	$2, %edi
	callq	_MT_EFUSE_DATA
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	leaq	32(%rbx), %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le32
	movl	$3, %edi
	callq	_MT_EFUSE_DATA
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_mt76_rr
	addq	$48, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EFUSE_CTRL,4,2              ## @MT_EFUSE_CTRL
	.comm	_MT_EFUSE_CTRL_AIN,4,2          ## @MT_EFUSE_CTRL_AIN
	.comm	_MT_EFUSE_CTRL_MODE,4,2         ## @MT_EFUSE_CTRL_MODE
	.comm	_MT_EFUSE_CTRL_KICK,4,2         ## @MT_EFUSE_CTRL_KICK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_MT_EFUSE_CTRL_AOUT,4,2         ## @MT_EFUSE_CTRL_AOUT
	.no_dead_strip	_mt76x02_efuse_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x02_efuse_read
_mt76x02_efuse_read:                    ; @mt76x02_efuse_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MT_EFUSE_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MT_EFUSE_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_mt76_rr
Lloh2:
	adrp	x8, _MT_EFUSE_CTRL_AIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_EFUSE_CTRL_AIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x24, _MT_EFUSE_CTRL_MODE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MT_EFUSE_CTRL_MODE@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w9, w9, w8
	bic	w25, w0, w9
	and	w1, w22, #0xfffffff0
	mov	x0, x8
	bl	_FIELD_PREP
	orr	w22, w25, w0
	ldr	w0, [x24]
	mov	x1, x21
	bl	_FIELD_PREP
	orr	w8, w22, w0
Lloh7:
	adrp	x21, _MT_EFUSE_CTRL_KICK@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MT_EFUSE_CTRL_KICK@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_mt76_wr
	ldr	w1, [x23]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #1000
	bl	_mt76_poll_msec
	cbz	w0, LBB0_3
; %bb.1:
	mov	w0, #2
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x20
	bl	_mt76_rr
Lloh9:
	adrp	x8, _MT_EFUSE_CTRL_AOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EFUSE_CTRL_AOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #16
	bl	_memset
	b	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	bl	_MT_EFUSE_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_mt76_rr
	mov	x1, x19
	bl	_put_unaligned_le32
	mov	w0, #1
	bl	_MT_EFUSE_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #16
	bl	_put_unaligned_le32
	mov	w0, #2
	bl	_MT_EFUSE_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #32
	bl	_put_unaligned_le32
	mov	w0, #3
	bl	_MT_EFUSE_DATA
	mov	x1, x0
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #48
	bl	_put_unaligned_le32
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EFUSE_CTRL,4,2              ; @MT_EFUSE_CTRL
	.comm	_MT_EFUSE_CTRL_AIN,4,2          ; @MT_EFUSE_CTRL_AIN
	.comm	_MT_EFUSE_CTRL_MODE,4,2         ; @MT_EFUSE_CTRL_MODE
	.comm	_MT_EFUSE_CTRL_KICK,4,2         ; @MT_EFUSE_CTRL_KICK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_MT_EFUSE_CTRL_AOUT,4,2         ; @MT_EFUSE_CTRL_AOUT
	.no_dead_strip	_mt76x02_efuse_read
.subsections_via_symbols
