	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt2800pci_read_eeprom_pci
_rt2800pci_read_eeprom_pci:             ## @rt2800pci_read_eeprom_pci
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_E2PROM_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00mmio_register_read
	movq	%rbx, -16(%rbp)
	movq	_rt2800pci_eepromregister_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	movq	_rt2800pci_eepromregister_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movq	_E2PROM_CSR_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_rt2x00_get_field32
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_PCI_EEPROM_WIDTH_93C66@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_PCI_EEPROM_WIDTH_93C86@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_PCI_EEPROM_WIDTH_93C46@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, -32(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	movq	_EEPROM_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_EEPROM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	sarl	$2, %ecx
	leaq	-64(%rbp), %rdi
	callq	_eeprom_93cx6_multiread
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2PROM_CSR,4,2                 ## @E2PROM_CSR
	.comm	_rt2800pci_eepromregister_read,4,2 ## @rt2800pci_eepromregister_read
	.comm	_rt2800pci_eepromregister_write,4,2 ## @rt2800pci_eepromregister_write
	.comm	_E2PROM_CSR_TYPE,4,2            ## @E2PROM_CSR_TYPE
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ## @PCI_EEPROM_WIDTH_93C46
	.comm	_PCI_EEPROM_WIDTH_93C66,4,2     ## @PCI_EEPROM_WIDTH_93C66
	.comm	_PCI_EEPROM_WIDTH_93C86,4,2     ## @PCI_EEPROM_WIDTH_93C86
	.comm	_EEPROM_BASE,4,2                ## @EEPROM_BASE
	.comm	_EEPROM_SIZE,4,2                ## @EEPROM_SIZE
	.no_dead_strip	_rt2800pci_read_eeprom_pci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt2800pci_read_eeprom_pci
_rt2800pci_read_eeprom_pci:             ; @rt2800pci_read_eeprom_pci
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _E2PROM_CSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2PROM_CSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00mmio_register_read
	str	x19, [sp, #48]
Lloh3:
	adrp	x8, _rt2800pci_eepromregister_read@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rt2800pci_eepromregister_read@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _rt2800pci_eepromregister_write@GOTPAGE
Lloh7:
	ldr	x9, [x9, _rt2800pci_eepromregister_write@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
Lloh9:
	adrp	x8, _E2PROM_CSR_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E2PROM_CSR_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
Lloh12:
	adrp	x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCI_EEPROM_WIDTH_93C46@GOTPAGEOFF]
Lloh14:
	adrp	x9, _PCI_EEPROM_WIDTH_93C66@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_EEPROM_WIDTH_93C66@GOTPAGEOFF]
Lloh16:
	adrp	x10, _PCI_EEPROM_WIDTH_93C86@GOTPAGE
Lloh17:
	ldr	x10, [x10, _PCI_EEPROM_WIDTH_93C86@GOTPAGEOFF]
	cmp	w0, #1
	csel	x9, x9, x10, eq
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh18:
	adrp	x8, _EEPROM_BASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EEPROM_BASE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh21:
	adrp	x8, _EEPROM_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EEPROM_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	asr	w3, w8, #2
	mov	x0, sp
	bl	_eeprom_93cx6_multiread
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E2PROM_CSR,4,2                 ; @E2PROM_CSR
	.comm	_rt2800pci_eepromregister_read,4,2 ; @rt2800pci_eepromregister_read
	.comm	_rt2800pci_eepromregister_write,4,2 ; @rt2800pci_eepromregister_write
	.comm	_E2PROM_CSR_TYPE,4,2            ; @E2PROM_CSR_TYPE
	.comm	_PCI_EEPROM_WIDTH_93C46,4,2     ; @PCI_EEPROM_WIDTH_93C46
	.comm	_PCI_EEPROM_WIDTH_93C66,4,2     ; @PCI_EEPROM_WIDTH_93C66
	.comm	_PCI_EEPROM_WIDTH_93C86,4,2     ; @PCI_EEPROM_WIDTH_93C86
	.comm	_EEPROM_BASE,4,2                ; @EEPROM_BASE
	.comm	_EEPROM_SIZE,4,2                ; @EEPROM_SIZE
	.no_dead_strip	_rt2800pci_read_eeprom_pci
.subsections_via_symbols
