	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_share_write_word
_sr_share_write_word:                   ## @sr_share_write_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	%ecx, -36(%rbp)
	callq	_mutex_lock
	movq	_SR_EPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_sr_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_SR_EPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_EPAR_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_4:
	orl	%r15d, %edx
	movq	%r12, %rdi
	callq	_sr_write_reg
	movq	_SR_EPCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_EPCR_WEP@GOTPCREL(%rip), %rcx
	movq	_EPCR_ERPRW@GOTPCREL(%rip), %rax
	movl	%r14d, %edx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	_EPCR_EPOS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_sr_write_reg
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_wait_phy_eeprom_ready
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.7:
	movl	(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_sr_write_reg
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %ebx
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SR_EPDR,4,2                    ## @SR_EPDR
	.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_WEP,4,2                   ## @EPCR_WEP
	.comm	_EPCR_EPOS,4,2                  ## @EPCR_EPOS
	.comm	_EPCR_ERPRW,4,2                 ## @EPCR_ERPRW
	.no_dead_strip	_sr_share_write_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_write_word
_sr_share_write_word:                   ; @sr_share_write_word
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	w3, [sp, #12]
	bl	_mutex_lock
Lloh0:
	adrp	x8, _SR_EPDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SR_EPDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #2
	bl	_sr_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _SR_EPAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SR_EPAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _EPAR_PHY_ADR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPAR_PHY_ADR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w8, wzr, w8, eq
	orr	w2, w8, w21
	mov	x0, x19
	bl	_sr_write_reg
Lloh9:
	adrp	x21, _SR_EPCR@GOTPAGE
Lloh10:
	ldr	x21, [x21, _SR_EPCR@GOTPAGEOFF]
Lloh11:
	adrp	x8, _EPCR_WEP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPCR_WEP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _EPCR_ERPRW@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EPCR_ERPRW@GOTPAGEOFF]
Lloh16:
	adrp	x10, _EPCR_EPOS@GOTPAGE
Lloh17:
	ldr	x10, [x10, _EPCR_EPOS@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	cmp	w20, #0
	csel	w10, wzr, w10, eq
	orr	w8, w8, w10
	orr	w2, w9, w8
	mov	x0, x19
	bl	_sr_write_reg
	mov	x0, x19
	mov	x1, x20
	bl	_wait_phy_eeprom_ready
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_sr_write_reg
	b	LBB0_4
LBB0_3:
	mov	x22, x0
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SR_EPDR,4,2                    ; @SR_EPDR
	.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_WEP,4,2                   ; @EPCR_WEP
	.comm	_EPCR_EPOS,4,2                  ; @EPCR_EPOS
	.comm	_EPCR_ERPRW,4,2                 ; @EPCR_ERPRW
	.no_dead_strip	_sr_share_write_word
.subsections_via_symbols
