	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_efuse_read
_mt7603_efuse_read:                     ## @mt7603_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
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movq	_MT_EFUSE_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	addl	%r13d, %esi
	callq	_mt76_rr
	movq	_MT_EFUSE_CTRL_AIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_MT_EFUSE_CTRL_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	%edi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	andl	$-16, %r12d
	movl	%r12d, %esi
	callq	_FIELD_PREP
	orl	%eax, %ebx
	movq	_MT_EFUSE_CTRL_KICK@GOTPCREL(%rip), %r12
	orl	(%r12), %ebx
	movl	(%r14), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mt76_wr
	movl	(%r14), %esi
	addl	%r13d, %esi
	movl	(%r12), %edx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$1000, %r8d                     ## imm = 0x3E8
	callq	_mt76_poll
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$2, %edi
	callq	_udelay
	movl	(%r14), %esi
	addl	%r13d, %esi
	movq	%r15, %rdi
	callq	_mt76_rr
	movq	_MT_EFUSE_CTRL_AOUT@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_MT_EFUSE_CTRL_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %esi
	movl	$16, %edx
	callq	_memset
	xorl	%r12d, %r12d
	jmp	LBB0_6
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_MT_EFUSE_RDATA
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %esi
	movq	%r15, %rdi
	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_RDATA
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %esi
	movq	%r15, %rdi
	callq	_mt76_rr
	leaq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le32
	movl	$2, %edi
	callq	_MT_EFUSE_RDATA
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r13), %esi
	movq	%r15, %rdi
	callq	_mt76_rr
	leaq	32(%rbx), %rsi
	movl	%eax, %edi
	callq	_put_unaligned_le32
	movl	$3, %edi
	callq	_MT_EFUSE_RDATA
	addl	%eax, %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_mt76_rr
	addq	$48, %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
LBB0_6:
	movl	%r12d, %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
	.comm	_MT_EFUSE_CTRL_VALID,4,2        ## @MT_EFUSE_CTRL_VALID
	.no_dead_strip	_mt7603_efuse_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_efuse_read
_mt7603_efuse_read:                     ; @mt7603_efuse_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MT_EFUSE_CTRL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MT_EFUSE_CTRL@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w1, w8, w1
	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	x9, _MT_EFUSE_CTRL_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MT_EFUSE_CTRL_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w9, w9, w8
	bic	w24, w0, w9
	and	w1, w22, #0xfffffff0
	mov	x0, x8
	bl	_FIELD_PREP
	orr	w8, w24, w0
Lloh8:
	adrp	x22, _MT_EFUSE_CTRL_KICK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _MT_EFUSE_CTRL_KICK@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w8, w9
	ldr	w8, [x23]
	add	w1, w8, w21
	mov	x0, x20
	bl	_mt76_wr
	ldr	w8, [x23]
	add	w1, w8, w21
	ldr	w2, [x22]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #1000
	bl	_mt76_poll
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #2
	bl	_udelay
	ldr	w8, [x23]
	add	w1, w8, w21
	mov	x0, x20
	bl	_mt76_rr
Lloh10:
	adrp	x8, _MT_EFUSE_CTRL_AOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_EFUSE_CTRL_AOUT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.eq	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _MT_EFUSE_CTRL_VALID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT_EFUSE_CTRL_VALID@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #16
	bl	_memset
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	bl	_MT_EFUSE_RDATA
	add	w1, w0, w21
	mov	x0, x20
	bl	_mt76_rr
	mov	x1, x19
	bl	_put_unaligned_le32
	mov	w0, #1
	bl	_MT_EFUSE_RDATA
	add	w1, w0, w21
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #16
	bl	_put_unaligned_le32
	mov	w0, #2
	bl	_MT_EFUSE_RDATA
	add	w1, w0, w21
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #32
	bl	_put_unaligned_le32
	mov	w0, #3
	bl	_MT_EFUSE_RDATA
	add	w1, w0, w21
	mov	x0, x20
	bl	_mt76_rr
	add	x1, x19, #48
	bl	_put_unaligned_le32
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.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
	.comm	_MT_EFUSE_CTRL_VALID,4,2        ; @MT_EFUSE_CTRL_VALID
	.no_dead_strip	_mt7603_efuse_read
.subsections_via_symbols
