	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_mode_config           ## -- Begin function emac_mac_mode_config
	.p2align	4, 0x90
_emac_mac_mode_config:                  ## @emac_mac_mode_config
	.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, %r15
	movq	8(%rdi), %r12
	movq	_EMAC_MAC_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_VLAN_STRIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PROM_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%ebx, %ecx
	orl	%esi, %ecx
	movq	_MULTI_ALL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %ecx
	movq	_MAC_LP_EN@GOTPCREL(%rip), %rdi
	orl	(%rdi), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	cmovnel	%esi, %eax
	movl	4(%r12), %edi
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edi, %esi
	cmovnel	%ebx, %esi
	orl	%eax, %esi
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	cmovnel	%edx, %edi
	orl	%esi, %edi
	orl	%ecx, %edi
	movq	(%r14), %rsi
	addq	(%r15), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_MAC_CTRL,8,3              ## @EMAC_MAC_CTRL
	.comm	_VLAN_STRIP,4,2                 ## @VLAN_STRIP
	.comm	_PROM_MODE,4,2                  ## @PROM_MODE
	.comm	_MULTI_ALL,4,2                  ## @MULTI_ALL
	.comm	_MAC_LP_EN,4,2                  ## @MAC_LP_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_emac_mac_mode_config           ; -- Begin function emac_mac_mode_config
	.p2align	2
_emac_mac_mode_config:                  ; @emac_mac_mode_config
	.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
	ldp	x8, x20, [x0]
Lloh0:
	adrp	x21, _EMAC_MAC_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EMAC_MAC_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _VLAN_STRIP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VLAN_STRIP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PROM_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PROM_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
Lloh8:
	adrp	x11, _MULTI_ALL@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MULTI_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	orr	w10, w10, w11
Lloh11:
	adrp	x12, _MAC_LP_EN@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MAC_LP_EN@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	orr	w10, w10, w12
Lloh14:
	adrp	x12, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh15:
	ldr	x12, [x12, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
	bic	w10, w0, w10
Lloh16:
	ldr	w12, [x12]
	ldp	w13, w14, [x20]
	tst	w12, w13
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
Lloh17:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w14
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w14
	csel	w9, wzr, w11, eq
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_MAC_CTRL,8,3              ; @EMAC_MAC_CTRL
	.comm	_VLAN_STRIP,4,2                 ; @VLAN_STRIP
	.comm	_PROM_MODE,4,2                  ; @PROM_MODE
	.comm	_MULTI_ALL,4,2                  ; @MULTI_ALL
	.comm	_MAC_LP_EN,4,2                  ; @MAC_LP_EN
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
.subsections_via_symbols
