	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrapunwrap
_wrapunwrap:                            ## @wrapunwrap
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %ebx
	movl	%edi, %esi
	leaq	L_.str(%rip), %rax
	movq	%rax, -72(%rbp)
	movl	$3, -64(%rbp)
	leaq	-56(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %rdi
	leaq	-72(%rbp), %r8
	leaq	-36(%rbp), %r9
	xorl	%ecx, %ecx
	callq	_gss_wrap
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_2
## %bb.1:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_gssapi_err
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	leaq	-32(%rbp), %rdi
	leaq	-56(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	leaq	-36(%rbp), %r8
	leaq	-40(%rbp), %r9
	movl	%ebx, %esi
	callq	_gss_unwrap
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.3:
	movq	-32(%rbp), %rsi
	movq	%rax, %rdi
	movl	%r14d, %edx
	callq	_gssapi_err
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	leaq	-32(%rbp), %rbx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gss_release_buffer
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_gss_release_buffer
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"foo"

	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
L_.str.1:                               ## @.str.1
	.asciz	"gss_wrap failed: %s"

L_.str.2:                               ## @.str.2
	.asciz	"gss_unwrap failed: %s"

	.no_dead_strip	_wrapunwrap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrapunwrap
_wrapunwrap:                            ; @wrapunwrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x3
	mov	x20, x1
	mov	x1, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	stur	x8, [x29, #-48]
	mov	w8, #3
	stur	w8, [x29, #-40]
	add	x0, sp, #24
	sub	x4, x29, #48
	add	x5, sp, #16
	add	x6, sp, #48
	mov	w3, #0
	bl	_gss_wrap
Lloh2:
	adrp	x21, _GSS_S_COMPLETE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GSS_S_COMPLETE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	x1, [sp, #24]
	mov	x2, x19
	bl	_gssapi_err
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
	add	x0, sp, #24
	add	x2, sp, #48
	add	x3, sp, #32
	add	x4, sp, #16
	add	x5, sp, #20
	mov	x1, x20
	bl	_gss_unwrap
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	x1, [sp, #24]
	mov	x2, x19
	bl	_gssapi_err
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	add	x0, sp, #24
	add	x1, sp, #48
	bl	_gss_release_buffer
	add	x0, sp, #24
	add	x1, sp, #32
	bl	_gss_release_buffer
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"foo"

	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
l_.str.1:                               ; @.str.1
	.asciz	"gss_wrap failed: %s"

l_.str.2:                               ; @.str.2
	.asciz	"gss_unwrap failed: %s"

	.no_dead_strip	_wrapunwrap
.subsections_via_symbols
