	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sky2_set_mac_address
_sky2_set_mac_address:                  ## @sky2_set_mac_address
	.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, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	8(%rax), %r14
	movl	(%rax), %r15d
	movl	(%rbx), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r12), %edi
	movl	(%rbx), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_memcpy
	movq	_B2_MAC_1@GOTPCREL(%rip), %rax
	leal	(,%r15,8), %ebx
	movq	(%r14), %rdi
	addq	%rbx, %rdi
	addq	(%rax), %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	callq	_memcpy_toio
	movq	_B2_MAC_2@GOTPCREL(%rip), %rax
	addq	(%r14), %rbx
	addq	(%rax), %rbx
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%rbx, %rdi
	callq	_memcpy_toio
	movq	_GM_SRC_ADDR_2L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_gma_set_addr
	movq	_GM_SRC_ADDR_1L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_gma_set_addr
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	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	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_B2_MAC_1,8,3                   ## @B2_MAC_1
	.comm	_B2_MAC_2,8,3                   ## @B2_MAC_2
	.comm	_GM_SRC_ADDR_2L,4,2             ## @GM_SRC_ADDR_2L
	.comm	_GM_SRC_ADDR_1L,4,2             ## @GM_SRC_ADDR_1L
	.no_dead_strip	_sky2_set_mac_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sky2_set_mac_address
_sky2_set_mac_address:                  ; @sky2_set_mac_address
	.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	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x20, [x0, #8]
	ldr	w21, [x0]
	ldr	w0, [x22]
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	ldr	w1, [x22]
Lloh0:
	adrp	x22, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ETH_ALEN@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_memcpy
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _B2_MAC_1@GOTPAGE
Lloh3:
	ldr	x9, [x9, _B2_MAC_1@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	lsl	w23, w21, #3
	add	x8, x8, x23
	add	x0, x8, x9
	ldr	w1, [x19]
	ldr	w2, [x22]
	bl	_memcpy_toio
Lloh5:
	adrp	x8, _B2_MAC_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B2_MAC_2@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh7:
	ldr	x8, [x8]
	add	x9, x9, x23
	add	x0, x9, x8
	ldr	w1, [x19]
	ldr	w2, [x22]
	bl	_memcpy_toio
Lloh8:
	adrp	x8, _GM_SRC_ADDR_2L@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GM_SRC_ADDR_2L@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_set_addr
Lloh11:
	adrp	x8, _GM_SRC_ADDR_1L@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GM_SRC_ADDR_1L@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x21
	bl	_gma_set_addr
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_B2_MAC_1,8,3                   ; @B2_MAC_1
	.comm	_B2_MAC_2,8,3                   ; @B2_MAC_2
	.comm	_GM_SRC_ADDR_2L,4,2             ; @GM_SRC_ADDR_2L
	.comm	_GM_SRC_ADDR_1L,4,2             ; @GM_SRC_ADDR_1L
	.no_dead_strip	_sky2_set_mac_address
.subsections_via_symbols
