	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function derive_exporter_secret
_derive_exporter_secret:                ## @derive_exporter_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	testl	%esi, %esi
	setne	%r15b
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx,%r15,8)
	sete	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, 8(%rbx,%r15,8)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	testl	%r14d, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	%rax, %rsi
	callq	_derive_secret
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	8(,%r15,8), %rax
	testl	%r14d, %r14d
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.2(%rip), %r14
	cmoveq	%rcx, %r14
	movq	(%rbx,%rax), %rdi
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_ptls_iovec_init
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_log_secret
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movq	_PTLS_ERROR_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ## @PTLS_ERROR_NO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e exp master"

L_.str.1:                               ## @.str.1
	.asciz	"exp master"

L_.str.2:                               ## @.str.2
	.asciz	"EARLY_EXPORTER_SECRET"

L_.str.3:                               ## @.str.3
	.asciz	"EXPORTER_SECRET"

	.no_dead_strip	_derive_exporter_secret
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function derive_exporter_secret
_derive_exporter_secret:                ; @derive_exporter_secret
	.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, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	cmp	w1, #0
	mov	w8, #16
	mov	w9, #8
	csel	x21, x9, x8, eq
	ldr	x8, [x0, x21]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x19, x21]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
	bl	_derive_secret
	cbnz	w0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, l_.str.2@PAGE
Lloh5:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh6:
	adrp	x9, l_.str.3@PAGE
Lloh7:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w20, #0
	csel	x20, x9, x8, eq
	ldr	x0, [x19, x21]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_ptls_iovec_init
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_log_secret
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _PTLS_ERROR_NO_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTLS_ERROR_NO_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_ERROR_NO_MEMORY,4,2       ; @PTLS_ERROR_NO_MEMORY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e exp master"

l_.str.1:                               ; @.str.1
	.asciz	"exp master"

l_.str.2:                               ; @.str.2
	.asciz	"EARLY_EXPORTER_SECRET"

l_.str.3:                               ; @.str.3
	.asciz	"EXPORTER_SECRET"

	.no_dead_strip	_derive_exporter_secret
.subsections_via_symbols
