	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_share_read_word
_sr_share_read_word:                    ## @sr_share_read_word
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_mutex_lock
	movq	_SR_EPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_EPAR_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	orl	%r14d, %edx
	movq	%r13, %rdi
	callq	_sr_write_reg
	movq	_SR_EPCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_EPCR_ERPRR@GOTPCREL(%rip), %rax
	movl	%r15d, %edx
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	movq	_EPCR_EPOS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	orl	(%rax), %edx
	movq	%r13, %rdi
	callq	_sr_write_reg
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_wait_phy_eeprom_ready
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r12), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_sr_write_reg
	movq	_SR_EPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$2, %edx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_sr_read
	movl	%eax, %ebx
	movl	4(%r13), %edi
	movl	(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r9d
	callq	_netdev_dbg
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_EPAR,4,2                    ## @SR_EPAR
	.comm	_EPAR_PHY_ADR,4,2               ## @EPAR_PHY_ADR
	.comm	_SR_EPCR,4,2                    ## @SR_EPCR
	.comm	_EPCR_EPOS,4,2                  ## @EPCR_EPOS
	.comm	_EPCR_ERPRR,4,2                 ## @EPCR_ERPRR
	.comm	_SR_EPDR,4,2                    ## @SR_EPDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read shared %d 0x%02x returned 0x%04x, %d\n"

	.no_dead_strip	_sr_share_read_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_share_read_word
_sr_share_read_word:                    ; @sr_share_read_word
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SR_EPAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR_EPAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _EPAR_PHY_ADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPAR_PHY_ADR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w20
	mov	x0, x19
	bl	_sr_write_reg
Lloh6:
	adrp	x24, _SR_EPCR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SR_EPCR@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh8:
	adrp	x8, _EPCR_EPOS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPCR_EPOS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _EPCR_ERPRR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EPCR_ERPRR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w8, wzr, w8, eq
	orr	w2, w9, w8
	mov	x0, x19
	bl	_sr_write_reg
	mov	x0, x19
	mov	x1, x21
	bl	_wait_phy_eeprom_ready
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_sr_write_reg
Lloh14:
	adrp	x8, _SR_EPDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SR_EPDR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x22
	bl	_sr_read
	mov	x23, x0
	ldr	w0, [x19, #4]
	ldr	w4, [x22]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	mov	x5, x23
	bl	_netdev_dbg
	b	LBB0_3
LBB0_2:
	mov	x23, x0
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_EPAR,4,2                    ; @SR_EPAR
	.comm	_EPAR_PHY_ADR,4,2               ; @EPAR_PHY_ADR
	.comm	_SR_EPCR,4,2                    ; @SR_EPCR
	.comm	_EPCR_EPOS,4,2                  ; @EPCR_EPOS
	.comm	_EPCR_ERPRR,4,2                 ; @EPCR_ERPRR
	.comm	_SR_EPDR,4,2                    ; @SR_EPDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read shared %d 0x%02x returned 0x%04x, %d\n"

	.no_dead_strip	_sr_share_read_word
.subsections_via_symbols
