	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76x0_efuse_physical_size_check
_mt76x0_efuse_physical_size_check:      ## @mt76x0_efuse_physical_size_check
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MT_MAP_READS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %eax
	shll	$4, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_MT_EE_USAGE_MAP_START@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	shll	$6, %ebx
	movq	_MT_EE_PHYSICAL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_mt76x02_get_efuse_data
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movq	_MT_EFUSE_USAGE_MAP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_2
## %bb.3:
	movl	(%r12), %r9d
	cmpl	$1, %r8d
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	xorl	%eax, %eax
	xorl	%edi, %edi
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movl	(%r15,%rsi,4), %ecx
	addl	%r9d, %esi
	movl	%ecx, %edx
	orl	%edi, %edx
	cmovel	%esi, %edi
	testl	%ecx, %ecx
	cmovel	%esi, %eax
LBB0_11:
	notl	%eax
	addl	%edi, %eax
	jmp	LBB0_12
LBB0_2:
	movl	$-1, %eax
LBB0_12:
	addl	%eax, %r8d
	xorl	%eax, %eax
	cmpl	$4, %r8d
	jg	LBB0_14
## %bb.13:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	leal	1(%r9), %r10d
	xorl	%esi, %esi
	xorl	%eax, %eax
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	testl	%r12d, %r12d
	cmovel	%edx, %eax
	addq	$2, %rsi
	movl	%edi, %ebx
	cmpq	%rsi, %r11
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r9,%rsi), %edx
	movl	(%r15,%rsi,4), %ecx
	movl	4(%r15,%rsi,4), %r12d
	movl	%ecx, %edi
	orl	%ebx, %edi
	cmovel	%edx, %ebx
	testl	%ecx, %ecx
	cmovel	%edx, %eax
	leal	(%r10,%rsi), %edx
	movl	%r12d, %ecx
	orl	%ebx, %ecx
	movl	%edx, %edi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %edi
	jmp	LBB0_8
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_MAP_READS,4,2               ## @MT_MAP_READS
	.comm	_MT_EE_USAGE_MAP_START,4,2      ## @MT_EE_USAGE_MAP_START
	.comm	_MT_EE_PHYSICAL_READ,4,2        ## @MT_EE_PHYSICAL_READ
	.comm	_MT_EFUSE_USAGE_MAP_SIZE,4,2    ## @MT_EFUSE_USAGE_MAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver does not support default EEPROM\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mt76x0_efuse_physical_size_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76x0_efuse_physical_size_check
_mt76x0_efuse_physical_size_check:      ; @mt76x0_efuse_physical_size_check
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MT_MAP_READS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT_MAP_READS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	w8, w12, #4
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x21, _MT_EE_USAGE_MAP_START@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MT_EE_USAGE_MAP_START@GOTPAGEOFF]
	ldr	w1, [x21]
	lsl	w3, w12, #6
Lloh10:
	adrp	x8, _MT_EE_PHYSICAL_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_EE_PHYSICAL_READ@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x2, x20
	bl	_mt76x02_get_efuse_data
	cbnz	w0, LBB0_9
; %bb.1:
Lloh13:
	adrp	x8, _MT_EFUSE_USAGE_MAP_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MT_EFUSE_USAGE_MAP_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w10, #0
	mov	w9, #0
	ldr	w11, [x21]
	mov	x12, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x20], #4
	orr	w14, w13, w9
	cmp	w14, #0
	csel	w9, w11, w9, eq
	cmp	w13, #0
	csel	w10, w11, w10, eq
	add	w11, w11, #1
	subs	x12, x12, #1
	b.ne	LBB0_3
; %bb.4:
	mvn	w10, w10
	add	w9, w9, w10
	b	LBB0_6
LBB0_5:
	mov	w9, #-1
LBB0_6:
	add	w8, w9, w8
	cmp	w8, #4
	b.gt	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #32
	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
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_MAP_READS,4,2               ; @MT_MAP_READS
	.comm	_MT_EE_USAGE_MAP_START,4,2      ; @MT_EE_USAGE_MAP_START
	.comm	_MT_EE_PHYSICAL_READ,4,2        ; @MT_EE_PHYSICAL_READ
	.comm	_MT_EFUSE_USAGE_MAP_SIZE,4,2    ; @MT_EFUSE_USAGE_MAP_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver does not support default EEPROM\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mt76x0_efuse_physical_size_check
.subsections_via_symbols
