	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_logon_name
_build_logon_name:                      ## @build_logon_name
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movl	%edi, %r14d
	movl	%esi, %edi
	callq	_unix2nttime
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_krb5_data_zero
	xorl	%eax, %eax
	callq	_krb5_storage_emem
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	movq	_KRB5_STORAGE_BYTEORDER_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_krb5_storage_set_flags
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_krb5_store_uint32
	movq	_out@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %esi
	callq	_CHECK
	movq	%r12, %rdi
	callq	_krb5_store_uint32
	movl	(%rbx), %edx
	movl	%eax, %esi
	callq	_CHECK
	movq	_KRB5_PRINCIPAL_UNPARSE_NO_REALM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r13d, %esi
	callq	_krb5_unparse_name_flags
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_13:
	movq	%r12, %rdi
	callq	_krb5_storage_free
	jmp	LBB0_16
LBB0_17:
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_krb5_enomem                    ## TAILCALL
LBB0_2:
	movq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_wind_utf8ucs2_length
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_free
	leaq	L_.str(%rip), %rdx
LBB0_8:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_krb5_set_error_message
LBB0_16:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rdi
	callq	_malloc
	movq	-64(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%rax, %rsi
	callq	_wind_utf8ucs2
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_free
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_5:
	callq	_free
	movl	%r14d, %edi
	callq	_krb5_enomem
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_9:
	movq	-48(%rbp), %rbx
	leaq	(%rbx,%rbx), %rdi
	addq	$2, %rdi
	movq	%rdi, -56(%rbp)
	callq	_malloc
	movq	%rax, %rcx
	movq	_WIND_RW_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	leaq	-68(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_wind_ucs2write
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_free
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_8
LBB0_11:
	movq	-48(%rbp), %rsi
	addq	%rsi, %rsi
	movq	%rsi, -56(%rbp)
	movq	%r12, %rdi
	callq	_krb5_store_uint16
	movq	_out@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_CHECK
	movq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_krb5_storage_write
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_free
	cmpl	-56(%rbp), %r13d
	jne	LBB0_12
## %bb.14:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_krb5_storage_to_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.15:
	movq	%r12, %rdi
	callq	_krb5_storage_free
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_12:
	movl	%r14d, %edi
	callq	_krb5_enomem
	movl	%eax, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_KRB5_STORAGE_BYTEORDER_LE,4,2  ## @KRB5_STORAGE_BYTEORDER_LE
	.comm	_out,4,2                        ## @out
	.comm	_KRB5_PRINCIPAL_UNPARSE_NO_REALM,4,2 ## @KRB5_PRINCIPAL_UNPARSE_NO_REALM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to count length of UTF-8 string"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to convert string to UCS-2"

	.comm	_WIND_RW_LE,4,2                 ## @WIND_RW_LE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to write to UCS-2 buffer"

	.no_dead_strip	_build_logon_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_logon_name
_build_logon_name:                      ; @build_logon_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x22, x2
	mov	x19, x0
	mov	x0, x1
	bl	_unix2nttime
	mov	x23, x0
	mov	x0, x21
	bl	_krb5_data_zero
	bl	_krb5_storage_emem
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _KRB5_STORAGE_BYTEORDER_LE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KRB5_STORAGE_BYTEORDER_LE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_krb5_storage_set_flags
	mov	x0, x20
	mov	x1, x23
	bl	_krb5_store_uint32
Lloh3:
	adrp	x25, _out@GOTPAGE
Lloh4:
	ldr	x25, [x25, _out@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, x0
	bl	_CHECK
	mov	x0, x20
	bl	_krb5_store_uint32
	ldr	w2, [x25]
	mov	x1, x0
	bl	_CHECK
Lloh5:
	adrp	x8, _KRB5_PRINCIPAL_UNPARSE_NO_REALM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KRB5_PRINCIPAL_UNPARSE_NO_REALM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_unparse_name_flags
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x20
	bl	_krb5_storage_free
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_krb5_enomem
LBB0_4:
	ldr	x0, [sp, #24]
	add	x1, sp, #8
	bl	_wind_utf8ucs2_length
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_free
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x1, x22
	bl	_krb5_set_error_message
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_malloc
	mov	x24, x0
	ldr	x0, [sp, #24]
	cbz	x24, LBB0_11
; %bb.9:
	add	x2, sp, #8
	mov	x1, x24
	bl	_wind_utf8ucs2
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_free
	cbz	w22, LBB0_12
; %bb.10:
	mov	x0, x24
	bl	_free
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_11:
	bl	_free
	mov	x0, x19
	bl	_krb5_enomem
	mov	x22, x0
	b	LBB0_7
LBB0_12:
	ldr	x22, [sp, #8]
	lsl	x8, x22, #1
	add	x0, x8, #2
	str	x0, [sp, #16]
	bl	_malloc
	mov	x23, x0
Lloh12:
	adrp	x8, _WIND_RW_LE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIND_RW_LE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	add	x2, sp, #4
	add	x4, sp, #16
	mov	x0, x24
	mov	x1, x22
	mov	x3, x23
	bl	_wind_ucs2write
	mov	x22, x0
	mov	x0, x24
	bl	_free
	cbz	w22, LBB0_14
; %bb.13:
	mov	x0, x23
	bl	_free
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_14:
	ldr	x8, [sp, #8]
	lsl	x1, x8, #1
	str	x1, [sp, #16]
	mov	x0, x20
	bl	_krb5_store_uint16
	mov	x1, x0
	ldr	w2, [x25]
	mov	w0, #0
	bl	_CHECK
	ldr	x2, [sp, #16]
	mov	x0, x20
	mov	x1, x23
	bl	_krb5_storage_write
	mov	x22, x0
	mov	x0, x23
	bl	_free
	ldr	w8, [sp, #16]
	cmp	w22, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x21
	bl	_krb5_storage_to_data
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_krb5_enomem
LBB0_17:
	mov	x22, x0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_KRB5_STORAGE_BYTEORDER_LE,4,2  ; @KRB5_STORAGE_BYTEORDER_LE
	.comm	_out,4,2                        ; @out
	.comm	_KRB5_PRINCIPAL_UNPARSE_NO_REALM,4,2 ; @KRB5_PRINCIPAL_UNPARSE_NO_REALM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to count length of UTF-8 string"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to convert string to UCS-2"

	.comm	_WIND_RW_LE,4,2                 ; @WIND_RW_LE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to write to UCS-2 buffer"

	.no_dead_strip	_build_logon_name
.subsections_via_symbols
