	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_config_file_for_user
_get_config_file_for_user:              ## @get_config_file_for_user
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	$0, -16(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_issuid
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, -16(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	%rax, -16(%rbp)
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
LBB0_6:
	movq	%rax, %rcx
	orq	%rbx, %rcx
	jne	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	(%rax), %rax
LBB0_9:
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.10:
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	leaq	-16(%rbp), %rdi
	movq	%rax, %rdx
	callq	_asprintf
	movq	-16(%rbp), %rbx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SOFTPKCS11RC"

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

L_.str.2:                               ## @.str.2
	.asciz	"%s/.soft-token.rc"

L_.str.3:                               ## @.str.3
	.asciz	"/etc/soft-token.rc"

	.comm	_CSIDL_APPDATA,4,2              ## @CSIDL_APPDATA
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_SHGFP_TYPE_CURRENT,4,2         ## @SHGFP_TYPE_CURRENT
	.no_dead_strip	_get_config_file_for_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_config_file_for_user
_get_config_file_for_user:              ; @get_config_file_for_user
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	xzr, [sp, #8]
	bl	_issuid
	mov	x19, #0
	mov	x2, #0
	cbz	w0, LBB0_3
; %bb.1:
	orr	x8, x2, x19
	cbz	x8, LBB0_7
LBB0_2:
	cbnz	x19, LBB0_11
	b	LBB0_9
LBB0_3:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_strdup
	mov	x19, x0
	str	x0, [sp, #8]
	b	LBB0_6
LBB0_5:
	mov	x19, #0
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	x2, x0
	orr	x8, x2, x19
	cbnz	x8, LBB0_2
LBB0_7:
	bl	_getuid
	bl	_getpwuid
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x2, [x0]
	cbnz	x19, LBB0_11
LBB0_9:
	cbz	x2, LBB0_12
; %bb.10:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #8
	bl	_asprintf
	ldr	x19, [sp, #8]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_strdup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SOFTPKCS11RC"

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

l_.str.2:                               ; @.str.2
	.asciz	"%s/.soft-token.rc"

l_.str.3:                               ; @.str.3
	.asciz	"/etc/soft-token.rc"

	.comm	_CSIDL_APPDATA,4,2              ; @CSIDL_APPDATA
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_SHGFP_TYPE_CURRENT,4,2         ; @SHGFP_TYPE_CURRENT
	.no_dead_strip	_get_config_file_for_user
.subsections_via_symbols
