	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_krb5_kdc_save_request          ## -- Begin function krb5_kdc_save_request
	.p2align	4, 0x90
_krb5_kdc_save_request:                 ## @krb5_kdc_save_request
	.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	%r9, %r12
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	-44(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_rk_UNCONST
	movl	%eax, %ebx
	movq	__kdc_now@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movl	%ebx, %r14d
	movl	%eax, %edi
	callq	_krb5_storage_from_fd
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_close
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	leaq	-44(%rbp), %rdx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_krb5_sockaddr2address
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_krb5_store_uint32
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_krb5_store_uint32
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_krb5_store_address
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_krb5_store_data
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	(%rax), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_der_get_tag
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	$-1, %r14d
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_krb5_store_uint32
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_krb5_set_error_message
	movl	(%rbx), %ebx
	jmp	LBB0_10
LBB0_7:
	movl	-60(%rbp), %edi
	movl	-56(%rbp), %esi
	xorl	%edx, %edx
	callq	_MAKE_TAG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_krb5_store_uint32
	movl	-52(%rbp), %r14d
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_krb5_store_uint32
	leaq	-44(%rbp), %rsi
	movl	%r15d, %edi
	callq	_krb5_free_address
LBB0_9:
	movq	%rbx, %rdi
	callq	_krb5_storage_free
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__kdc_now,4,2                   ## @_kdc_now
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open: %s"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Storage failed to open fd"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_krb5_kdc_save_request          ; -- Begin function krb5_kdc_save_request
	.p2align	2
_krb5_kdc_save_request:                 ; @krb5_kdc_save_request
	.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	x23, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #28
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x24
	bl	_rk_UNCONST
	mov	x25, x0
Lloh0:
	adrp	x8, __kdc_now@GOTPAGE
Lloh1:
	ldr	x8, [x8, __kdc_now@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x20
	mov	w2, #384
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x26, x0
	bl	_krb5_storage_from_fd
	mov	x20, x0
	mov	x0, x26
	bl	_close
	cbz	x20, LBB0_6
; %bb.2:
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x23
	bl	_krb5_sockaddr2address
	cbnz	w0, LBB0_9
; %bb.3:
	mov	w23, w25
	mov	x0, x20
	mov	w1, #1
	bl	_krb5_store_uint32
	mov	x0, x20
	mov	x1, x24
	bl	_krb5_store_uint32
	ldr	w1, [sp, #28]
	mov	x0, x20
	bl	_krb5_store_address
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_krb5_store_data
	ldr	w0, [x21, #8]
	ldr	x1, [x21]
	add	x2, sp, #24
	add	x3, sp, #20
	add	x4, sp, #16
	mov	x5, #0
	bl	_der_get_tag
	cbz	w0, LBB0_7
; %bb.4:
	mov	w21, #-1
	mov	x0, x20
	mov	w1, #-1
	bl	_krb5_store_uint32
	b	LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	str	x20, [sp]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	bl	_krb5_set_error_message
	b	LBB0_10
LBB0_6:
Lloh17:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_krb5_set_error_message
	ldr	w21, [x20]
	b	LBB0_10
LBB0_7:
	ldp	w1, w0, [sp, #20]
	mov	w2, #0
	bl	_MAKE_TAG
	mov	x1, x0
	mov	x0, x20
	bl	_krb5_store_uint32
	ldr	w21, [sp, #16]
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	bl	_krb5_store_uint32
	add	x1, sp, #28
	mov	x0, x19
	bl	_krb5_free_address
LBB0_9:
	mov	x0, x20
	bl	_krb5_storage_free
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	__kdc_now,4,2                   ; @_kdc_now
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open: %s"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Storage failed to open fd"

.subsections_via_symbols
