	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_user_file               ## -- Begin function define_user_file
	.p2align	4, 0x90
_define_user_file:                      ## @define_user_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movq	%rcx, %r12
	movl	%edx, -116(%rbp)                ## 4-byte Spill
	movq	%rsi, %rbx
	movl	%edi, -120(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FOPEN_RB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-112(%rbp), %rcx
	movq	%r9, %rdi
	callq	_open_file_search
	movq	%rax, %r15
	movq	-112(%rbp), %rdi
	leaq	-104(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movq	%r12, %rbx
	movq	-112(%rbp), %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rbx, %r12
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movl	%eax, %edx
	callq	_fatal
LBB0_2:
	movl	-104(%rbp), %edi
	callq	_res_alloc
	movq	%rax, %r14
	movl	-104(%rbp), %edx
	movq	-112(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_get_data
	movq	%r15, %rdi
	callq	_fclose
	movq	-112(%rbp), %rdi
	callq	_free
	movl	-116(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movq	%r12, -88(%rbp)
	movl	-120(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	%rbx, -72(%rbp)
	movq	$0, -56(%rbp)
	movl	(%r13), %eax
	movl	%eax, -64(%rbp)
	movq	_resources@GOTPCREL(%rip), %rdi
	leaq	-96(%rbp), %rdx
	movl	$3, %esi
	xorl	%ecx, %ecx
	callq	_define_resource
	movq	%rax, %rbx
	movq	_RES_TYPE_USERDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, 8(%rbx)
	movq	$0, 24(%rax)
	movq	_RCDATA_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movl	-104(%rbp), %ecx
	movl	%ecx, (%rax)
	movq	%r14, 8(%rax)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FOPEN_RB,4,2                   ## @FOPEN_RB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file"

L_.str.1:                               ## @.str.1
	.asciz	"stat failed on file `%s': %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_resources,4,2                  ## @resources
	.comm	_RES_TYPE_USERDATA,4,2          ## @RES_TYPE_USERDATA
	.comm	_RCDATA_BUFFER,4,2              ## @RCDATA_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_define_user_file               ; -- Begin function define_user_file
	.p2align	2
_define_user_file:                      ; @define_user_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x4
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
Lloh3:
	adrp	x8, _FOPEN_RB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FOPEN_RB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #16
	mov	x0, x5
	bl	_open_file_search
	mov	x24, x0
	ldr	x0, [sp, #16]
	add	x1, sp, #8
	bl	_stat
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x25, x0
	ldr	x26, [sp, #16]
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_fatal
LBB0_2:
	ldr	w0, [sp, #8]
	bl	_res_alloc
	mov	x25, x0
	ldr	w2, [sp, #8]
	ldr	x3, [sp, #16]
	mov	x0, x24
	mov	x1, x25
	bl	_get_data
	mov	x0, x24
	bl	_fclose
	ldr	x0, [sp, #16]
	bl	_free
	stp	x23, x21, [sp, #24]
	stp	x22, x20, [sp, #40]
	str	xzr, [sp, #64]
	ldr	w8, [x19]
	str	w8, [sp, #56]
Lloh13:
	adrp	x0, _resources@GOTPAGE
Lloh14:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	add	x2, sp, #24
	mov	w1, #3
	mov	w3, #0
	bl	_define_resource
	mov	x20, x0
Lloh15:
	adrp	x8, _RES_TYPE_USERDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RES_TYPE_USERDATA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	mov	w0, #32
	bl	_res_alloc
	str	x0, [x20, #8]
	str	xzr, [x0, #24]
Lloh18:
	adrp	x8, _RCDATA_BUFFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RCDATA_BUFFER@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w8, [sp, #8]
	str	w8, [x0]
	str	x25, [x0, #8]
	ldr	w8, [x19]
	str	w8, [x20]
	ldr	x8, [sp, #72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FOPEN_RB,4,2                   ; @FOPEN_RB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file"

l_.str.1:                               ; @.str.1
	.asciz	"stat failed on file `%s': %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_resources,4,2                  ; @resources
	.comm	_RES_TYPE_USERDATA,4,2          ; @RES_TYPE_USERDATA
	.comm	_RCDATA_BUFFER,4,2              ; @RCDATA_BUFFER
.subsections_via_symbols
