	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_send_static_wepkey_cmd
_iwl_send_static_wepkey_cmd:            ## @iwl_send_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	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_WEP_KEYS_MAX@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	shlq	$4, %rax
	addq	$64, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	$0, -72(%rbp)
	movl	%r12d, -64(%rbp)
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %eax
	movl	%eax, -60(%rbp)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_might_sleep
	movslq	(%r15), %rax
	leaq	16(,%rax,4), %rdx
	movq	%r12, %rbx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	$16, %r13d
	movl	$8, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movl	%r14d, -16(%rax,%r13)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-8(%rcx,%r12), %rdx
	testq	%rdx, %rdx
	movq	_WEP_INVALID_OFFSET@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovnel	%r14d, %esi
	movl	$1, %edi
	cmovnel	%edi, %r15d
	movl	%esi, -12(%rax,%r13)
	movq	%rdx, (%rax,%r13)
	movq	-8(%rax,%r13), %rdi
	addq	$12, %rdi
	movl	(%rcx,%r12), %esi
	callq	_memcpy
	incq	%r14
	movq	_WEP_KEYS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltq
	addq	$24, %r13
	addq	$16, %r12
	cmpq	%rax, %r14
	jl	LBB0_1
## %bb.2:
	movq	-72(%rbp), %rcx
	movq	_WEP_KEY_WEP_TYPE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rbx)
	movl	%eax, (%rbx)
	leaq	16(,%rax,4), %rax
	movq	%rax, (%rcx)
	orl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_3
## %bb.4:
	leaq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_dvm_send_cmd
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WEP_KEYS_MAX,4,2               ## @WEP_KEYS_MAX
	.comm	_WEP_INVALID_OFFSET,4,2         ## @WEP_INVALID_OFFSET
	.comm	_WEP_KEY_WEP_TYPE,4,2           ## @WEP_KEY_WEP_TYPE
	.no_dead_strip	_iwl_send_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 iwl_send_static_wepkey_cmd
_iwl_send_static_wepkey_cmd:            ; @iwl_send_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, #32
	mov	x20, x2
	mov	x21, 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	x23, _WEP_KEYS_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _WEP_KEYS_MAX@GOTPAGEOFF]
	ldrsw	x8, [x23]
	lsl	x8, x8, #4
	add	x9, x8, #64
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #79
	and	x8, x8, #0xfffffffffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	stur	xzr, [x29, #-104]
	ldr	w8, [x1, #8]
	stp	w22, w8, [x29, #-96]
	bl	_might_sleep
	ldrsw	x8, [x23]
	lsl	x8, x8, #2
	add	x2, x8, #16
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	mov	x25, #0
	mov	x26, #0
	mov	x27, #0
	mov	w24, #0
Lloh7:
	adrp	x28, _WEP_INVALID_OFFSET@GOTPAGE
Lloh8:
	ldr	x28, [x28, _WEP_INVALID_OFFSET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x8, x8, x26
	str	w27, [x8]
	ldr	x9, [x21]
	add	x9, x9, x25
	ldr	x2, [x9]
	ldr	w10, [x28]
	cmp	x2, #0
	csel	w10, w10, w27, eq
	csinc	w24, w24, wzr, eq
	str	w10, [x8, #4]
	str	x2, [x8, #16]
	ldr	x8, [x8, #8]
	add	x0, x8, #12
	ldr	w1, [x9, #8]
	bl	_memcpy
	add	x27, x27, #1
	ldr	w8, [x23]
	sxtw	x9, w8
	add	x26, x26, #24
	add	x25, x25, #16
	cmp	x27, x9
	b.lt	LBB0_1
; %bb.2:
	ldur	x10, [x29, #-104]
Lloh9:
	adrp	x11, _WEP_KEY_WEP_TYPE@GOTPAGE
Lloh10:
	ldr	x11, [x11, _WEP_KEY_WEP_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	stp	w8, w11, [x22]
	lsl	x8, x9, #2
	add	x8, x8, #16
	str	x8, [x10]
	orr	w8, w24, w20
	cbz	w8, LBB0_4
; %bb.3:
	sub	x1, x29, #104
	mov	x0, x19
	bl	_iwl_dvm_send_cmd
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WEP_KEYS_MAX,4,2               ; @WEP_KEYS_MAX
	.comm	_WEP_INVALID_OFFSET,4,2         ; @WEP_INVALID_OFFSET
	.comm	_WEP_KEY_WEP_TYPE,4,2           ; @WEP_KEY_WEP_TYPE
	.no_dead_strip	_iwl_send_static_wepkey_cmd
.subsections_via_symbols
