	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpa_supplicant_global_get_cookie
_wpa_supplicant_global_get_cookie:      ## @wpa_supplicant_global_get_cookie
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_COOKIE_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	leal	(%rax,%rax), %edi
	addl	$8, %edi
	callq	_os_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	_os_memcpy
	movq	%rbx, %rdi
	addq	$7, %rdi
	movl	(%r12), %ecx
	leal	(%rcx,%rcx), %esi
	incl	%esi
	movl	(%r15), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_wpa_snprintf_hex
	movslq	(%r12), %rax
	addq	%rax, %rax
	addq	$7, %rax
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	movq	%rax, (%r14)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COOKIE_LEN,4,2                 ## @COOKIE_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"COOKIE="

	.no_dead_strip	_wpa_supplicant_global_get_cookie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpa_supplicant_global_get_cookie
_wpa_supplicant_global_get_cookie:      ; @wpa_supplicant_global_get_cookie
	.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, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _COOKIE_LEN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _COOKIE_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w8, w8, #1
	add	w0, w8, #8
	bl	_os_malloc
	mov	x20, x0
	mov	w21, #1
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_os_memcpy
	add	x0, x20, #7
	ldr	w3, [x23]
	bfi	w21, w3, #1, #31
	ldr	w2, [x22]
	mov	x1, x21
	bl	_wpa_snprintf_hex
	ldrsw	x8, [x23]
	lsl	x8, x8, #1
	add	x21, x8, #7
LBB0_2:
	str	x21, [x19]
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_COOKIE_LEN,4,2                 ; @COOKIE_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"COOKIE="

	.no_dead_strip	_wpa_supplicant_global_get_cookie
.subsections_via_symbols
