	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsskrb5_extract_authz_data_from_sec_context ## -- Begin function gsskrb5_extract_authz_data_from_sec_context
	.p2align	4, 0x90
_gsskrb5_extract_authz_data_from_sec_context: ## @gsskrb5_extract_authz_data_from_sec_context
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GSS_C_NO_BUFFER_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_GSS_C_NO_CONTEXT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	_GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-80(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_der_get_oid
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rcx
LBB0_19:
	movq	%rax, (%r15)
	movq	(%rcx), %rbx
LBB0_20:
	movq	%rbx, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movslq	-80(%rbp), %r14
	leal	1(%r14), %edi
	movl	%edi, -64(%rbp)
	movl	$4, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rbx
	movq	-72(%rbp), %rsi
	leal	(,%r14,4), %edx
	movq	%rax, %rdi
	callq	_memcpy
	leaq	-80(%rbp), %rdi
	callq	_der_free_oid
	movl	%r12d, (%rbx,%r14,4)
	leaq	-64(%rbp), %rdi
	callq	_der_length_oid
	movq	%rax, %r12
	movq	%rax, -96(%rbp)
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	(%rax,%r12), %rdi
	decq	%rdi
	leaq	-64(%rbp), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r12, %rsi
	callq	_der_put_oid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	-88(%rbp), %rdi
	callq	_free
	jmp	LBB0_1
LBB0_5:
	leaq	-80(%rbp), %rdi
	callq	_der_free_oid
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_8:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	cmpq	-112(%rbp), %r12
	jne	LBB0_21
## %bb.12:
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	-96(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_gss_inquire_sec_context_by_oid
	movq	%rax, %rbx
	movq	-88(%rbp), %rdi
	callq	_free
	testq	%rbx, %rbx
	movq	_GSS_C_NO_BUFFER_SET@GOTPCREL(%rip), %rcx
	jne	LBB0_20
## %bb.13:
	movq	-48(%rbp), %rax
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	cmpl	$1, (%rax)
	jne	LBB0_15
## %bb.16:
	movq	8(%rax), %r14
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movl	%ebx, 8(%rcx)
	movq	8(%r14), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_gss_release_buffer_set
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_15:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_gss_release_buffer_set
	jmp	LBB0_1
LBB0_17:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_gss_release_buffer_set
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_21:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ## @GSS_C_NO_BUFFER_SET
	.comm	_GSS_C_NO_CONTEXT,8,3           ## @GSS_C_NO_CONTEXT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X,8,3 ## @GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gsskrb5_extract_authz_data_from_sec_context ; -- Begin function gsskrb5_extract_authz_data_from_sec_context
	.p2align	2
_gsskrb5_extract_authz_data_from_sec_context: ; @gsskrb5_extract_authz_data_from_sec_context
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x24, _GSS_C_NO_BUFFER_SET@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GSS_C_NO_BUFFER_SET@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #56]
Lloh2:
	adrp	x8, _GSS_C_NO_CONTEXT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSS_C_NO_CONTEXT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
Lloh5:
	adrp	x8, _GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldp	w1, w0, [x8]
	add	x2, sp, #24
	mov	x3, #0
	bl	_der_get_oid
	cbz	x0, LBB0_6
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _GSS_S_FAILURE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_4:
	str	x8, [x19]
	ldr	x21, [x9]
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	ldrsw	x25, [sp, #24]
	add	w0, w25, #1
	str	w0, [sp, #8]
	mov	w1, #4
	bl	_calloc
	str	x0, [sp, #16]
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	ldr	x1, [sp, #32]
	lsl	w2, w25, #2
	bl	_memcpy
	add	x0, sp, #24
	bl	_der_free_oid
	str	w22, [x23, x25, lsl #2]
	add	x0, sp, #8
	bl	_der_length_oid
	mov	x22, x0
	str	x0, [sp, #40]
	bl	_malloc
	str	x0, [sp, #48]
	cbz	x0, LBB0_11
; %bb.8:
	add	x8, x0, x22
	sub	x0, x8, #1
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, x22
	bl	_der_put_oid
	cbz	x0, LBB0_13
; %bb.9:
	ldr	x0, [sp, #16]
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
	b	LBB0_2
LBB0_10:
	add	x0, sp, #24
	bl	_der_free_oid
	b	LBB0_12
LBB0_11:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_12:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
	ldr	x8, [sp]
	cmp	x22, x8
	b.ne	LBB0_21
; %bb.14:
	ldr	x0, [sp, #16]
	bl	_free
	add	x2, sp, #40
	add	x3, sp, #56
	mov	x0, x19
	mov	x1, x21
	bl	_gss_inquire_sec_context_by_oid
	mov	x21, x0
	ldr	x0, [sp, #48]
	bl	_free
	cbnz	x21, LBB0_5
; %bb.15:
	ldr	x8, [sp, #56]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.16:
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_19
; %bb.17:
	ldr	x22, [x8, #8]
	ldr	x21, [x22]
	mov	x0, x21
	bl	_malloc
	str	x0, [x20]
	cbz	x0, LBB0_20
; %bb.18:
	str	w21, [x20, #8]
	ldr	x1, [x22, #8]
	mov	x2, x21
	bl	_memcpy
	add	x1, sp, #56
	mov	x0, x19
	bl	_gss_release_buffer_set
	mov	x8, #0
Lloh14:
	adrp	x9, _GSS_S_COMPLETE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
	add	x1, sp, #56
	mov	x0, x19
	bl	_gss_release_buffer_set
	b	LBB0_2
LBB0_20:
	add	x1, sp, #56
	mov	x0, x19
	bl	_gss_release_buffer_set
	b	LBB0_12
LBB0_21:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GSS_C_NO_BUFFER_SET,8,3        ; @GSS_C_NO_BUFFER_SET
	.comm	_GSS_C_NO_CONTEXT,8,3           ; @GSS_C_NO_CONTEXT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X,8,3 ; @GSS_KRB5_EXTRACT_AUTHZ_DATA_FROM_SEC_CONTEXT_X
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
