	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_open_error_log       ## -- Begin function fpm_stdio_open_error_log
	.p2align	4, 0x90
_fpm_stdio_open_error_log:              ## @fpm_stdio_open_error_log
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_fpm_global_config@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IWUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_fpm_use_error_log
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_dup2
LBB0_5:
	movq	_fpm_globals@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_dup2
	movl	%ebx, %edi
	callq	_close
	movl	(%r14), %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ZLOG_SYSERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_zlog
	movl	$-1, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_fpm_globals@GOTPCREL(%rip), %r14
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	callq	_fpm_use_error_log
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	callq	_zlog_set_fd
LBB0_8:
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_GETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%eax, %eax
	callq	_fcntl
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fcntl
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	_ZLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_zlog
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fpm_global_config,12,2         ## @fpm_global_config
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_ZLOG_SYSERROR,4,2              ## @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to open error_log (%s)"

	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_fpm_globals,4,2                ## @fpm_globals
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_ZLOG_WARNING,4,2               ## @ZLOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed to change attribute of error_log"

	.comm	_LOG_CONS,4,2                   ## @LOG_CONS
	.comm	_LOG_PID,4,2                    ## @LOG_PID
	.comm	_ZLOG_SYSLOG,4,2                ## @ZLOG_SYSLOG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpm_stdio_open_error_log       ; -- Begin function fpm_stdio_open_error_log
	.p2align	2
_fpm_stdio_open_error_log:              ; @fpm_stdio_open_error_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x21, _fpm_global_config@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fpm_global_config@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh6:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _S_IRUSR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _S_IRUSR@GOTPAGEOFF]
	orr	w1, w8, w9
Lloh13:
	ldr	w8, [x10]
Lloh14:
	adrp	x9, _S_IWUSR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S_IWUSR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_open
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
	cbz	w20, LBB0_6
; %bb.2:
	bl	_fpm_use_error_log
	cbz	x0, LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dup2
LBB0_4:
Lloh20:
	adrp	x20, _fpm_globals@GOTPAGE
Lloh21:
	ldr	x20, [x20, _fpm_globals@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dup2
	mov	x0, x19
	bl	_close
	ldr	w19, [x20]
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x8, _ZLOG_SYSERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZLOG_SYSERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_zlog
	mov	w0, #-1
	b	LBB0_11
LBB0_6:
Lloh27:
	adrp	x20, _fpm_globals@GOTPAGE
Lloh28:
	ldr	x20, [x20, _fpm_globals@GOTPAGEOFF]
	str	w19, [x20]
	bl	_fpm_use_error_log
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x20]
	bl	_zlog_set_fd
LBB0_8:
Lloh29:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _F_GETFD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _F_GETFD@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_fcntl
Lloh35:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w8, w8, w0
	str	x8, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_fcntl
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh38:
	adrp	x8, _ZLOG_WARNING@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ZLOG_WARNING@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_zlog
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_fpm_global_config,12,2         ; @fpm_global_config
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_ZLOG_SYSERROR,4,2              ; @ZLOG_SYSERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to open error_log (%s)"

	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_fpm_globals,4,2                ; @fpm_globals
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_ZLOG_WARNING,4,2               ; @ZLOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed to change attribute of error_log"

	.comm	_LOG_CONS,4,2                   ; @LOG_CONS
	.comm	_LOG_PID,4,2                    ; @LOG_PID
	.comm	_ZLOG_SYSLOG,4,2                ; @ZLOG_SYSLOG
.subsections_via_symbols
