	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lib80211_ccmp_set_key
_lib80211_ccmp_set_key:                 ## @lib80211_ccmp_set_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %r13
	movl	(%rcx), %r12d
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r12d, (%rbx)
	movq	%r13, 16(%rbx)
	movq	_CCMP_TK_LEN@GOTPCREL(%rip), %r13
	cmpl	%r15d, (%r13)
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movl	$1, 4(%rbx)
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	40(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	32(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	24(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	16(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	8(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 32(%rcx)
	movq	(%r14), %rax
	movq	24(%rbx), %rcx
	movq	%rax, 40(%rcx)
LBB0_3:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	movl	(%r13), %edx
	callq	_crypto_cipher_setkey
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %eax
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.5:
	movl	$0, 4(%rbx)
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCMP_TK_LEN,4,2                ## @CCMP_TK_LEN
	.no_dead_strip	_lib80211_ccmp_set_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lib80211_ccmp_set_key
_lib80211_ccmp_set_key:                 ; @lib80211_ccmp_set_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x3, #16]
	ldr	w24, [x3]
	mov	x0, x3
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	str	w24, [x19]
	str	x23, [x19, #16]
Lloh0:
	adrp	x23, _CCMP_TK_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CCMP_TK_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #4]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	x8, [x20, #40]
	ldr	x9, [x19, #24]
	str	x8, [x9]
	ldr	x8, [x20, #32]
	ldr	x9, [x19, #24]
	str	x8, [x9, #8]
	ldr	x8, [x20, #24]
	ldr	x9, [x19, #24]
	str	x8, [x9, #16]
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #24]
	str	x8, [x9, #24]
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #24]
	str	x8, [x9, #32]
	ldr	x8, [x20]
	ldr	x9, [x19, #24]
	str	x8, [x9, #40]
LBB0_3:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	ldr	w2, [x23]
	bl	_crypto_cipher_setkey
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	cbz	w21, LBB0_6
; %bb.5:
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	mov	w0, #0
	str	wzr, [x19, #4]
LBB0_7:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CCMP_TK_LEN,4,2                ; @CCMP_TK_LEN
	.no_dead_strip	_lib80211_ccmp_set_key
.subsections_via_symbols
