	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800_eeprom_word_index
_rt2800_eeprom_word_index:              ## @rt2800_eeprom_word_index
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_EEPROM_WORD_COUNT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%esi, (%rax)
	setbe	%bl
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_WARN_ONCE
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_RT3593@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_RT3883@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rt2x00_rt
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_rt2800_eeprom_map@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_rt2800_eeprom_map_ext@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	_EEPROM_CHIP_ID@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	movl	%r15d, %ecx
	movl	(%rax,%rcx,4), %ebx
	setne	%al
	testl	%ebx, %ebx
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %r12d
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_WARN_ONCE
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_WORD_COUNT,4,2          ## @EEPROM_WORD_COUNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: invalid EEPROM word %d\n"

	.comm	_RT3593,4,2                     ## @RT3593
	.comm	_RT3883,4,2                     ## @RT3883
	.comm	_rt2800_eeprom_map_ext,8,3      ## @rt2800_eeprom_map_ext
	.comm	_rt2800_eeprom_map,8,3          ## @rt2800_eeprom_map
	.comm	_EEPROM_CHIP_ID,4,2             ## @EEPROM_CHIP_ID
L_.str.1:                               ## @.str.1
	.asciz	"%s: invalid access of EEPROM word %d\n"

	.no_dead_strip	_rt2800_eeprom_word_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800_eeprom_word_index
_rt2800_eeprom_word_index:              ; @rt2800_eeprom_word_index
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _EEPROM_WORD_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_WORD_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w21, ls
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x19
	bl	_WARN_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _RT3593@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RT3593@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_rt
Lloh8:
	adrp	x21, _rt2800_eeprom_map_ext@GOTPAGE
Lloh9:
	ldr	x21, [x21, _rt2800_eeprom_map_ext@GOTPAGEOFF]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _RT3883@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RT3883@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_rt
Lloh13:
	adrp	x8, _rt2800_eeprom_map@GOTPAGE
Lloh14:
	ldr	x8, [x8, _rt2800_eeprom_map@GOTPAGEOFF]
	cmp	x0, #0
	csel	x21, x8, x21, eq
LBB0_4:
	ldr	x8, [x21]
	ldr	w21, [x8, w19, uxtw #2]
Lloh15:
	adrp	x8, _EEPROM_CHIP_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EEPROM_CHIP_ID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w19
	ccmp	w21, #0, #0, ne
	cset	w22, eq
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x3, x19
	bl	_WARN_ONCE
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_WORD_COUNT,4,2          ; @EEPROM_WORD_COUNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: invalid EEPROM word %d\n"

	.comm	_RT3593,4,2                     ; @RT3593
	.comm	_RT3883,4,2                     ; @RT3883
	.comm	_rt2800_eeprom_map_ext,8,3      ; @rt2800_eeprom_map_ext
	.comm	_rt2800_eeprom_map,8,3          ; @rt2800_eeprom_map
	.comm	_EEPROM_CHIP_ID,4,2             ; @EEPROM_CHIP_ID
l_.str.1:                               ; @.str.1
	.asciz	"%s: invalid access of EEPROM word %d\n"

	.no_dead_strip	_rt2800_eeprom_word_index
.subsections_via_symbols
