	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_wep_tx_idx
_set_wep_tx_idx:                        ## @set_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
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	$24, %edi
	callq	_cpu_to_le16
	movq	%rax, -48(%rbp)
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_cpu_to_le16
	movq	%rax, -56(%rbp)
	movq	-64(%rbp), %rax
	movb	%r12b, (%rax)
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movb	%r12b, (%r13)
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_disable_MAC
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_writeWepKeyRid
	movl	%eax, %ebx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_enable_MAC
	jmp	LBB0_3
LBB0_1:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_writeWepKeyRid
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_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 set_wep_tx_idx
_set_wep_tx_idx:                        ; @set_wep_tx_idx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	w0, #24
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	mov	w0, #65535
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	ldr	x8, [sp, #8]
	strb	w22, [x8]
	cbz	w21, LBB0_2
; %bb.1:
	strb	w22, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_disable_MAC
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_writeWepKeyRid
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_enable_MAC
	b	LBB0_3
LBB0_2:
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	x3, x19
	bl	_writeWepKeyRid
	mov	x21, x0
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_wep_tx_idx
.subsections_via_symbols
