	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_tls_crypt_setup
_test_tls_crypt_setup:                  ## @test_tls_crypt_setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, (%r14)
	movl	$0, -48(%rbp)
	xorl	%eax, %eax
	callq	_tls_crypt_kt
	movq	%rax, 36(%rbx)
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_3
## %bb.1:
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	36(%rbx), %r14
	leaq	24(%rbx), %r15
	leaq	28(%rbx), %r12
	leaq	32(%rbx), %rdi
	leaq	L_.str(%rip), %r8
	leaq	-48(%rbp), %r13
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_init_key_ctx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	leaq	L_.str(%rip), %r8
	callq	_init_key_ctx
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_packet_id_init
	movq	_TESTBUF_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_alloc_buf
	movq	%rbx, %r14
	addq	$8, %r14
	movq	%rax, 8(%rbx)
	movl	(%r15), %edi
	callq	_alloc_buf
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	callq	_alloc_buf
	movq	%rax, 16(%rbx)
	leaq	L_.str.2(%rip), %r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_buf_write
	leaq	L_.str.3(%rip), %r14
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_buf_write
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TEST"

L_.str.1:                               ## @.str.1
	.asciz	"test"

	.comm	_TESTBUF_SIZE,4,2               ## @TESTBUF_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"1234567890"

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

	.no_dead_strip	_test_tls_crypt_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_tls_crypt_setup
_test_tls_crypt_setup:                  ; @test_tls_crypt_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x19, x0
	str	x0, [x20]
	str	wzr, [sp, #8]
	bl	_tls_crypt_kt
	mov	x20, x19
	str	x0, [x20, #36]!
	lsr	x8, x0, #32
	cbz	x8, LBB0_3
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	add	x21, x19, #24
	add	x22, x19, #28
	add	x0, x19, #32
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	add	x1, sp, #8
	mov	x2, x20
	mov	w3, #1
	mov	x4, x23
	bl	_init_key_ctx
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x20
	mov	w3, #0
	mov	x4, x23
	bl	_init_key_ctx
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_packet_id_init
Lloh4:
	adrp	x21, _TESTBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x21, [x21, _TESTBUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_alloc_buf
	mov	x20, x19
	str	x0, [x20, #8]!
	ldr	w0, [x21]
	bl	_alloc_buf
	str	x0, [x19]
	ldr	w0, [x21]
	bl	_alloc_buf
	str	x0, [x19, #16]
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_buf_write
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_buf_write
LBB0_3:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TEST"

l_.str.1:                               ; @.str.1
	.asciz	"test"

	.comm	_TESTBUF_SIZE,4,2               ; @TESTBUF_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"1234567890"

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

	.no_dead_strip	_test_tls_crypt_setup
.subsections_via_symbols
