	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_get_san_mac_addr_generic ## -- Begin function ixgbe_get_san_mac_addr_generic
	.p2align	4, 0x90
_ixgbe_get_san_mac_addr_generic:        ## @ixgbe_get_san_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-28(%rbp), %rsi
	callq	_ixgbe_get_san_mac_addr_offset
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	leaq	L_.memset_pattern(%rip), %rsi
	movl	$24, %edx
	movq	%r14, %rdi
	callq	_memset_pattern16
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	je	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	callq	*16(%r15)
	cmpq	$0, 8(%r15)
	movl	-28(%rbp), %esi
	jne	LBB0_4
## %bb.5:
	movq	_IXGBE_SAN_MAC_ADDR_PORT0_OFFSET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_IXGBE_SAN_MAC_ADDR_PORT1_OFFSET@GOTPCREL(%rip), %rax
LBB0_6:
	addl	(%rax), %esi
	movl	%esi, -28(%rbp)
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
	sarl	$8, %eax
	movl	%eax, 4(%r14)
	movl	-28(%rbp), %esi
	incl	%esi
	movl	%esi, -28(%rbp)
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:
	movl	-32(%rbp), %eax
	movl	%eax, 8(%r14)
	sarl	$8, %eax
	movl	%eax, 12(%r14)
	movl	-28(%rbp), %esi
	incl	%esi
	movl	%esi, -28(%rbp)
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	*(%r15)
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_hw_err
	jmp	LBB0_8
LBB0_11:
	movl	-32(%rbp), %eax
	movl	%eax, 16(%r14)
	sarl	$8, %eax
	movl	%eax, 20(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IXGBE_SAN_MAC_ADDR_PORT1_OFFSET,8,3 ## @IXGBE_SAN_MAC_ADDR_PORT1_OFFSET
	.comm	_IXGBE_SAN_MAC_ADDR_PORT0_OFFSET,8,3 ## @IXGBE_SAN_MAC_ADDR_PORT0_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom read at offset %d failed\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ixgbe_get_san_mac_addr_generic ; -- Begin function ixgbe_get_san_mac_addr_generic
	.p2align	2
_ixgbe_get_san_mac_addr_generic:        ; @ixgbe_get_san_mac_addr_generic
	.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	x19, x1
	mov	x20, x0
	add	x1, sp, #8
	bl	_ixgbe_get_san_mac_addr_offset
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #0
	mov	w9, #65535
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x21, #0
	b	LBB0_7
LBB0_3:
	ldr	x8, [x20, #16]
	mov	x0, x20
	blr	x8
Lloh0:
	adrp	x8, _IXGBE_SAN_MAC_ADDR_PORT0_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IXGBE_SAN_MAC_ADDR_PORT0_OFFSET@GOTPAGEOFF]
	ldr	w9, [sp, #8]
Lloh2:
	adrp	x10, _IXGBE_SAN_MAC_ADDR_PORT1_OFFSET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IXGBE_SAN_MAC_ADDR_PORT1_OFFSET@GOTPAGEOFF]
	ldp	x12, x11, [x20]
	cmp	x11, #0
	csel	x8, x8, x10, eq
	ldr	w8, [x8]
	add	w1, w9, w8
	str	w1, [sp, #8]
	add	x2, sp, #12
	mov	x0, x20
	blr	x12
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.4:
	ldr	w8, [sp, #12]
	asr	w9, w8, #8
	stp	w8, w9, [x19]
	ldr	w8, [sp, #8]
	add	w1, w8, #1
	str	w1, [sp, #8]
	ldr	x8, [x20]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	asr	w9, w8, #8
	stp	w8, w9, [x19, #8]
	ldr	w8, [sp, #8]
	add	w1, w8, #1
	str	w1, [sp, #8]
	ldr	x8, [x20]
	add	x2, sp, #12
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_6:
	ldr	w2, [sp, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hw_err
LBB0_7:
Lloh6:
	adrp	x1, l_.memset_pattern@PAGE
Lloh7:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	x0, x19
	mov	w2, #24
	bl	_memset_pattern16
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
	ldr	w8, [sp, #12]
	asr	w9, w8, #8
	stp	w8, w9, [x19, #16]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IXGBE_SAN_MAC_ADDR_PORT1_OFFSET,8,3 ; @IXGBE_SAN_MAC_ADDR_PORT1_OFFSET
	.comm	_IXGBE_SAN_MAC_ADDR_PORT0_OFFSET,8,3 ; @IXGBE_SAN_MAC_ADDR_PORT0_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom read at offset %d failed\n"

	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

.subsections_via_symbols
