	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_mac_index_decode
_wlan_mac_index_decode:                 ## @wlan_mac_index_decode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r9
	subq	%rsi, %rbx
	movslq	(%r9,%rsi,4), %r10
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	leaq	(%r10,%rax), %r11
	addq	$2, %r11
	movl	$-1, %eax
	cmpq	%r11, %rbx
	jne	LBB0_11
## %bb.1:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r10d
	jge	LBB0_11
## %bb.2:
	testl	%r10d, %r10d
	je	LBB0_3
## %bb.4:
	leaq	4(,%rsi,4), %r10
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r10, %r9
	leaq	1(%r14), %r11
	movzbl	(%r9,%r14,4), %ebx
	movb	%bl, (%rdx,%r14)
	movq	8(%rdi), %r9
	movslq	(%r9,%rsi,4), %rbx
	movq	%r11, %r14
	cmpq	%rbx, %r11
	jb	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r11d, %r11d
LBB0_6:
	movb	$0, (%rdx,%r11)
	movq	8(%rdi), %rdx
	movl	(%rdx,%rsi,4), %edi
	addl	%edi, %esi
	incl	%esi
	movslq	%esi, %rsi
	movslq	(%rdx,%rsi,4), %rdi
	cmpq	%rdi, (%r8)
	jne	LBB0_11
## %bb.7:
	testl	%edi, %edi
	je	LBB0_8
## %bb.9:
	leaq	(%rdx,%rsi,4), %rdx
	addq	$4, %rdx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx,%rsi,4), %rdi
	movq	%rdi, (%rcx,%rsi,8)
	leaq	1(%rsi), %rdi
	movq	%rdi, %rsi
	cmpq	(%r8), %rdi
	jb	LBB0_10
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.no_dead_strip	_wlan_mac_index_decode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_mac_index_decode
_wlan_mac_index_decode:                 ; @wlan_mac_index_decode
	.cfi_startproc
; %bb.0:
	ldp	x11, x9, [x0]
	ldrsw	x10, [x9, x1, lsl #2]
Lloh0:
	adrp	x8, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x12, [x8]
	add	x12, x10, x12
	add	x12, x12, #2
Lloh2:
	adrp	x13, _IFNAMSIZ@GOTPAGE
Lloh3:
	ldr	x13, [x13, _IFNAMSIZ@GOTPAGEOFF]
Lloh4:
	ldr	w13, [x13]
	sub	x11, x11, x1
	cmp	x11, x12
	ccmp	w10, w13, #0, eq
	b.ge	LBB0_10
; %bb.1:
	cbz	w10, LBB0_4
; %bb.2:
	mov	x11, #0
	lsl	x10, x1, #2
	add	x10, x10, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x9, x10
	ldr	w9, [x9, x11, lsl #2]
	strb	w9, [x2, x11]
	add	x12, x11, #1
	ldr	x9, [x0, #8]
	ldrsw	x13, [x9, x1, lsl #2]
	mov	x11, x12
	cmp	x12, x13
	b.lo	LBB0_3
	b	LBB0_5
LBB0_4:
	mov	x12, #0
LBB0_5:
	strb	wzr, [x2, x12]
	ldr	x10, [x0, #8]
	ldr	w9, [x10, x1, lsl #2]
	add	w9, w1, w9
	add	w11, w9, #1
	ldrsw	x9, [x10, w11, sxtw #2]
	ldr	x12, [x8]
	cmp	x12, x9
	b.ne	LBB0_10
; %bb.6:
	cbz	w9, LBB0_9
; %bb.7:
	mov	x9, #0
	sxtw	x11, w11
	add	x10, x10, x11, lsl #2
	add	x10, x10, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x10, x9, lsl #2]
	str	x11, [x3, x9, lsl #3]
	add	x11, x9, #1
	ldr	x12, [x8]
	mov	x9, x11
	cmp	x11, x12
	b.lo	LBB0_8
LBB0_9:
	mov	w0, #0
	ret
LBB0_10:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.no_dead_strip	_wlan_mac_index_decode
.subsections_via_symbols
