	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_key_alloc            ## -- Begin function ieee80211_key_alloc
	.p2align	4, 0x90
_ieee80211_key_alloc:                   ## @ieee80211_key_alloc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, %r14d
	movl	%edi, %r13d
	testl	%esi, %esi
	js	LBB0_1
## %bb.2:
	movq	_NUM_DEFAULT_KEYS@GOTPCREL(%rip), %rax
	movq	_NUM_DEFAULT_MGMT_KEYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%r14d, %ecx
	setle	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_BUG_ON
	leal	104(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%r12, %rcx
	movq	%rax, %r12
	movq	$0, 40(%rax)
	movq	$0, 96(%rax)
	movl	%r13d, 8(%rax)
	movl	%r14d, 12(%rax)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, 16(%rax)
	addl	$-128, %r13d
	cmpl	$4, %r13d
	ja	LBB0_31
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_30:
	movq	_WEP_IV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_WEP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	jmp	LBB0_31
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_5
LBB0_8:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_TKIP_IV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_TKIP_ICV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.9:
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.10:
	leaq	8(%rbx), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_get_unaligned_le32
	movq	88(%r12), %rcx
	movl	%eax, 4(%rcx,%r15,8)
	movq	%rbx, %rdi
	callq	_get_unaligned_le16
	movq	88(%r12), %rcx
	movl	%eax, (%rcx,%r15,8)
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	addq	$80, %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_13:
	movq	_CCMP_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_CCMP_MIC_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.14:
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %r8
	movl	(%r8), %edi
	testl	%edi, %edi
	js	LBB0_21
## %bb.15:
	movq	_CCMP_PN_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%r9d, %r9d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%r9), %rax
	movslq	%edi, %rdx
	cmpq	%rdx, %r9
	movq	%rax, %r9
	jge	LBB0_21
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	testl	%esi, %esi
	jle	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	72(%r12), %rax
	movq	(%rax,%r9,8), %rdi
	movl	$-1, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%eax, %esi
	movslq	%esi, %rsi
	movl	(%rbx,%rsi,4), %esi
	movl	%esi, (%rdi,%rdx,4)
	incq	%rdx
	movslq	(%rcx), %rsi
	decl	%eax
	cmpq	%rsi, %rdx
	jl	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r8), %edi
	jmp	LBB0_20
LBB0_24:
	movl	$0, 32(%r12)
	movl	$4, 24(%r12)
	testq	%rbx, %rbx
	je	LBB0_28
## %bb.25:
	movq	_CMAC_PN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_28
## %bb.26:
	movq	56(%r12), %rcx
	movl	$-1, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	addl	%esi, %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	movl	%edx, (%rcx,%rdi,4)
	incq	%rdi
	movslq	(%rax), %rdx
	decl	%esi
	cmpq	%rdx, %rdi
	jl	LBB0_27
