	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsi108_set_mac
_tsi108_set_mac:                        ## @tsi108_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movb	2(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, (%rcx)
	movb	3(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, 1(%rcx)
	movb	4(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, 2(%rcx)
	movb	5(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, 3(%rcx)
	movb	6(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, 4(%rcx)
	movb	7(%rbx), %al
	movq	(%r15), %rcx
	movb	%al, 5(%rcx)
	movq	(%r15), %rax
	movzbl	(%rax), %ecx
	shll	$16, %ecx
	movzbl	1(%rax), %ebx
	shll	$24, %ebx
	orl	%ecx, %ebx
	movl	2(%rax), %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	_TSI108_MAC_ADDR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_TSI_WRITE
	movq	_TSI108_MAC_ADDR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_TSI_WRITE
	movq	%r14, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_netif_wake_queue
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_TSI108_MAC_ADDR1,4,2           ## @TSI108_MAC_ADDR1
	.comm	_TSI108_MAC_ADDR2,4,2           ## @TSI108_MAC_ADDR2
	.no_dead_strip	_tsi108_set_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsi108_set_mac
_tsi108_set_mac:                        ; @tsi108_set_mac
	.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
	mov	x0, x21
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_5
; %bb.1:
	ldrb	w8, [x21, #2]
	ldr	x9, [x20]
	strb	w8, [x9]
	ldrb	w8, [x21, #3]
	ldr	x9, [x20]
	strb	w8, [x9, #1]
	ldrb	w8, [x21, #4]
	ldr	x9, [x20]
	strb	w8, [x9, #2]
	ldrb	w8, [x21, #5]
	ldr	x9, [x20]
	strb	w8, [x9, #3]
	ldrb	w8, [x21, #6]
	ldr	x9, [x20]
	strb	w8, [x9, #4]
	ldrb	w8, [x21, #7]
	ldr	x9, [x20]
	strb	w8, [x9, #5]
	ldr	x8, [x20]
	ldrb	w9, [x8]
	lsl	w21, w9, #16
	ldrb	w9, [x8, #1]
	bfi	w21, w9, #24, #8
	ldur	w22, [x8, #2]
	mov	x0, x19
	bl	_spin_lock_irq
Lloh0:
	adrp	x8, _TSI108_MAC_ADDR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TSI108_MAC_ADDR1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_TSI_WRITE
Lloh3:
	adrp	x8, _TSI108_MAC_ADDR2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TSI108_MAC_ADDR2@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_TSI_WRITE
	add	x21, x19, #4
	mov	x0, x21
	bl	_spin_lock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_netif_wake_queue
LBB0_4:
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_TSI108_MAC_ADDR1,4,2           ; @TSI108_MAC_ADDR1
	.comm	_TSI108_MAC_ADDR2,4,2           ; @TSI108_MAC_ADDR2
	.no_dead_strip	_tsi108_set_mac
.subsections_via_symbols
