	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_init_main            ## -- Begin function fpm_stdio_init_main
	.p2align	4, 0x90
_fpm_stdio_init_main:                   ## @fpm_stdio_init_main
	.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	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	movq	_STDIN_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
	testq	%rax, %rax
	js	LBB0_5
## %bb.2:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_close
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_zlog
	jmp	LBB0_6
LBB0_5:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_zlog
	movl	%ebx, %edi
	callq	_close
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
L_.str.1:                               ## @.str.1
	.asciz	"failed to init stdio: open(\"/dev/null\")"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.2:                               ## @.str.2
	.asciz	"failed to init stdio: dup2()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_init_main            ; -- Begin function fpm_stdio_init_main
	.p2align	2
_fpm_stdio_init_main:                   ; @fpm_stdio_init_main
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, _STDIN_FILENO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STDIN_FILENO@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_dup2
	tbnz	x0, #63, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dup2
	tbnz	x0, #63, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_close
	mov	w0, #0
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_zlog
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_zlog
	mov	x0, x19
	bl	_close
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/null"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
l_.str.1:                               ; @.str.1
	.asciz	"failed to init stdio: open(\"/dev/null\")"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.2:                               ; @.str.2
	.asciz	"failed to init stdio: dup2()"

.subsections_via_symbols