LBB0_28:
	movq	%r15, %rdi
	callq	_ieee80211_aes_cmac_key_setup
	movl	%eax, 48(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_31
## %bb.29:
	movl	48(%r12), %edi
	jmp	LBB0_23
LBB0_21:
	movq	%r15, %rdi
	callq	_ieee80211_aes_key_setup_encrypt
	movl	%eax, 64(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_31
## %bb.22:
	movl	64(%r12), %edi
LBB0_23:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %edi
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_31:
	movl	28(%r12), %edi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_memcpy
	movq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
LJTI0_0:
	.long	L0_0_set_30
	.long	L0_0_set_30
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_24
	.end_data_region
                                        ## -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ## @NUM_DEFAULT_KEYS
	.comm	_NUM_DEFAULT_MGMT_KEYS,4,2      ## @NUM_DEFAULT_MGMT_KEYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WEP_IV_LEN,4,2                 ## @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,4,2                ## @WEP_ICV_LEN
	.comm	_TKIP_IV_LEN,4,2                ## @TKIP_IV_LEN
	.comm	_TKIP_ICV_LEN,4,2               ## @TKIP_ICV_LEN
	.comm	_IEEE80211_NUM_TIDS,4,2         ## @IEEE80211_NUM_TIDS
	.comm	_CCMP_HDR_LEN,4,2               ## @CCMP_HDR_LEN
	.comm	_CCMP_MIC_LEN,4,2               ## @CCMP_MIC_LEN
	.comm	_CCMP_PN_LEN,4,2                ## @CCMP_PN_LEN
	.comm	_CMAC_PN_LEN,4,2                ## @CMAC_PN_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_key_alloc            ; -- Begin function ieee80211_key_alloc
	.p2align	2
_ieee80211_key_alloc:                   ; @ieee80211_key_alloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x5
	mov	x20, x3
	mov	x19, x2
	mov	x24, x1
	mov	x23, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NUM_DEFAULT_KEYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_DEFAULT_KEYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUM_DEFAULT_MGMT_KEYS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_DEFAULT_MGMT_KEYS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w24
	cset	w0, le
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_BUG_ON
	add	w0, w19, #104
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x21, x0
	str	xzr, [x0, #40]
	str	xzr, [x0, #96]
	stp	w23, w24, [x0, #8]
	sub	w8, w23, #128
	str	x19, [x0, #16]
	cmp	w8, #4
	b.hi	LBB0_31
; %bb.5:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh11:
	adrp	x8, _WEP_IV_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WEP_IV_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh14:
	adrp	x8, _WEP_ICV_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WEP_ICV_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	b	LBB0_31
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_30
LBB0_8:
Lloh20:
	adrp	x8, _TKIP_IV_LEN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TKIP_IV_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh23:
	adrp	x8, _TKIP_ICV_LEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TKIP_ICV_LEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	cbz	x22, LBB0_12
; %bb.9:
Lloh26:
	adrp	x24, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh27:
	ldr	x24, [x24, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x25, #0
	mov	x26, #0
	add	x23, x22, #8
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_get_unaligned_le32
	ldr	x8, [x21, #88]
	add	x8, x8, x25
	str	w0, [x8, #4]
	mov	x0, x22
	bl	_get_unaligned_le16
	ldr	x8, [x21, #88]
	str	w0, [x8, x25]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #8
	cmp	x26, x8
	b.lt	LBB0_11
LBB0_12:
	add	x0, x21, #80
	bl	_spin_lock_init
	b	LBB0_31
LBB0_13:
Lloh28:
	adrp	x8, _CCMP_HDR_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CCMP_HDR_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh31:
	adrp	x8, _CCMP_MIC_LEN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CCMP_MIC_LEN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x21, #24]
	cbz	x22, LBB0_27
; %bb.14:
Lloh34:
	adrp	x8, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
	ldr	w12, [x8]
	tbnz	w12, #31, LBB0_27
; %bb.15:
	mov	x10, #0
Lloh36:
	adrp	x9, _CCMP_PN_LEN@GOTPAGE
Lloh37:
	ldr	x9, [x9, _CCMP_PN_LEN@GOTPAGEOFF]
	ldr	w11, [x9]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	cmp	x10, w12, sxtw
	add	x10, x10, #1
	b.ge	LBB0_27
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
	cmp	w11, #1
	b.lt	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x12, #0
	ldr	x13, [x21, #72]
	ldr	x13, [x13, x10, lsl #3]
	mov	w14, #-1
LBB0_19:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w11, w11, w14
	ldr	w11, [x22, w11, sxtw #2]
	str	w11, [x13, x12, lsl #2]
	add	x12, x12, #1
	ldrsw	x11, [x9]
	sub	w14, w14, #1
	cmp	x12, x11
	b.lt	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w12, [x8]
	b	LBB0_16
LBB0_21:
	str	wzr, [x21, #32]
	mov	w8, #4
	str	w8, [x21, #24]
	cbz	x22, LBB0_25
; %bb.22:
Lloh38:
	adrp	x8, _CMAC_PN_LEN@GOTPAGE
Lloh39:
	ldr	x8, [x8, _CMAC_PN_LEN@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_25
; %bb.23:
	mov	x9, #0
	ldr	x11, [x21, #56]
	mov	w12, #-1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	w10, w10, w12
	ldr	w10, [x22, w10, sxtw #2]
	str	w10, [x11, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x10, [x8]
	sub	w12, w12, #1
	cmp	x9, x10
	b.lt	LBB0_24
LBB0_25:
	mov	x0, x20
	bl	_ieee80211_aes_cmac_key_setup
	str	w0, [x21, #48]
	bl	_IS_ERR
	cbz	w0, LBB0_31
; %bb.26:
	ldr	w0, [x21, #48]
	b	LBB0_29
LBB0_27:
	mov	x0, x20
	bl	_ieee80211_aes_key_setup_encrypt
	str	w0, [x21, #64]
	bl	_IS_ERR
	cbz	w0, LBB0_31
; %bb.28:
	ldr	w0, [x21, #64]
LBB0_29:
	bl	_PTR_ERR
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
LBB0_30:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_31:
	ldr	w0, [x21, #28]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_21-LBB0_6)>>2
                                        ; -- End function
	.comm	_NUM_DEFAULT_KEYS,4,2           ; @NUM_DEFAULT_KEYS
	.comm	_NUM_DEFAULT_MGMT_KEYS,4,2      ; @NUM_DEFAULT_MGMT_KEYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WEP_IV_LEN,4,2                 ; @WEP_IV_LEN
	.comm	_WEP_ICV_LEN,4,2                ; @WEP_ICV_LEN
	.comm	_TKIP_IV_LEN,4,2                ; @TKIP_IV_LEN
	.comm	_TKIP_ICV_LEN,4,2               ; @TKIP_ICV_LEN
	.comm	_IEEE80211_NUM_TIDS,4,2         ; @IEEE80211_NUM_TIDS
	.comm	_CCMP_HDR_LEN,4,2               ; @CCMP_HDR_LEN
	.comm	_CCMP_MIC_LEN,4,2               ; @CCMP_MIC_LEN
	.comm	_CCMP_PN_LEN,4,2                ; @CCMP_PN_LEN
	.comm	_CMAC_PN_LEN,4,2                ; @CMAC_PN_LEN
.subsections_via_symbols
