	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_open_rcfile                ## -- Begin function smb_open_rcfile
	.p2align	4, 0x90
_smb_open_rcfile:                       ## @smb_open_rcfile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	leaq	20(%rax), %rdi
	callq	_malloc
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_sprintf
	leaq	L_.str.2(%rip), %rsi
	movq	_smb_rc@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_rc_open
	movq	%r14, %rdi
	callq	_free
LBB0_2:
	movq	_SMB_CFG_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_smb_rc@GOTPCREL(%rip), %rbx
	movq	%rbx, %rsi
	callq	_rc_merge
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

L_.str.1:                               ## @.str.1
	.asciz	"%s/.nsmbrc"

L_.str.2:                               ## @.str.2
	.asciz	"r"

	.comm	_smb_rc,8,3                     ## @smb_rc
	.comm	_SMB_CFG_FILE,4,2               ## @SMB_CFG_FILE
	.comm	_ENOENT,4,2                     ## @ENOENT
L_str:                                  ## @str
	.asciz	"Warning: no cfg file(s) found."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smb_open_rcfile                ; -- Begin function smb_open_rcfile
	.p2align	2
_smb_open_rcfile:                       ; @smb_open_rcfile
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x19, _smb_rc@GOTPAGE
Lloh3:
	ldr	x19, [x19, _smb_rc@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_strlen
	add	x0, x0, #20
	bl	_malloc
	mov	x21, x0
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_sprintf
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh8:
	adrp	x2, _smb_rc@GOTPAGE
Lloh9:
	ldr	x2, [x2, _smb_rc@GOTPAGEOFF]
	mov	x0, x21
	bl	_rc_open
	mov	x0, x21
	bl	_free
LBB0_2:
Lloh10:
	adrp	x8, _SMB_CFG_FILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SMB_CFG_FILE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_rc_merge
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x0, l_str@PAGE
Lloh14:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
Lloh15:
	adrp	x8, _ENOENT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

l_.str.1:                               ; @.str.1
	.asciz	"%s/.nsmbrc"

l_.str.2:                               ; @.str.2
	.asciz	"r"

	.comm	_smb_rc,8,3                     ; @smb_rc
	.comm	_SMB_CFG_FILE,4,2               ; @SMB_CFG_FILE
	.comm	_ENOENT,4,2                     ; @ENOENT
l_str:                                  ; @str
	.asciz	"Warning: no cfg file(s) found."

.subsections_via_symbols
