	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_static_wepkey_cmd
_il4965_static_wepkey_cmd:              ## @il4965_static_wepkey_cmd
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WEP_KEYS_MAX@GOTPCREL(%rip), %rbx
	movslq	(%rbx), %rax
	shlq	$5, %rax
	subq	$-128, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_CMD_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	%r13, -80(%rbp)
	movq	_C_WEPKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_might_sleep
	movslq	(%rbx), %rax
	leaq	16(,%rax,4), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	movl	(%rbx), %eax
	movl	$0, %r14d
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r13, %rbx
	movl	$16, %r13d
	movl	$8, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r12), %rdx
	movq	8(%rbx), %rcx
	movl	%r15d, -16(%rcx,%r13)
	testq	%rdx, %rdx
	movq	_WEP_INVALID_OFFSET@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovnel	%r15d, %esi
	movl	$1, %edi
	cmovnel	%edi, %r14d
	movl	%esi, -12(%rcx,%r13)
	movq	%rdx, (%rcx,%r13)
	movq	-8(%rcx,%r13), %rdi
	addq	$12, %rdi
	movl	-8(%rax,%r12), %esi
	callq	_memcpy
	incq	%r15
	movq	_WEP_KEYS_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r13
	addq	$16, %r12
	cmpq	%rax, %r15
	jl	LBB0_2
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	xorl	%r15d, %r15d
	movq	%rbx, %r13
LBB0_4:
	cltq
	movq	_WEP_KEY_WEP_TYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r13)
	movl	%eax, (%r13)
	leaq	16(,%rax,4), %rax
	movq	%rax, -96(%rbp)
	orl	%r12d, %r14d
	je	LBB0_6
## %bb.5:
	leaq	-96(%rbp), %rsi
	callq	_il_send_cmd
	movl	%eax, %r15d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WEP_KEYS_MAX,4,2               ## @WEP_KEYS_MAX
	.comm	_CMD_SYNC,4,2                   ## @CMD_SYNC
	.comm	_C_WEPKEY,4,2                   ## @C_WEPKEY
	.comm	_WEP_INVALID_OFFSET,4,2         ## @WEP_INVALID_OFFSET
	.comm	_WEP_KEY_WEP_TYPE,4,2           ## @WEP_KEY_WEP_TYPE
	.no_dead_strip	_il4965_static_wepkey_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_static_wepkey_cmd
_il4965_static_wepkey_cmd:              ; @il4965_static_wepkey_cmd
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x22, _WEP_KEYS_MAX@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WEP_KEYS_MAX@GOTPAGEOFF]
	ldrsw	x8, [x22]
	lsl	x8, x8, #5
	add	x9, x8, #128
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #143
	and	x8, x8, #0xffffffffffffffe0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x8, _CMD_SYNC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_SYNC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stur	w8, [x29, #-112]
	stur	x21, [x29, #-104]
Lloh10:
	adrp	x8, _C_WEPKEY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _C_WEPKEY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	stur	w8, [x29, #-96]
	bl	_might_sleep
	ldrsw	x8, [x22]
	lsl	x8, x8, #2
	add	x2, x8, #16
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	mov	x26, #0
	mov	w23, #0
Lloh13:
	adrp	x27, _WEP_INVALID_OFFSET@GOTPAGE
Lloh14:
	ldr	x27, [x27, _WEP_INVALID_OFFSET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x8, x8, x24
	ldr	x2, [x8, #8]
	ldr	x9, [x21, #8]
	add	x9, x9, x25
	str	w26, [x9]
	ldr	w10, [x27]
	cmp	x2, #0
	csel	w10, w10, w26, eq
	csinc	w23, w23, wzr, eq
	str	w10, [x9, #4]
	str	x2, [x9, #16]
	ldr	x9, [x9, #8]
	add	x0, x9, #12
	ldr	w1, [x8]
	bl	_memcpy
	add	x26, x26, #1
	ldrsw	x8, [x22]
	add	x25, x25, #24
	add	x24, x24, #16
	cmp	x26, x8
	b.lt	LBB0_2
; %bb.3:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
Lloh15:
	adrp	x9, _WEP_KEY_WEP_TYPE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WEP_KEY_WEP_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w8, w9, [x21]
	sbfiz	x8, x8, #2, #32
	add	x8, x8, #16
	stur	x8, [x29, #-120]
	orr	w8, w23, w20
	cbz	w8, LBB0_7
; %bb.6:
	sub	x1, x29, #120
	mov	x0, x19
	bl	_il_send_cmd
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_WEP_KEYS_MAX,4,2               ; @WEP_KEYS_MAX
	.comm	_CMD_SYNC,4,2                   ; @CMD_SYNC
	.comm	_C_WEPKEY,4,2                   ; @C_WEPKEY
	.comm	_WEP_INVALID_OFFSET,4,2         ; @WEP_INVALID_OFFSET
	.comm	_WEP_KEY_WEP_TYPE,4,2           ; @WEP_KEY_WEP_TYPE
	.no_dead_strip	_il4965_static_wepkey_cmd
.subsections_via_symbols
