	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_iff2rmr
_emac_iff2rmr:                          ## @emac_iff2rmr
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_EMAC_RMR_SP@GOTPCREL(%rip), %rax
	movq	_EMAC_RMR_SFCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_EMAC_RMR_IAE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EMAC_RMR_BAE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_EMAC_FTR_EMAC4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_emac_has_feature
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_EMAC_RMR_BASE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_EMAC4_RMR_BASE@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %ebx
	movl	(%r14), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_EMAC_RMR_PME@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_netdev_mc_count
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_EMAC_XAHT_SLOTS
	cmpq	%rax, %r12
	jle	LBB0_8
LBB0_7:
	movq	_EMAC_RMR_PMME@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %ebx
LBB0_11:
	movq	_EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_emac_has_feature
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EMAC4_RMR_MJS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_EMAC4_RMR_MJS
	orl	%eax, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_EMAC_RMR_MAE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_RMR_SP,4,2                ## @EMAC_RMR_SP
	.comm	_EMAC_RMR_SFCS,4,2              ## @EMAC_RMR_SFCS
	.comm	_EMAC_RMR_IAE,4,2               ## @EMAC_RMR_IAE
	.comm	_EMAC_RMR_BAE,4,2               ## @EMAC_RMR_BAE
	.comm	_EMAC_FTR_EMAC4,4,2             ## @EMAC_FTR_EMAC4
	.comm	_EMAC4_RMR_BASE,4,2             ## @EMAC4_RMR_BASE
	.comm	_EMAC_RMR_BASE,4,2              ## @EMAC_RMR_BASE
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_EMAC_RMR_PME,4,2               ## @EMAC_RMR_PME
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_EMAC_RMR_PMME,4,2              ## @EMAC_RMR_PMME
	.comm	_EMAC_RMR_MAE,4,2               ## @EMAC_RMR_MAE
	.comm	_EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE,4,2 ## @EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE
	.comm	_EMAC4_RMR_MJS_MASK,4,2         ## @EMAC4_RMR_MJS_MASK
	.no_dead_strip	_emac_iff2rmr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_iff2rmr
_emac_iff2rmr:                          ; @emac_iff2rmr
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _EMAC_RMR_SP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EMAC_RMR_SP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _EMAC_RMR_SFCS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EMAC_RMR_SFCS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _EMAC_RMR_IAE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EMAC_RMR_IAE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _EMAC_RMR_BAE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _EMAC_RMR_BAE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	orr	w21, w8, w9
Lloh12:
	adrp	x8, _EMAC_FTR_EMAC4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EMAC_FTR_EMAC4@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_emac_has_feature
Lloh15:
	adrp	x8, _EMAC_RMR_BASE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EMAC_RMR_BASE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _EMAC4_RMR_BASE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EMAC4_RMR_BASE@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w21, w21, w8
	ldr	w8, [x19]
Lloh19:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh22:
	adrp	x8, _EMAC_RMR_PME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EMAC_RMR_PME@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh24:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_netdev_mc_count
	mov	x22, x0
	mov	x0, x20
	bl	_EMAC_XAHT_SLOTS
	cmp	x22, x0
	b.le	LBB0_9
LBB0_4:
Lloh27:
	adrp	x8, _EMAC_RMR_PMME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EMAC_RMR_PMME@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
Lloh29:
	adrp	x8, _EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_emac_has_feature
	cbz	x0, LBB0_8
; %bb.7:
Lloh32:
	adrp	x8, _EMAC4_RMR_MJS_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EMAC4_RMR_MJS_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	bic	w20, w21, w8
	ldr	w0, [x19, #4]
	bl	_EMAC4_RMR_MJS
	orr	w21, w0, w20
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_netdev_mc_empty
	cbnz	w0, LBB0_6
; %bb.10:
Lloh35:
	adrp	x8, _EMAC_RMR_MAE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EMAC_RMR_MAE@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_RMR_SP,4,2                ; @EMAC_RMR_SP
	.comm	_EMAC_RMR_SFCS,4,2              ; @EMAC_RMR_SFCS
	.comm	_EMAC_RMR_IAE,4,2               ; @EMAC_RMR_IAE
	.comm	_EMAC_RMR_BAE,4,2               ; @EMAC_RMR_BAE
	.comm	_EMAC_FTR_EMAC4,4,2             ; @EMAC_FTR_EMAC4
	.comm	_EMAC4_RMR_BASE,4,2             ; @EMAC4_RMR_BASE
	.comm	_EMAC_RMR_BASE,4,2              ; @EMAC_RMR_BASE
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_EMAC_RMR_PME,4,2               ; @EMAC_RMR_PME
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_EMAC_RMR_PMME,4,2              ; @EMAC_RMR_PMME
	.comm	_EMAC_RMR_MAE,4,2               ; @EMAC_RMR_MAE
	.comm	_EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE,4,2 ; @EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE
	.comm	_EMAC4_RMR_MJS_MASK,4,2         ; @EMAC4_RMR_MJS_MASK
	.no_dead_strip	_emac_iff2rmr
.subsections_via_symbols
