	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_wrap_ext
_test_wrap_ext:                         ## @test_wrap_ext
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -120(%rbp)
	movl	$6, -112(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	$32, -64(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -136(%rbp)
	movl	$7, -128(%rbp)
	leaq	-104(%rbp), %r13
	movq	%r13, %rdi
	callq	_krb5_data_zero
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_zero
	leaq	-136(%rbp), %rax
	leaq	-120(%rbp), %r8
	leaq	-72(%rbp), %r9
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	pushq	%r13
	movq	%rax, %r13
	pushq	%rax
	callq	_wrap_token_ext
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	leaq	-120(%rbp), %r8
	leaq	-104(%rbp), %r9
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%r15d, %ecx
	leaq	-56(%rbp), %rax
	pushq	%rax
	pushq	%r13
	callq	_unwrap_token_ext
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	leaq	-104(%rbp), %rdi
	callq	_krb5_data_free
	movl	(%r14), %esi
	leaq	L_.str.4(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_warnx
LBB0_12:
	movq	%rbx, %rax
	addq	$104, %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.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.5(%rip), %rdi
	movq	%rdx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_warnx
LBB0_10:
	movq	_GSMERR_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_11:
	leaq	-104(%rbp), %rdi
	callq	_krb5_data_free
	leaq	-56(%rbp), %rdi
	callq	_krb5_data_free
	jmp	LBB0_12
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"header"

L_.str.1:                               ## @.str.1
	.asciz	"0123456789abcdef"

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

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

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

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

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

	.no_dead_strip	_test_wrap_ext
.subsections_via_symbols

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

l_.str.1:                               ; @.str.1
	.asciz	"0123456789abcdef"

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

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

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

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

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

	.no_dead_strip	_test_wrap_ext
.subsections_via_symbols
