	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_group_ensure_init
_wpa_group_ensure_init:                 ## @wpa_group_ensure_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 8(%rsi)
	jne	LBB0_8
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%eax, %eax
	callq	_random_pool_ready
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpa_group_init_gmk_and_counter
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpa_gtk_update
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_wpa_group_config_group_keys
	testq	%rax, %rax
	jns	LBB0_8
LBB0_7:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA: Re-initialize GMK/Counter on first station"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"WPA: Not enough entropy in random pool to proceed - reject first 4-way handshake"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"WPA: GMK/GTK setup failed"

	.no_dead_strip	_wpa_group_ensure_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_group_ensure_init
_wpa_group_ensure_init:                 ; @wpa_group_ensure_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	bl	_random_pool_ready
Lloh5:
	adrp	x22, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	adrp	x21, _TRUE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x21]
	str	x8, [x19, #8]
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x22]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
Lloh13:
	adrp	x8, _TRUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	mov	x1, x19
	bl	_wpa_group_init_gmk_and_counter
	tbnz	x0, #63, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_wpa_gtk_update
	tbnz	x0, #63, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_wpa_group_config_group_keys
	tbz	x0, #63, LBB0_8
LBB0_7:
	ldr	w0, [x22]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x21]
	stp	x9, x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA: Re-initialize GMK/Counter on first station"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"WPA: Not enough entropy in random pool to proceed - reject first 4-way handshake"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"WPA: GMK/GTK setup failed"

	.no_dead_strip	_wpa_group_ensure_init
.subsections_via_symbols
