	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_phy_index_decode
_wlan_phy_index_decode:                 ## @wlan_phy_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	%rbx
	.cfi_offset %rbx, -24
	movq	(%rdi), %r9
	movq	8(%rdi), %r8
	subq	%rsi, %r9
	movslq	(%r8,%rsi,4), %r10
	leaq	2(%r10), %r11
	movl	$-1, %eax
	cmpq	%r11, %r9
	jne	LBB0_7
## %bb.1:
	movq	_IFNAMSIZ@GOTPCREL(%rip), %r9
	cmpl	(%r9), %r10d
	jge	LBB0_7
## %bb.2:
	leaq	1(%rsi), %r9
	xorl	%eax, %eax
	testl	%r10d, %r10d
	je	LBB0_3
## %bb.4:
	leaq	4(,%rsi,4), %r11
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r11, %r8
	movzbl	(%r8,%r10,4), %r8d
	movb	%r8b, (%rdx,%r10)
	incq	%r10
	movq	8(%rdi), %r8
	movslq	(%r8,%rsi,4), %rbx
	cmpq	%rbx, %r10
	jb	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r10d, %r10d
LBB0_6:
	movb	$0, (%rdx,%r10)
	movq	8(%rdi), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rsi, %r9
	movslq	(%rdx,%r9,4), %rdx
	movq	%rdx, (%rcx)
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.no_dead_strip	_wlan_phy_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_phy_index_decode
_wlan_phy_index_decode:                 ; @wlan_phy_index_decode
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0]
	ldrsw	x10, [x8, x1, lsl #2]
	add	x11, x10, #2
Lloh0:
	adrp	x12, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x12, [x12, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	sub	x9, x9, x1
	cmp	x9, x11
	ccmp	w10, w12, #0, eq
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	add	x9, x1, #1
	cbz	w10, LBB0_5
; %bb.3:
	mov	x10, #0
	lsl	x11, x1, #2
	add	x11, x11, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x11
	ldr	w8, [x8, x10, lsl #2]
	strb	w8, [x2, x10]
	add	x10, x10, #1
	ldr	x8, [x0, #8]
	ldrsw	x12, [x8, x1, lsl #2]
	cmp	x10, x12
	b.lo	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	x10, #0
LBB0_6:
	strb	wzr, [x2, x10]
	ldr	x10, [x0, #8]
	ldrsw	x11, [x10, x1, lsl #2]
	add	x9, x9, x11
	ldrsw	x9, [x10, x9, lsl #2]
	str	x9, [x3]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.no_dead_strip	_wlan_phy_index_decode
.subsections_via_symbols
