	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_file
_open_file:                             ## @open_file
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %r13d
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movl	24(%rbp), %ecx
	movq	16(%rbp), %rdx
	movq	%r14, (%rax)
	movq	%rbx, 8(%rax)
	movq	%rdx, 24(%rax)
	movl	%ecx, 16(%rax)
	movq	_log_file@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_close_file@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%rax, (%rsp)
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_krb5_addlog_func
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_N_
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_krb5_set_error_message
	movl	(%r14), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc: out of memory"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_log_file,4,2                   ## @log_file
	.comm	_close_file,4,2                 ## @close_file
	.no_dead_strip	_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_file
_open_file:                             ; @open_file
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x6, x0
	stp	x26, x25, [x0]
	str	x24, [x0, #24]
Lloh0:
	adrp	x8, _log_file@GOTPAGE
Lloh1:
	ldr	x8, [x8, _log_file@GOTPAGEOFF]
	str	w22, [x0, #16]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x8, _close_file@GOTPAGE
Lloh4:
	ldr	x8, [x8, _close_file@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_krb5_addlog_func
LBB0_2:
Lloh6:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_N_
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_krb5_set_error_message
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc: out of memory"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_log_file,4,2                   ; @log_file
	.comm	_close_file,4,2                 ; @close_file
	.no_dead_strip	_open_file
.subsections_via_symbols
