	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_set_default_wep_key        ## -- Begin function iwl_set_default_wep_key
	.p2align	4, 0x90
_iwl_set_default_wep_key:               ## @iwl_set_default_wep_key
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_lockdep_assert_held
	movq	(%rbx), %rdx
	movq	_WEP_KEY_LEN_128@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_3
## %bb.1:
	movq	_WEP_KEY_LEN_64@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_WEP
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_3:
	movq	_IWLAGN_HW_KEY_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	shlq	$4, %rcx
	movq	%rdx, (%rax,%rcx)
	leaq	(%rax,%rcx), %rdi
	addq	$8, %rdi
	leaq	16(%rbx), %rsi
	callq	_memcpy
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_iwl_send_static_wepkey_cmd
	movl	%eax, %r15d
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_WEP
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WEP_KEY_LEN_128,8,3            ## @WEP_KEY_LEN_128
	.comm	_WEP_KEY_LEN_64,8,3             ## @WEP_KEY_LEN_64
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad WEP key length %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IWLAGN_HW_KEY_DEFAULT,4,2      ## @IWLAGN_HW_KEY_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Set default WEP key: len=%d idx=%d ret=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_set_default_wep_key        ; -- Begin function iwl_set_default_wep_key
	.p2align	2
_iwl_set_default_wep_key:               ; @iwl_set_default_wep_key
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_lockdep_assert_held
	ldr	x2, [x20]
Lloh0:
	adrp	x8, _WEP_KEY_LEN_128@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WEP_KEY_LEN_128@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _WEP_KEY_LEN_64@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WEP_KEY_LEN_64@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x2, x8
	ccmp	x2, x9, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _IWLAGN_HW_KEY_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IWLAGN_HW_KEY_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	x8, [x21]
	ldr	x9, [x20, #8]
	add	x0, x8, x9, lsl #4
	str	x2, [x0], #8
	add	x1, x20, #16
	bl	_memcpy
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_iwl_send_static_wepkey_cmd
	mov	x21, x0
	ldp	x2, x8, [x20]
	stp	x8, x21, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_WEP
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_WEP
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_WEP_KEY_LEN_128,8,3            ; @WEP_KEY_LEN_128
	.comm	_WEP_KEY_LEN_64,8,3             ; @WEP_KEY_LEN_64
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad WEP key length %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IWLAGN_HW_KEY_DEFAULT,4,2      ; @IWLAGN_HW_KEY_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Set default WEP key: len=%d idx=%d ret=%d\n"

.subsections_via_symbols
