	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_wep_tx_idx
_get_wep_tx_idx:                        ## @get_wep_tx_idx
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_readWepKeyRid
	movq	_SUCCESS@GOTPCREL(%rip), %r12
	movl	$-1, %r14d
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.1:
	movq	-56(%rbp), %rbx
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_readWepKeyRid
	cmpl	(%r12), %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	cmpq	%rax, %rbx
	movq	%rax, %rbx
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	-48(%rbp), %rax
	movl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_get_wep_tx_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_wep_tx_idx
_get_wep_tx_idx:                        ; @get_wep_tx_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x1, sp
	mov	w2, #1
	mov	w3, #1
	bl	_readWepKeyRid
Lloh0:
	adrp	x20, _SUCCESS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SUCCESS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	ldr	x21, [sp]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #65535
	bl	_cpu_to_le16
	cmp	x21, x0
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_readWepKeyRid
	ldr	w8, [x20]
	ldr	x9, [sp]
	cmp	w0, w8
	ccmp	x21, x9, #4, eq
	mov	x21, x9
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_get_wep_tx_idx
.subsections_via_symbols
