	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_init_final           ## -- Begin function fpm_stdio_init_final
	.p2align	4, 0x90
_fpm_stdio_init_final:                  ## @fpm_stdio_init_final
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fpm_use_error_log
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_fpm_globals@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_5
## %bb.2:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_dup2
	testq	%rax, %rax
	js	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_zlog_set_launched
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_zlog
	movl	$-1, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_fpm_globals,8,3                ## @fpm_globals
	.comm	_STDERR_FILENO,8,3              ## @STDERR_FILENO
	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to init stdio: dup2()"

	.comm	_STDOUT_FILENO,8,3              ## @STDOUT_FILENO
	.comm	_ZLOG_SYSLOG,8,3                ## @ZLOG_SYSLOG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_init_final           ; -- Begin function fpm_stdio_init_final
	.p2align	2
_fpm_stdio_init_final:                  ; @fpm_stdio_init_final
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_fpm_use_error_log
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _fpm_globals@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpm_globals@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	cmp	x0, x1
	b.eq	LBB0_4
; %bb.3:
	bl	_dup2
	tbnz	x0, #63, LBB0_5
LBB0_4:
	bl	_zlog_set_launched
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zlog
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fpm_globals,8,3                ; @fpm_globals
	.comm	_STDERR_FILENO,8,3              ; @STDERR_FILENO
	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to init stdio: dup2()"

	.comm	_STDOUT_FILENO,8,3              ; @STDOUT_FILENO
	.comm	_ZLOG_SYSLOG,8,3                ; @ZLOG_SYSLOG
.subsections_via_symbols
