	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __tg3_set_mac_addr
___tg3_set_mac_addr:                    ## @__tg3_set_mac_addr
	.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	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rsi
	xorl	%edx, %edx
	callq	___tg3_set_one_mac_addr
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	___tg3_set_one_mac_addr
LBB0_2:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	___tg3_set_one_mac_addr
	movq	%rbx, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5703@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_tg3_asic_rev
	movq	_ASIC_REV_5704@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$6, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$9, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$13, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$14, %edx
	callq	___tg3_set_one_mac_addr
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	___tg3_set_one_mac_addr
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movdqu	(%rax), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %esi
	addl	16(%rax), %esi
	addl	20(%rax), %esi
	movq	_TX_BACKOFF_SEED_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_MAC_TX_BACKOFF_SEED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tw32                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ASIC_REV_5703,8,3              ## @ASIC_REV_5703
	.comm	_ASIC_REV_5704,8,3              ## @ASIC_REV_5704
	.comm	_TX_BACKOFF_SEED_MASK,4,2       ## @TX_BACKOFF_SEED_MASK
	.comm	_MAC_TX_BACKOFF_SEED,4,2        ## @MAC_TX_BACKOFF_SEED
	.no_dead_strip	___tg3_set_mac_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __tg3_set_mac_addr
___tg3_set_mac_addr:                    ; @__tg3_set_mac_addr
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x1, [x8]
	mov	w2, #0
	bl	___tg3_set_one_mac_addr
	cbnz	w20, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	___tg3_set_one_mac_addr
LBB0_2:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #2
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	___tg3_set_one_mac_addr
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh0:
	adrp	x8, _ASIC_REV_5703@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASIC_REV_5703@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_tg3_asic_rev
Lloh3:
	adrp	x8, _ASIC_REV_5704@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_REV_5704@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_4:
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #5
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #6
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #7
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #9
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #10
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #11
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #13
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #14
	bl	___tg3_set_one_mac_addr
	ldr	x8, [x19]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #15
	bl	___tg3_set_one_mac_addr
LBB0_5:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	q0, [x8]
	ldp	w9, w8, [x8, #16]
	addv.4s	s0, v0
	fmov	w10, s0
	add	w9, w10, w9
	add	w8, w9, w8
Lloh6:
	adrp	x9, _TX_BACKOFF_SEED_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TX_BACKOFF_SEED_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w1, w8, w9
Lloh9:
	adrp	x8, _MAC_TX_BACKOFF_SEED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_TX_BACKOFF_SEED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tw32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ASIC_REV_5703,8,3              ; @ASIC_REV_5703
	.comm	_ASIC_REV_5704,8,3              ; @ASIC_REV_5704
	.comm	_TX_BACKOFF_SEED_MASK,4,2       ; @TX_BACKOFF_SEED_MASK
	.comm	_MAC_TX_BACKOFF_SEED,4,2        ; @MAC_TX_BACKOFF_SEED
	.no_dead_strip	___tg3_set_mac_addr
.subsections_via_symbols
