	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_append_mac_index
_wlan_append_mac_index:                 ## @wlan_append_mac_index
	.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	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_strlen
	cltq
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r14, %rax
	addq	%rcx, %rax
	addq	$2, %rax
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_strlen
	movq	8(%r12), %rcx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx,%r14,4)
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %r13
	movl	$1, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	-1(%rbx,%r14), %eax
	movq	8(%r12), %rcx
	addq	%r13, %rcx
	movl	%eax, (%rcx,%r14,4)
	incq	%r14
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	cmpq	%rax, %r14
	jbe	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r8
	incq	%r8
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r12), %r9
	movl	%eax, (%r9,%r8,4)
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movl	$1, %ecx
	cmpq	$4, %rax
	jb	LBB0_13
## %bb.5:
	movq	%rax, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	incq	%rbx
	movq	%rdx, %rdi
	andq	$-2, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	%rbx, %rsi
	leaq	(%r9,%rsi,4), %rsi
	addq	$28, %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rbx,8), %xmm0
	movdqu	16(%r15,%rbx,8), %xmm1
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	movdqu	%xmm0, -24(%rsi,%rbx,4)
	movdqu	32(%r15,%rbx,8), %xmm0
	movdqu	48(%r15,%rbx,8), %xmm1
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	movdqu	%xmm0, -8(%rsi,%rbx,4)
	addq	$8, %rbx
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rdx
	orq	$1, %rdx
	movdqu	(%r15,%rbx,8), %xmm0
	movdqu	16(%r15,%rbx,8), %xmm1
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	punpcklqdq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0]
	addq	%r8, %rdx
	movdqu	%xmm0, (%r9,%rdx,4)
LBB0_11:
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.12:
	orq	$1, %rcx
LBB0_13:
	incq	%rax
	leaq	(%r9,%r8,4), %rdx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%r15,%rcx,8), %esi
	movl	%esi, (%rdx,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
	.no_dead_strip	_wlan_append_mac_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_append_mac_index
_wlan_append_mac_index:                 ; @wlan_append_mac_index
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_strlen
Lloh0:
	adrp	x23, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x9, x20, w0, sxtw
	add	x8, x9, x8
	add	x8, x8, #2
	str	x8, [x21]
	mov	x0, x22
	bl	_strlen
	ldr	x8, [x21, #8]
	str	w0, [x8, x20, lsl #2]
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_3
; %bb.1:
	mov	x25, #0
	lsl	x8, x20, #2
	add	x24, x8, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x22, x25]
	ldr	x9, [x21, #8]
	add	x9, x9, x24
	str	w8, [x9, x25, lsl #2]
	mov	x0, x22
	bl	_strlen
	add	x8, x25, #2
	add	x25, x25, #1
	cmp	x8, w0, sxtw
	b.ls	LBB0_2
LBB0_3:
	mov	x0, x22
	bl	_strlen
	add	w8, w0, #1
	sxtw	x8, w8
	add	x11, x8, x20
	ldr	x10, [x23]
	ldr	x9, [x21, #8]
	str	w10, [x9, x11, lsl #2]
	cbz	x10, LBB0_11
; %bb.4:
	cmp	x10, #8
	b.hs	LBB0_6
; %bb.5:
	mov	w11, #1
	b	LBB0_9
LBB0_6:
	and	x12, x10, #0xfffffffffffffff8
	orr	x11, x12, #0x1
	add	x13, x19, #32
	add	x14, x20, x8
	add	x14, x9, x14, lsl #2
	add	x14, x14, #20
	mov	x15, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	xtn.2s	v0, v0
	xtn.2s	v1, v1
	xtn.2s	v2, v2
	xtn.2s	v3, v3
	stp	d0, d1, [x14, #-16]
	stp	d2, d3, [x14], #32
	subs	x15, x15, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x12
	b.eq	LBB0_11
LBB0_9:
	sub	x10, x10, x11
	add	x10, x10, #1
	add	x12, x11, x20
	add	x8, x12, x8
	add	x8, x9, x8, lsl #2
	add	x9, x19, x11, lsl #3
	sub	x9, x9, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9], #8
	str	w11, [x8], #4
	subs	x10, x10, #1
	b.ne	LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
	.no_dead_strip	_wlan_append_mac_index
.subsections_via_symbols
