	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_wrap
_test_wrap:                             ## @test_wrap
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	$3, -64(%rbp)
	leaq	-96(%rbp), %r14
	movq	%r14, %rdi
	callq	_krb5_data_zero
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_zero
	leaq	-72(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	%r14, %r8
	callq	_encrypt_token
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	-96(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_decrypt_token
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	leaq	-96(%rbp), %rdi
	callq	_krb5_data_free
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_warnx
LBB0_12:
	movq	%r13, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movslq	-64(%rbp), %rdx
	movslq	-48(%rbp), %rax
	cmpl	%eax, %edx
	jne	LBB0_6
## %bb.7:
	movq	-72(%rbp), %rdi
	movq	-56(%rbp), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_warnx
LBB0_10:
	movq	_GSMERR_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_11:
	leaq	-96(%rbp), %rdi
	callq	_krb5_data_free
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_12
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"foo"

L_.str.1:                               ## @.str.1
	.asciz	"encrypt_token failed to host: %s"

L_.str.2:                               ## @.str.2
	.asciz	"decrypt_token failed to host: %s"

L_.str.3:                               ## @.str.3
	.asciz	"decrypted'ed token have wrong length (%lu != %lu)"

	.comm	_GSMERR_ERROR,8,3               ## @GSMERR_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"decryptd'ed token have wrong data"

	.no_dead_strip	_test_wrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_wrap
_test_wrap:                             ; @test_wrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	mov	w8, #3
Lloh0:
	adrp	x9, l_.str@PAGE
Lloh1:
	add	x9, x9, l_.str@PAGEOFF
	str	x9, [sp, #48]
	str	w8, [sp, #56]
	add	x0, sp, #32
	bl	_krb5_data_zero
	add	x0, sp, #16
	bl	_krb5_data_zero
	add	x3, sp, #48
	add	x4, sp, #32
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_encrypt_token
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w8, [x23]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warnx
	b	LBB0_10
LBB0_2:
	add	x3, sp, #32
	add	x4, sp, #16
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_decrypt_token
	cbz	x0, LBB0_4
; %bb.3:
	mov	x19, x0
	add	x0, sp, #32
	bl	_krb5_data_free
	ldr	w8, [x20]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	b	LBB0_10
LBB0_4:
	ldrsw	x2, [sp, #56]
	ldrsw	x8, [sp, #24]
	cmp	w2, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [sp, #48]
	ldr	x1, [sp, #16]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcmp
	cbz	x0, LBB0_11
; %bb.6:
Lloh6:
	adrp	x0, l_.str.4@PAGE
Lloh7:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:
	stp	x2, x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_warnx
Lloh10:
	adrp	x8, _GSMERR_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GSMERR_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	x19, [x8]
LBB0_9:
	add	x0, sp, #32
	bl	_krb5_data_free
	add	x0, sp, #16
	bl	_krb5_data_free
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	mov	x19, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"foo"

l_.str.1:                               ; @.str.1
	.asciz	"encrypt_token failed to host: %s"

l_.str.2:                               ; @.str.2
	.asciz	"decrypt_token failed to host: %s"

l_.str.3:                               ; @.str.3
	.asciz	"decrypted'ed token have wrong length (%lu != %lu)"

	.comm	_GSMERR_ERROR,8,3               ; @GSMERR_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"decryptd'ed token have wrong data"

	.no_dead_strip	_test_wrap
.subsections_via_symbols
