	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _gss_copy_cred
__gss_copy_cred:                        ## @_gss_copy_cred
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	16(%r15), %rdi
	callq	_strdup
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r12
	movq	24(%r15), %rdi
	callq	_strdup
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	callq	_malloc
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.4:
	movq	8(%r15), %rsi
	movl	(%r15), %edx
	callq	_memcpy
	movl	(%r15), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	movq	%r12, %rdi
	callq	_free
LBB0_6:
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_7:
	movq	24(%rax), %rdi
	callq	_free
	movq	(%r14), %rax
	movq	16(%rax), %rdi
	callq	_free
	movq	(%r14), %rdi
LBB0_8:
	callq	_free
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	__gss_copy_cred
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gss_copy_cred
__gss_copy_cred:                        ; @_gss_copy_cred
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20, #16]
	bl	_strdup
	str	x0, [x21, #16]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	x0, [x20, #24]
	bl	_strdup
	str	x0, [x21, #24]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x20]
	bl	_malloc
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x20]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_10
LBB0_5:
	mov	x0, x22
	bl	_free
LBB0_6:
	mov	x0, x21
	b	LBB0_8
LBB0_7:
	ldr	x0, [x8, #24]
	bl	_free
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	bl	_free
	ldr	x0, [x19]
LBB0_8:
	bl	_free
LBB0_9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	__gss_copy_cred
.subsections_via_symbols
