	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAND_file_name                 ## -- Begin function RAND_file_name
	.p2align	4, 0x90
_RAND_file_name:                        ## @RAND_file_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_ossl_safe_getenv
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	incq	%rax
	cmpq	%r14, %rax
	jae	LBB0_11
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_ossl_safe_getenv
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r12
	movq	_RFILE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_strlen
	addq	%r12, %rax
	addq	$2, %rax
	cmpq	%r14, %rax
	jae	LBB0_11
## %bb.7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_strcat
	jmp	LBB0_12
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RANDFILE"

L_.str.1:                               ## @.str.1
	.asciz	"HOME"

	.comm	_RFILE,8,3                      ## @RFILE
L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_CP_UTF8,4,2                    ## @CP_UTF8
	.comm	_DEFAULT_HOME,8,3               ## @DEFAULT_HOME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RAND_file_name                 ; -- Begin function RAND_file_name
	.p2align	2
_RAND_file_name:                        ; @RAND_file_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ossl_safe_getenv
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x21
	bl	_strlen
	add	x8, x0, #1
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ossl_safe_getenv
	cbz	x0, LBB0_8
; %bb.5:
	mov	x21, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
Lloh4:
	adrp	x23, _RFILE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RFILE@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_strlen
	add	x8, x22, x0
	add	x8, x8, #2
	cmp	x8, x20
	b.hs	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_strcpy
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcat
	ldr	x1, [x23]
	mov	x0, x19
	bl	_strcat
	b	LBB0_9
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RANDFILE"

l_.str.1:                               ; @.str.1
	.asciz	"HOME"

	.comm	_RFILE,8,3                      ; @RFILE
l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_CP_UTF8,4,2                    ; @CP_UTF8
	.comm	_DEFAULT_HOME,8,3               ; @DEFAULT_HOME
.subsections_via_symbols
