	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_ENABLE_ASF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tg3_flag
	xorl	%r15d, %r15d
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_MAC_ADDR_0_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	%rax, %rbx
	movq	_MAC_ADDR_0_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	%rax, %r12
	movq	_MAC_ADDR_1_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	movq	%rax, %r13
	movq	_MAC_ADDR_1_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tr32
	cmpq	%r13, %rbx
	jne	LBB0_7
## %bb.6:
	movl	$0, %ebx
	cmpq	%rax, %r12
	je	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	orq	%rax, %r13
	setne	%bl
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	___tg3_set_mac_addr
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_9
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_3:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_ENABLE_ASF,4,2                 ## @ENABLE_ASF
	.comm	_MAC_ADDR_0_HIGH,4,2            ## @MAC_ADDR_0_HIGH
	.comm	_MAC_ADDR_0_LOW,4,2             ## @MAC_ADDR_0_LOW
	.comm	_MAC_ADDR_1_HIGH,4,2            ## @MAC_ADDR_1_HIGH
	.comm	_MAC_ADDR_1_LOW,4,2             ## @MAC_ADDR_1_LOW
	.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	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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x21]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w1, [x21]
	ldp	w2, w0, [x20]
	bl	_memcpy
	mov	x0, x20
	bl	_netif_running
	cbz	w0, LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _ENABLE_ASF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENABLE_ASF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _MAC_ADDR_0_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_ADDR_0_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_tr32
	mov	x21, x0
Lloh6:
	adrp	x8, _MAC_ADDR_0_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAC_ADDR_0_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_tr32
	mov	x22, x0
Lloh9:
	adrp	x8, _MAC_ADDR_1_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAC_ADDR_1_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_tr32
	mov	x20, x0
Lloh12:
	adrp	x8, _MAC_ADDR_1_LOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAC_ADDR_1_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_tr32
	cmp	x21, x20
	ccmp	x22, x0, #0, eq
	b.eq	LBB0_6
; %bb.4:
	orr	x8, x20, x0
	cmp	x8, #0
	cset	w20, ne
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x20
	bl	___tg3_set_mac_addr
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ENABLE_ASF,4,2                 ; @ENABLE_ASF
	.comm	_MAC_ADDR_0_HIGH,4,2            ; @MAC_ADDR_0_HIGH
	.comm	_MAC_ADDR_0_LOW,4,2             ; @MAC_ADDR_0_LOW
	.comm	_MAC_ADDR_1_HIGH,4,2            ; @MAC_ADDR_1_HIGH
	.comm	_MAC_ADDR_1_LOW,4,2             ; @MAC_ADDR_1_LOW
	.no_dead_strip	_tg3_set_mac_addr
.subsections_via_symbols
