	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_set_wep
_at76_set_wep:                          ## @at76_set_wep
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	24(%rdi), %r14
	addq	$48, %rdi
	movq	_MIB_MAC_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$32, 24(%rbx)
	movq	$0, 32(%rbx)
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	88(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	(%rdx,%rcx,8), %rdx
	movq	_WEP_SMALL_KEY_LEN@GOTPCREL(%rip), %rsi
	xorl	%edi, %edi
	cmpq	(%rsi), %rdx
	setg	%dil
	incl	%edi
	movl	%edi, 48(%rbx)
	movl	$1, 52(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	$0, 48(%rbx)
	movq	8(%rbx), %rcx
LBB0_3:
	movq	%rax, 72(%rbx)
	movq	%rcx, 56(%rbx)
	movl	64(%rbx), %edi
	movl	80(%rbx), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_at76_set_mib
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_wiphy_err
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIB_MAC_WEP,4,2                ## @MIB_MAC_WEP
	.comm	_WEP_SMALL_KEY_LEN,8,3          ## @WEP_SMALL_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_mib (wep) failed: %d\n"

	.no_dead_strip	_at76_set_wep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_set_wep
_at76_set_wep:                          ; @at76_set_wep
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w8, #32
	mov	x20, x0
	str	w8, [x20, #24]!
Lloh0:
	adrp	x8, _MIB_MAC_WEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIB_MAC_WEP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	x0, x20, #24
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_2
; %bb.1:
	ldp	x10, x9, [x19]
	ldr	x10, [x10, x9, lsl #3]
Lloh3:
	adrp	x11, _WEP_SMALL_KEY_LEN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _WEP_SMALL_KEY_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x10, x11
	mov	w10, #1
	cinc	w11, w10, gt
	stp	w11, w10, [x19, #48]
	b	LBB0_3
LBB0_2:
	str	xzr, [x19, #48]
	ldr	x9, [x19, #8]
LBB0_3:
	str	x8, [x19, #72]
	str	x9, [x19, #56]
	ldr	w0, [x19, #64]
	ldr	w1, [x19, #80]
	mov	w2, #4
	bl	_memcpy
	mov	x0, x19
	mov	x1, x20
	bl	_at76_set_mib
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_wiphy_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MIB_MAC_WEP,4,2                ; @MIB_MAC_WEP
	.comm	_WEP_SMALL_KEY_LEN,8,3          ; @WEP_SMALL_KEY_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_mib (wep) failed: %d\n"

	.no_dead_strip	_at76_set_wep
.subsections_via_symbols
