	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at76_dump_mib_mac_wep
_at76_dump_mib_mac_wep:                 ## @at76_dump_mib_mac_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movl	8(%r14), %edi
	movq	_MIB_MAC_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	$40, %ecx
	callq	_at76_get_mib
	testl	%eax, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.3:
	movq	_DBG_MIB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	36(%rbx), %r13d
	movl	32(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	28(%rbx), %r14d
	movl	16(%rbx), %r12d
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	20(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r10d
	movl	(%rbx), %r11d
	movl	16(%rbx), %r15d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%r12d, %r8d
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r15
	pushq	%r11
	pushq	%r10
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	callq	_at76_dbg
	addq	$48, %rsp
	cmpl	$1, (%rbx)
	jne	LBB0_4
## %bb.5:
	movq	_WEP_SMALL_KEY_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rcx
	movl	(%rcx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_wiphy_err
	jmp	LBB0_9
LBB0_4:
	movq	_WEP_LARGE_KEY_LEN@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_WEP_KEYS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	_DBG_MIB@GOTPCREL(%rip), %r12
	jle	LBB0_9
## %bb.7:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %r14d
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_wiphy_name
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rcx,%rbx,4), %r9d
	movl	%r14d, %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_at76_dbg
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MIB_MAC_WEP,4,2                ## @MIB_MAC_WEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"at76_get_mib (MAC_WEP) failed: %d\n"

	.comm	_DBG_MIB,4,2                    ## @DBG_MIB
L_.str.1:                               ## @.str.1
	.asciz	"%s: MIB MAC_WEP: priv_invoked %u def_key_id %u key_len %u excl_unencr %u wep_icv_err %u wep_excluded %u encr_level %u key %d"

	.comm	_WEP_SMALL_KEY_LEN,4,2          ## @WEP_SMALL_KEY_LEN
	.comm	_WEP_LARGE_KEY_LEN,4,2          ## @WEP_LARGE_KEY_LEN
	.comm	_WEP_KEYS,4,2                   ## @WEP_KEYS
L_.str.2:                               ## @.str.2
	.asciz	"%s: MIB MAC_WEP: key %d: %*phD"

	.no_dead_strip	_at76_dump_mib_mac_wep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at76_dump_mib_mac_wep
_at76_dump_mib_mac_wep:                 ; @at76_dump_mib_mac_wep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kmalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #8]
Lloh3:
	adrp	x8, _MIB_MAC_WEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIB_MAC_WEP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #40
	bl	_at76_get_mib
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh6:
	adrp	x27, _DBG_MIB@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DBG_MIB@GOTPAGEOFF]
	ldr	w21, [x27]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x22, x0
	ldr	w23, [x19, #16]
	ldp	w25, w24, [x19, #32]
	ldp	w0, w28, [x19, #24]
	bl	_le32_to_cpu
	mov	x26, x0
	ldr	w0, [x19, #20]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	ldr	w9, [x19, #16]
	stp	x8, x9, [sp, #24]
	stp	x26, x0, [sp, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x28, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x23
	mov	x5, x25
	bl	_at76_dbg
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _WEP_SMALL_KEY_LEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WEP_SMALL_KEY_LEN@GOTPAGEOFF]
Lloh12:
	adrp	x10, _WEP_LARGE_KEY_LEN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WEP_LARGE_KEY_LEN@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x10, eq
Lloh14:
	adrp	x25, _WEP_KEYS@GOTPAGE
Lloh15:
	ldr	x25, [x25, _WEP_KEYS@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x21, #0
	ldr	w22, [x8]
Lloh16:
	adrp	x23, l_.str.2@PAGE
Lloh17:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x27]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_wiphy_name
	mov	x2, x0
	ldr	x8, [x19, #8]
	ldr	w5, [x8, x21, lsl #2]
	mov	x0, x24
	mov	x1, x23
	mov	x3, x21
	mov	x4, x22
	bl	_at76_dbg
	add	x21, x21, #1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.lt	LBB0_4
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	mov	x2, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MIB_MAC_WEP,4,2                ; @MIB_MAC_WEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"at76_get_mib (MAC_WEP) failed: %d\n"

	.comm	_DBG_MIB,4,2                    ; @DBG_MIB
l_.str.1:                               ; @.str.1
	.asciz	"%s: MIB MAC_WEP: priv_invoked %u def_key_id %u key_len %u excl_unencr %u wep_icv_err %u wep_excluded %u encr_level %u key %d"

	.comm	_WEP_SMALL_KEY_LEN,4,2          ; @WEP_SMALL_KEY_LEN
	.comm	_WEP_LARGE_KEY_LEN,4,2          ; @WEP_LARGE_KEY_LEN
	.comm	_WEP_KEYS,4,2                   ; @WEP_KEYS
l_.str.2:                               ; @.str.2
	.asciz	"%s: MIB MAC_WEP: key %d: %*phD"

	.no_dead_strip	_at76_dump_mib_mac_wep
.subsections_via_symbols
