	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_sm_set_ptk_kck_kek         ## -- Begin function wpa_sm_set_ptk_kck_kek
	.p2align	4, 0x90
_wpa_sm_set_ptk_kck_kek:                ## @wpa_sm_set_ptk_kck_kek
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdi, %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %rbx
	movq	_WPA_KCK_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jb	LBB0_3
## %bb.2:
	movl	28(%r12), %edi
	movq	%rbx, %rdx
	callq	_os_memcpy
	movq	%rbx, 8(%r12)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	_WPA_KEK_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jb	LBB0_6
## %bb.5:
	movl	24(%r12), %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_os_memcpy
	movq	%r14, 16(%r12)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	movl	$1, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KCK_MAX_LEN,8,3            ## @WPA_KCK_MAX_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Updated PTK KCK"

	.comm	_WPA_KEK_MAX_LEN,8,3            ## @WPA_KEK_MAX_LEN
L_.str.1:                               ## @.str.1
	.asciz	"Updated PTK KEK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_sm_set_ptk_kck_kek         ; -- Begin function wpa_sm_set_ptk_kck_kek
	.p2align	2
_wpa_sm_set_ptk_kck_kek:                ; @wpa_sm_set_ptk_kck_kek
	.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	x20, x4
	mov	x21, x3
	mov	x19, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x22, x2
Lloh2:
	adrp	x8, _WPA_KCK_MAX_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WPA_KCK_MAX_LEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x2
	b.lo	LBB0_3
; %bb.2:
	ldr	w0, [x19, #28]
	mov	x2, x22
	bl	_os_memcpy
	str	x22, [x19, #8]
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_3:
	cbz	x21, LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _WPA_KEK_MAX_LEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WPA_KEK_MAX_LEN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x20
	b.lo	LBB0_6
; %bb.5:
	ldr	w0, [x19, #24]
	mov	x1, x21
	mov	x2, x20
	bl	_os_memcpy
	str	x20, [x19, #16]
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KCK_MAX_LEN,8,3            ; @WPA_KCK_MAX_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Updated PTK KCK"

	.comm	_WPA_KEK_MAX_LEN,8,3            ; @WPA_KEK_MAX_LEN
l_.str.1:                               ; @.str.1
	.asciz	"Updated PTK KEK"

.subsections_via_symbols
