	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_set_wep_keys
_lbs_set_wep_keys:                      ## @lbs_set_wep_keys
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.1:
	cmpl	$0, 4(%rax)
	jne	LBB0_4
## %bb.2:
	cmpl	$0, 8(%rax)
	jne	LBB0_4
## %bb.3:
	cmpl	$0, 12(%rax)
	je	LBB0_25
LBB0_4:
	leaq	-56(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, -24(%rbp)
	movl	8(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, -32(%rbp)
	movq	_CMD_ACT_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -40(%rbp)
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	je	LBB0_7
## %bb.5:
	cmpl	$128, %ecx
	jne	LBB0_9
## %bb.6:
	movq	_CMD_TYPE_WEP_40_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_CMD_TYPE_WEP_104_BIT@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %r14d
LBB0_9:
	movq	-48(%rbp), %rcx
	movl	%r14d, (%rcx)
	movq	-56(%rbp), %rcx
	movl	(%rcx), %edi
	movq	16(%rbx), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	4(%rax), %edx
	cmpl	$128, %edx
	je	LBB0_12
## %bb.10:
	xorl	%ecx, %ecx
	cmpl	$129, %edx
	jne	LBB0_14
## %bb.11:
	movq	_CMD_TYPE_WEP_104_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	_CMD_TYPE_WEP_40_BIT@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
LBB0_14:
	movq	-48(%rbp), %rdx
	movl	%ecx, 4(%rdx)
	movq	-56(%rbp), %rcx
	movl	4(%rcx), %edi
	movq	16(%rbx), %rcx
	movl	4(%rcx), %esi
	movl	4(%rax), %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	8(%rax), %edx
	cmpl	$128, %edx
	je	LBB0_17
## %bb.15:
	xorl	%ecx, %ecx
	cmpl	$129, %edx
	jne	LBB0_19
## %bb.16:
	movq	_CMD_TYPE_WEP_104_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_17:
	movq	_CMD_TYPE_WEP_40_BIT@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %ecx
LBB0_19:
	movq	-48(%rbp), %rdx
	movl	%ecx, 8(%rdx)
	movq	-56(%rbp), %rcx
	movl	8(%rcx), %edi
	movq	16(%rbx), %rcx
	movl	8(%rcx), %esi
	movl	8(%rax), %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movl	12(%rax), %edx
	cmpl	$128, %edx
	je	LBB0_22
## %bb.20:
	xorl	%ecx, %ecx
	cmpl	$129, %edx
	jne	LBB0_24
## %bb.21:
	movq	_CMD_TYPE_WEP_104_BIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_22:
	movq	_CMD_TYPE_WEP_40_BIT@GOTPCREL(%rip), %rcx
LBB0_23:
	movl	(%rcx), %ecx
LBB0_24:
	movq	-48(%rbp), %rdx
	movl	%ecx, 12(%rdx)
	movq	-56(%rbp), %rcx
	movl	12(%rcx), %edi
	movq	16(%rbx), %rcx
	movl	12(%rcx), %esi
	movl	12(%rax), %edx
	callq	_memcpy
	movq	_CMD_802_11_SET_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lbs_cmd_with_response
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_25:
	movq	%rbx, %rdi
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lbs_remove_wep_keys            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_ACT_ADD,4,2                ## @CMD_ACT_ADD
	.comm	_CMD_TYPE_WEP_40_BIT,4,2        ## @CMD_TYPE_WEP_40_BIT
	.comm	_CMD_TYPE_WEP_104_BIT,4,2       ## @CMD_TYPE_WEP_104_BIT
	.comm	_CMD_802_11_SET_WEP,4,2         ## @CMD_802_11_SET_WEP
	.no_dead_strip	_lbs_set_wep_keys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_set_wep_keys
_lbs_set_wep_keys:                      ; @lbs_set_wep_keys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w9, [x8]
	cbnz	w9, LBB0_4
; %bb.1:
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_4
; %bb.2:
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_4
; %bb.3:
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_28
LBB0_4:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	w0, #40
	bl	_cpu_to_le16
	str	x0, [sp, #40]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le16
	str	x0, [sp, #32]
Lloh0:
	adrp	x8, _CMD_ACT_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_ACT_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	ldr	x8, [x19]
	ldr	w10, [x8]
	cmp	w10, #129
	b.eq	LBB0_7
; %bb.5:
	mov	w9, #0
	cmp	w10, #128
	b.ne	LBB0_9
; %bb.6:
Lloh3:
	adrp	x9, _CMD_TYPE_WEP_40_BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_TYPE_WEP_40_BIT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh5:
	adrp	x9, _CMD_TYPE_WEP_104_BIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CMD_TYPE_WEP_104_BIT@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
LBB0_9:
	ldr	x10, [sp, #16]
	str	w9, [x10]
	ldr	x9, [sp, #8]
	ldr	w0, [x9]
	ldr	x9, [x19, #16]
	ldr	w1, [x9]
	ldr	w2, [x8]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	cmp	w9, #128
	b.eq	LBB0_12
; %bb.10:
	cmp	w9, #129
	b.ne	LBB0_14
; %bb.11:
Lloh7:
	adrp	x9, _CMD_TYPE_WEP_104_BIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CMD_TYPE_WEP_104_BIT@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh9:
	adrp	x9, _CMD_TYPE_WEP_40_BIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_TYPE_WEP_40_BIT@GOTPAGEOFF]
LBB0_13:
	ldr	w9, [x9]
	b	LBB0_15
LBB0_14:
	mov	w9, #0
LBB0_15:
	ldr	x10, [sp, #16]
	str	w9, [x10, #4]
	ldr	x9, [sp, #8]
	ldr	w0, [x9, #4]
	ldr	x9, [x19, #16]
	ldr	w1, [x9, #4]
	ldr	w2, [x8, #4]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	cmp	w9, #128
	b.eq	LBB0_18
; %bb.16:
	cmp	w9, #129
	b.ne	LBB0_20
; %bb.17:
Lloh11:
	adrp	x9, _CMD_TYPE_WEP_104_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CMD_TYPE_WEP_104_BIT@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh13:
	adrp	x9, _CMD_TYPE_WEP_40_BIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CMD_TYPE_WEP_40_BIT@GOTPAGEOFF]
LBB0_19:
	ldr	w9, [x9]
	b	LBB0_21
LBB0_20:
	mov	w9, #0
LBB0_21:
	ldp	x11, x10, [sp, #8]
	str	w9, [x10, #8]
	ldr	w0, [x11, #8]
	ldr	x9, [x19, #16]
	ldr	w1, [x9, #8]
	ldr	w2, [x8, #8]
	bl	_memcpy
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	cmp	w9, #128
	b.eq	LBB0_24
; %bb.22:
	cmp	w9, #129
	b.ne	LBB0_26
; %bb.23:
Lloh15:
	adrp	x9, _CMD_TYPE_WEP_104_BIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMD_TYPE_WEP_104_BIT@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:
Lloh17:
	adrp	x9, _CMD_TYPE_WEP_40_BIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CMD_TYPE_WEP_40_BIT@GOTPAGEOFF]
LBB0_25:
	ldr	w9, [x9]
	b	LBB0_27
LBB0_26:
	mov	w9, #0
LBB0_27:
	ldp	x11, x10, [sp, #8]
	str	w9, [x10, #12]
	ldr	w0, [x11, #12]
	ldr	x9, [x19, #16]
	ldr	w1, [x9, #12]
	ldr	w2, [x8, #12]
	bl	_memcpy
Lloh19:
	adrp	x8, _CMD_802_11_SET_WEP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CMD_802_11_SET_WEP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_lbs_cmd_with_response
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_lbs_remove_wep_keys
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_ACT_ADD,4,2                ; @CMD_ACT_ADD
	.comm	_CMD_TYPE_WEP_40_BIT,4,2        ; @CMD_TYPE_WEP_40_BIT
	.comm	_CMD_TYPE_WEP_104_BIT,4,2       ; @CMD_TYPE_WEP_104_BIT
	.comm	_CMD_802_11_SET_WEP,4,2         ; @CMD_802_11_SET_WEP
	.no_dead_strip	_lbs_set_wep_keys
.subsections_via_symbols
