	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spider_net_set_mac
_spider_net_set_mac:                    ## @spider_net_set_mac
	.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, %r14
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r14), %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_SPIDER_NET_GMACOPEMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_spider_net_read_reg
	andl	$-97, %eax
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_spider_net_write_reg
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	shll	$24, %ecx
	shll	$16, %esi
	addl	%ecx, %esi
	movl	8(%rax), %edx
	shll	$8, %edx
	addl	%esi, %edx
	addl	12(%rax), %edx
	movl	16(%rax), %ebx
	shll	$8, %ebx
	addl	20(%rax), %ebx
	movq	_SPIDER_NET_GMACUNIMACU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_spider_net_write_reg
	movq	_SPIDER_NET_GMACUNIMACL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_spider_net_write_reg
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_spider_net_read_reg
	orl	$96, %eax
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_spider_net_write_reg
	movq	%r12, %rdi
	callq	_spider_net_set_promisc
	movq	%r15, %rdi
	callq	_spider_net_get_mac_address
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	(%r15), %edx
	movl	4(%r15), %edi
	movq	(%r14), %rsi
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_SPIDER_NET_GMACOPEMD,4,2       ## @SPIDER_NET_GMACOPEMD
	.comm	_SPIDER_NET_GMACUNIMACU,4,2     ## @SPIDER_NET_GMACUNIMACU
	.comm	_SPIDER_NET_GMACUNIMACL,4,2     ## @SPIDER_NET_GMACUNIMACL
	.no_dead_strip	_spider_net_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spider_net_set_mac
_spider_net_set_mac:                    ; @spider_net_set_mac
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x0, [x20]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _SPIDER_NET_GMACOPEMD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SPIDER_NET_GMACOPEMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_spider_net_read_reg
	and	w2, w0, #0xffffff9f
	ldr	w1, [x23]
	mov	x0, x21
	bl	_spider_net_write_reg
	ldr	x8, [x20]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	add	w9, w10, w9, lsl #24
	ldp	w10, w11, [x8, #8]
	add	w9, w9, w10, lsl #8
	add	w2, w9, w11
	ldp	w9, w8, [x8, #16]
	add	w22, w8, w9, lsl #8
Lloh2:
	adrp	x8, _SPIDER_NET_GMACUNIMACU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SPIDER_NET_GMACUNIMACU@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_spider_net_write_reg
Lloh5:
	adrp	x8, _SPIDER_NET_GMACUNIMACL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SPIDER_NET_GMACUNIMACL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_spider_net_write_reg
	ldr	w1, [x23]
	mov	x0, x21
	bl	_spider_net_read_reg
	orr	w2, w0, #0x60
	ldr	w1, [x23]
	mov	x0, x21
	bl	_spider_net_write_reg
	mov	x0, x21
	bl	_spider_net_set_promisc
	mov	x0, x19
	bl	_spider_net_get_mac_address
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x1, [x20]
	ldp	w2, w0, [x19]
	bl	_memcmp
	cbz	x0, LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_SPIDER_NET_GMACOPEMD,4,2       ; @SPIDER_NET_GMACOPEMD
	.comm	_SPIDER_NET_GMACUNIMACU,4,2     ; @SPIDER_NET_GMACUNIMACU
	.comm	_SPIDER_NET_GMACUNIMACL,4,2     ; @SPIDER_NET_GMACUNIMACL
	.no_dead_strip	_spider_net_set_mac
.subsections_via_symbols
