	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7603_efuse_init
_mt7603_efuse_init:                     ## @mt7603_efuse_init
	.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	%rdi, %rbx
	movq	_MT_EFUSE_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mt7603_reg_map
	movq	%rax, %r14
	movq	_MT7603_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_MT_EFUSE_BASE_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%rbx, %rdi
	callq	_mt76_rr
	movq	_MT_EFUSE_BASE_CTRL_EMPTY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_7:
	movl	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	16(%rbx), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_devm_kzalloc
	movq	%rax, 8(%rbx)
	movl	%r15d, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	16(%r12), %eax
	cmpl	%eax, %r15d
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r12,%r13), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_mt7603_efuse_read
	addq	$16, %r12
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %edx
	jmp	LBB0_7
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	subl	(%rax), %edx
	jmp	LBB0_7
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_EFUSE_BASE,4,2              ## @MT_EFUSE_BASE
	.comm	_MT7603_EEPROM_SIZE,4,2         ## @MT7603_EEPROM_SIZE
	.comm	_MT_EFUSE_BASE_CTRL,8,3         ## @MT_EFUSE_BASE_CTRL
	.comm	_MT_EFUSE_BASE_CTRL_EMPTY,4,2   ## @MT_EFUSE_BASE_CTRL_EMPTY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mt7603_efuse_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7603_efuse_init
_mt7603_efuse_init:                     ; @mt7603_efuse_init
	.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, x0
Lloh0:
	adrp	x8, _MT_EFUSE_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_EFUSE_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mt7603_reg_map
	mov	x20, x0
Lloh3:
	adrp	x8, _MT7603_EEPROM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT7603_EEPROM_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _MT_EFUSE_BASE_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_EFUSE_BASE_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	x0, x19
	bl	_mt76_rr
Lloh9:
	adrp	x8, _MT_EFUSE_BASE_CTRL_EMPTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MT_EFUSE_BASE_CTRL_EMPTY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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
LBB0_3:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_devm_kzalloc
	str	x0, [x19, #8]
	str	w21, [x19]
	cbz	x0, LBB0_7
; %bb.4:
	mov	x22, x0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, #16
	cmp	w21, w8
	b.lt	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x3, x22, x23
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_mt7603_efuse_read
	add	x23, x23, #16
	cbz	w0, LBB0_5
	b	LBB0_2
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_EFUSE_BASE,4,2              ; @MT_EFUSE_BASE
	.comm	_MT7603_EEPROM_SIZE,4,2         ; @MT7603_EEPROM_SIZE
	.comm	_MT_EFUSE_BASE_CTRL,8,3         ; @MT_EFUSE_BASE_CTRL
	.comm	_MT_EFUSE_BASE_CTRL_EMPTY,4,2   ; @MT_EFUSE_BASE_CTRL_EMPTY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mt7603_efuse_init
.subsections_via_symbols
