	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_token_init_secret         ## -- Begin function auth_token_init_secret
	.p2align	4, 0x90
_auth_token_init_secret:                ## @auth_token_init_secret
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_auth_token_kt
	movl	%eax, -48(%rbp)
	movl	$2048, %edi                     ## imm = 0x800
	callq	_alloc_buf
	movl	%eax, -32(%rbp)
	movq	_auth_token_pem_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_read_pem_key_file
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_msg
LBB0_5:
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_buf_read
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_msg
LBB0_7:
	leaq	L_.str.2(%rip), %r8
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_init_key_ctx
	leaq	-32(%rbp), %rdi
	callq	_free_buf
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	_generate_ephemeral_key
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_auth_token_pem_name,4,2        ## @auth_token_pem_name
	.comm	_M_FATAL,4,2                    ## @M_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: Cannot load auth-token secret"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: not enough data in auth-token secret"

L_.str.2:                               ## @.str.2
	.asciz	"auth-token secret"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_auth_token_init_secret         ; -- Begin function auth_token_init_secret
	.p2align	2
_auth_token_init_secret:                ; @auth_token_init_secret
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_auth_token_kt
	str	w0, [sp, #24]
	mov	w0, #2048
	bl	_alloc_buf
	str	w0, [sp, #16]
Lloh0:
	adrp	x8, _auth_token_pem_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _auth_token_pem_name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #16
	cbz	x21, LBB0_6
; %bb.1:
	mov	x2, x21
	mov	x3, x20
	bl	_read_pem_key_file
	cbnz	w0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_msg
LBB0_3:
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #4
	bl	_buf_read
	cbnz	w0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg
LBB0_5:
Lloh13:
	adrp	x4, l_.str.2@PAGE
Lloh14:
	add	x4, x4, l_.str.2@PAGEOFF
	add	x1, sp, #8
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #0
	bl	_init_key_ctx
	add	x0, sp, #16
	bl	_free_buf
	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
	add	sp, sp, #80
	ret
LBB0_6:
	bl	_generate_ephemeral_key
	cbnz	w0, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_auth_token_pem_name,4,2        ; @auth_token_pem_name
	.comm	_M_FATAL,4,2                    ; @M_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: Cannot load auth-token secret"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: not enough data in auth-token secret"

l_.str.2:                               ; @.str.2
	.asciz	"auth-token secret"

.subsections_via_symbols
