	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_calc_rwmr
_emac_calc_rwmr:                        ## @emac_calc_rwmr
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	_EMAC_FTR_EMAC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_emac_has_feature
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%al
	setne	%dl
	leal	22(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orb	$6, %al
	movl	%eax, %ecx
	shll	%cl, %ebx
	shll	$6, %edx
	orl	$65408, %edx                    ## imm = 0xFF80
	andl	%edx, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_FTR_EMAC4,4,2             ## @EMAC_FTR_EMAC4
	.no_dead_strip	_emac_calc_rwmr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_calc_rwmr
_emac_calc_rwmr:                        ; @emac_calc_rwmr
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _EMAC_FTR_EMAC4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMAC_FTR_EMAC4@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_emac_has_feature
	cmp	x0, #0
	mov	w8, #22
	cinc	w8, w8, eq
	mov	w9, #6
	cinc	w9, w9, eq
	mov	w10, #65472
	mov	w11, #65408
	csel	w10, w11, w10, eq
	lsl	w8, w20, w8
	lsl	w9, w19, w9
	and	w9, w9, w10
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_FTR_EMAC4,4,2             ; @EMAC_FTR_EMAC4
	.no_dead_strip	_emac_calc_rwmr
.subsections_via_symbols
