	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt61pci_eepromregister_read
_rt61pci_eepromregister_read:           ## @rt61pci_eepromregister_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	_E2PROM_CSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rt2x00mmio_register_read
	movl	%eax, %ebx
	movq	_E2PROM_CSR_DATA_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%r14)
	movq	_E2PROM_CSR_DATA_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	_E2PROM_CSR_DATA_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 8(%r14)
	movq	_E2PROM_CSR_CHIP_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_rt2x00_get_field32
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 12(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2PROM_CSR,4,2                 ## @E2PROM_CSR
	.comm	_E2PROM_CSR_DATA_IN,4,2         ## @E2PROM_CSR_DATA_IN
	.comm	_E2PROM_CSR_DATA_OUT,4,2        ## @E2PROM_CSR_DATA_OUT
	.comm	_E2PROM_CSR_DATA_CLOCK,4,2      ## @E2PROM_CSR_DATA_CLOCK
	.comm	_E2PROM_CSR_CHIP_SELECT,4,2     ## @E2PROM_CSR_CHIP_SELECT
	.no_dead_strip	_rt61pci_eepromregister_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt61pci_eepromregister_read
_rt61pci_eepromregister_read:           ; @rt61pci_eepromregister_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _E2PROM_CSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2PROM_CSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rt2x00mmio_register_read
	mov	x20, x0
Lloh3:
	adrp	x8, _E2PROM_CSR_DATA_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E2PROM_CSR_DATA_IN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19]
Lloh6:
	adrp	x8, _E2PROM_CSR_DATA_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E2PROM_CSR_DATA_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _E2PROM_CSR_DATA_CLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E2PROM_CSR_DATA_CLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #8]
Lloh12:
	adrp	x8, _E2PROM_CSR_CHIP_SELECT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _E2PROM_CSR_CHIP_SELECT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rt2x00_get_field32
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_E2PROM_CSR_DATA_IN,4,2         ; @E2PROM_CSR_DATA_IN
	.comm	_E2PROM_CSR_DATA_OUT,4,2        ; @E2PROM_CSR_DATA_OUT
	.comm	_E2PROM_CSR_DATA_CLOCK,4,2      ; @E2PROM_CSR_DATA_CLOCK
	.comm	_E2PROM_CSR_CHIP_SELECT,4,2     ; @E2PROM_CSR_CHIP_SELECT
	.no_dead_strip	_rt61pci_eepromregister_read
.subsections_via_symbols
