	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_check_alt_mac_addr_generic ## -- Begin function e1000_check_alt_mac_addr_generic
	.p2align	4, 0x90
_e1000_check_alt_mac_addr_generic:      ## @e1000_check_alt_mac_addr_generic
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_NVM_COMPAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_e1000_read_nvm
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.1:
	movq	(%r15), %rax
	movq	_e1000_82573@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_3:
	movq	_NVM_ALT_MAC_ADDR_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_e1000_read_nvm
	testq	%rax, %rax
	je	LBB0_4
LBB0_13:
	movq	%rax, %rbx
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_e_dbg
LBB0_18:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	-56(%rbp), %esi
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_18
## %bb.5:
	cmpl	$65535, %esi                    ## imm = 0xFFFF
	je	LBB0_18
## %bb.6:
	movq	16(%r15), %rax
	movq	_E1000_FUNC_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_E1000_ALT_MAC_ADDRESS_OFFSET_LAN1@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movl	%esi, -56(%rbp)
LBB0_8:
	cmpl	$0, (%r12)
	jle	LBB0_15
## %bb.9:
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_e1000_read_nvm
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.10:
	movl	$2, %r12d
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %eax
	movzbl	%al, %ecx
	movq	%rcx, -16(%r14,%r12,8)
	sarl	$8, %eax
	cltq
	movq	%rax, -8(%r14,%r12,8)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rsi
	shrq	%rsi
	addl	-56(%rbp), %esi
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %edx
	leaq	-52(%rbp), %rcx
	callq	_e1000_read_nvm
	addq	$2, %r12
	testq	%rax, %rax
	je	LBB0_11
	jmp	LBB0_13
LBB0_15:
	movq	%r14, %rdi
	callq	_is_multicast_ether_addr
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.1(%rip), %rdi
	callq	_e_dbg
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_17:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	*8(%r15)
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_NVM_COMPAT,4,2                 ## @NVM_COMPAT
	.comm	_e1000_82573,8,3                ## @e1000_82573
	.comm	_NVM_ALT_MAC_ADDR_PTR,4,2       ## @NVM_ALT_MAC_ADDR_PTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM Read Error\n"

	.comm	_E1000_FUNC_1,8,3               ## @E1000_FUNC_1
	.comm	_E1000_ALT_MAC_ADDRESS_OFFSET_LAN1,8,3 ## @E1000_ALT_MAC_ADDRESS_OFFSET_LAN1
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring Alternate Mac Address with MC bit set\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_e1000_check_alt_mac_addr_generic ; -- Begin function e1000_check_alt_mac_addr_generic
	.p2align	2
_e1000_check_alt_mac_addr_generic:      ; @e1000_check_alt_mac_addr_generic
	.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
	sub	sp, sp, #16
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh7:
	adrp	x8, _NVM_COMPAT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NVM_COMPAT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	x3, x29, #64
	mov	w2, #1
	bl	_e1000_read_nvm
	mov	x21, x0
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _e1000_82573@GOTPAGE
Lloh11:
	ldr	x9, [x9, _e1000_82573@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	mov	x21, #0
	b	LBB0_5
LBB0_3:
Lloh13:
	adrp	x8, _NVM_ALT_MAC_ADDR_PTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NVM_ALT_MAC_ADDR_PTR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sub	x3, x29, #60
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_nvm
	mov	x21, x0
	cbz	x0, LBB0_7
LBB0_4:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_e_dbg
LBB0_5:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.6:
	mov	x0, x21
	sub	sp, x29, #48
	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
LBB0_7:
	ldur	w1, [x29, #-60]
	cbz	w1, LBB0_5
; %bb.8:
	mov	w8, #65535
	cmp	w1, w8
	b.eq	LBB0_5
; %bb.9:
	ldr	x8, [x19, #16]
Lloh21:
	adrp	x9, _E1000_FUNC_1@GOTPAGE
Lloh22:
	ldr	x9, [x9, _E1000_FUNC_1@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
Lloh24:
	adrp	x8, _E1000_ALT_MAC_ADDRESS_OFFSET_LAN1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _E1000_ALT_MAC_ADDRESS_OFFSET_LAN1@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	add	w1, w1, w8
	stur	w1, [x29, #-60]
LBB0_11:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.12:
	sub	x3, x29, #64
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_nvm
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.13:
	mov	x24, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x29, #-64]
	and	x9, x8, #0xff
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	add	x10, x20, x24, lsl #3
	sbfx	x8, x8, #8, #24
	stp	x9, x8, [x10]
	add	x24, x24, #2
	ldr	w8, [x23]
	cmp	w8, w24
	b.le	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	w8, [x29, #-60]
	lsr	x9, x24, #1
	add	w1, w8, w9
	sub	x3, x29, #64
	mov	x0, x19
	mov	w2, #1
	bl	_e1000_read_nvm
	cbz	x0, LBB0_14
; %bb.16:
	mov	x21, x0
	b	LBB0_4
LBB0_17:
	mov	x0, x20
	bl	_is_multicast_ether_addr
	cbz	x0, LBB0_19
; %bb.18:
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_e_dbg
	b	LBB0_2
LBB0_19:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	blr	x8
	b	LBB0_2
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_NVM_COMPAT,4,2                 ; @NVM_COMPAT
	.comm	_e1000_82573,8,3                ; @e1000_82573
	.comm	_NVM_ALT_MAC_ADDR_PTR,4,2       ; @NVM_ALT_MAC_ADDR_PTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM Read Error\n"

	.comm	_E1000_FUNC_1,8,3               ; @E1000_FUNC_1
	.comm	_E1000_ALT_MAC_ADDRESS_OFFSET_LAN1,8,3 ; @E1000_ALT_MAC_ADDRESS_OFFSET_LAN1
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring Alternate Mac Address with MC bit set\n"

.subsections_via_symbols
