	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_gmk_to_gtk
_wpa_gmk_to_gtk:                        ## @wpa_gmk_to_gtk
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %rdx
	movq	_WPA_GTK_MAX_LEN@GOTPCREL(%rip), %rcx
	addl	(%rdx), %eax
	movl	(%rcx), %ecx
	leal	(%rax,%rcx), %ebx
	addl	%ecx, %eax
	addl	$8, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	32(,%rbx,4), %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_os_memset
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_os_memcpy
	movslq	(%r13), %rax
	leaq	(%r15,%rax,4), %rdi
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_os_memcpy
	movslq	(%r13), %rax
	leaq	(%r15,%rax,4), %r12
	movslq	(%rbx), %rbx
	leaq	(%r12,%rbx,4), %rdi
	callq	_wpa_get_ntp_timestamp
	leaq	(%r12,%rbx,4), %rdi
	addq	$32, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_random_get_bytes
	movq	%rax, %r12
	sarq	$63, %r12
	movq	_WPA_GMK_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%r14d, %r8d
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	pushq	%rbx
	callq	_sha1_prf
	addq	$16, %rsp
	testq	%rax, %rax
	movl	$-1, %ebx
	cmovnsl	%r12d, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_forced_memzero
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPA_NONCE_LEN,4,2              ## @WPA_NONCE_LEN
	.comm	_WPA_GTK_MAX_LEN,4,2            ## @WPA_GTK_MAX_LEN
	.comm	_WPA_GMK_LEN,4,2                ## @WPA_GMK_LEN
	.no_dead_strip	_wpa_gmk_to_gtk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_gmk_to_gtk
_wpa_gmk_to_gtk:                        ; @wpa_gmk_to_gtk
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x5
	mov	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x27, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ETH_ALEN@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh5:
	adrp	x28, _WPA_NONCE_LEN@GOTPAGE
Lloh6:
	ldr	x28, [x28, _WPA_NONCE_LEN@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh7:
	adrp	x10, _WPA_GTK_MAX_LEN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _WPA_GTK_MAX_LEN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	add	w8, w8, w9
	add	w8, w8, w10
	add	w8, w8, #8
	lsl	x9, x8, #2
	add	x10, x9, #15
	and	x12, x10, #0x7fffffff0
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x12
	mov	sp, x23
	lsl	w26, w8, #2
	mov	x0, x23
	mov	w1, #0
	mov	x2, x26
	bl	_os_memset
	ldr	w2, [x27]
	mov	x0, x23
	mov	x1, x25
	bl	_os_memcpy
	ldrsw	x8, [x27]
	add	x0, x23, x8, lsl #2
	ldr	w2, [x28]
	mov	x1, x24
	bl	_os_memcpy
	ldrsw	x8, [x27]
	add	x8, x23, x8, lsl #2
	ldrsw	x9, [x28]
	add	x24, x8, x9, lsl #2
	mov	x0, x24
	bl	_wpa_get_ntp_timestamp
	add	x0, x24, #32
	mov	x1, x19
	bl	_random_get_bytes
	asr	x24, x0, #63
Lloh12:
	adrp	x8, _WPA_GMK_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WPA_GMK_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x26
	mov	x5, x20
	mov	x6, x19
	bl	_sha1_prf
	cmp	x0, #0
	csinv	w19, w24, wzr, ge
	mov	x0, x23
	mov	x1, x26
	bl	_forced_memzero
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPA_NONCE_LEN,4,2              ; @WPA_NONCE_LEN
	.comm	_WPA_GTK_MAX_LEN,4,2            ; @WPA_GTK_MAX_LEN
	.comm	_WPA_GMK_LEN,4,2                ; @WPA_GMK_LEN
	.no_dead_strip	_wpa_gmk_to_gtk
.subsections_via_symbols
