	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_group_init_gmk_and_counter
_wpa_group_init_gmk_and_counter:        ## @wpa_group_init_gmk_and_counter
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	leaq	64(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	8(%r15), %rdi
	movq	_WPA_GMK_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_random_get_bytes
	movl	$-1, %ecx
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rdx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_hexdump_key
	movq	(%r13), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_os_memcpy
	movslq	(%r14), %rax
	leaq	(%r12,%rax,4), %rdi
	callq	_wpa_get_ntp_timestamp
	movq	%r15, -184(%rbp)
	movslq	(%r14), %rax
	leaq	(%r12,%rax,4), %rdi
	addq	$32, %rdi
	leaq	-184(%rbp), %rsi
	movl	$8, %edx
	callq	_os_memcpy
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	callq	_random_get_bytes
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	addq	$16, %rbx
	shll	$2, %ebx
	movq	(%r15), %r9
	movq	_WPA_NONCE_LEN@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
	leaq	-176(%rbp), %rdi
	movl	$128, %esi
	movq	%r12, %rcx
	movl	%ebx, %r8d
	pushq	%rax
	callq	_sha1_prf
	addq	$16, %rsp
	testq	%rax, %rax
	movl	$-1, %ecx
	js	LBB0_5
## %bb.4:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movl	(%r14), %ecx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump_key
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %ecx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ecx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WPA_GMK_LEN,4,2                ## @WPA_GMK_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GMK"

L_.str.1:                               ## @.str.1
	.asciz	"Init Counter"

	.comm	_WPA_NONCE_LEN,4,2              ## @WPA_NONCE_LEN
L_.str.2:                               ## @.str.2
	.asciz	"Key Counter"

	.no_dead_strip	_wpa_group_init_gmk_and_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_group_init_gmk_and_counter
_wpa_group_init_gmk_and_counter:        ; @wpa_group_init_gmk_and_counter
	.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
	sub	sp, sp, #144
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	ldrsw	x8, [x24]
	add	x22, x8, #16
	lsl	x8, x22, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x0, [x1, #8]
Lloh7:
	adrp	x25, _WPA_GMK_LEN@GOTPAGE
Lloh8:
	ldr	x25, [x25, _WPA_GMK_LEN@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_4
; %bb.1:
Lloh9:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	x2, [x19, #8]
	ldr	w3, [x25]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_hexdump_key
	ldr	x1, [x21]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_os_memcpy
	ldrsw	x8, [x24]
	add	x0, x20, x8, lsl #2
	bl	_wpa_get_ntp_timestamp
	stur	x19, [x29, #-208]
	ldrsw	x8, [x24]
	add	x8, x20, x8, lsl #2
	add	x0, x8, #32
	sub	x1, x29, #208
	mov	w2, #8
	bl	_os_memcpy
	sub	x0, x29, #200
	mov	w1, #128
	bl	_random_get_bytes
	tbnz	x0, #63, LBB0_4
; %bb.2:
	lsl	w4, w22, #2
	ldr	x5, [x19]
Lloh13:
	adrp	x21, _WPA_NONCE_LEN@GOTPAGE
Lloh14:
	ldr	x21, [x21, _WPA_NONCE_LEN@GOTPAGEOFF]
	ldr	w6, [x21]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	sub	x0, x29, #200
	mov	w1, #128
	mov	x3, x20
	bl	_sha1_prf
	tbnz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	ldr	x2, [x19]
	ldr	w3, [x21]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump_key
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	sub	sp, x29, #64
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WPA_GMK_LEN,4,2                ; @WPA_GMK_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GMK"

l_.str.1:                               ; @.str.1
	.asciz	"Init Counter"

	.comm	_WPA_NONCE_LEN,4,2              ; @WPA_NONCE_LEN
l_.str.2:                               ; @.str.2
	.asciz	"Key Counter"

	.no_dead_strip	_wpa_group_init_gmk_and_counter
.subsections_via_symbols
