	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_access_log_open_log        ## -- Begin function h2o_access_log_open_log
	.p2align	4, 0x90
_h2o_access_log_open_log:               ## @h2o_access_log_open_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpb	$124, (%rdi)
	jne	LBB0_8
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -72(%rbp)
	incq	%r14
	movq	%r14, -64(%rbp)
	movq	$0, -56(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_pipe
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_h2o_perror
	jmp	LBB0_20
LBB0_8:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testl	%eax, %eax
	jne	LBB0_16
## %bb.9:
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-96(%rbp), %eax
	movq	_S_IFSOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jb	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_h2o_error_printf
	jmp	LBB0_20
LBB0_16:
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_APPEND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$420, %edx                      ## imm = 0x1A4
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_19
LBB0_4:
	movl	-44(%rbp), %edi
	movq	_F_SETFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_fcntl
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movl	-48(%rbp), %eax
	movl	%eax, -96(%rbp)
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	movq	%rax, -92(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-80(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_h2o_spawnp
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.7:
	movl	-48(%rbp), %edi
	callq	_close
	movl	-44(%rbp), %ebx
	jmp	LBB0_21
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	callq	_h2o_perror
	jmp	LBB0_20
LBB0_12:
	movq	_AF_UNIX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -76(%rbp)
	movl	-80(%rbp), %edi
	movq	%r14, %rsi
	callq	_strcpy
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_21
## %bb.15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_h2o_error_printf
	movl	%ebx, %edi
	callq	_close
	jmp	LBB0_20
LBB0_18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_19
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
LBB0_19:
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_h2o_error_printf
LBB0_20:
	movl	$-1, %ebx
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/bin/sh"

L_.str.1:                               ## @.str.1
	.asciz	"-c"

L_.str.2:                               ## @.str.2
	.asciz	"pipe failed"

	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
L_.str.3:                               ## @.str.3
	.asciz	"failed to set FD_CLOEXEC on pipefds[1]"

L_.str.4:                               ## @.str.4
	.asciz	"failed to open logger: %s:%s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFSOCK,4,2                   ## @S_IFSOCK
L_.str.5:                               ## @.str.5
	.asciz	"path:%s is too long as a unix socket name"

	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.6:                               ## @.str.6
	.asciz	"failed to create socket for log file:%s:%s\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to connect socket for log file:%s:%s\n"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
L_.str.8:                               ## @.str.8
	.asciz	"failed to open log file:%s:%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_h2o_access_log_open_log        ; -- Begin function h2o_access_log_open_log
	.p2align	2
_h2o_access_log_open_log:               ; @h2o_access_log_open_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldrb	w8, [x0]
	cmp	w8, #124
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [sp, #32]
	add	x19, x19, #1
	stp	x19, xzr, [sp, #48]
	sub	x0, x29, #48
	bl	_pipe
	cbz	x0, LBB0_9
; %bb.2:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_h2o_perror
	b	LBB0_19
LBB0_3:
	add	x1, sp, #16
	mov	x0, x19
	bl	_stat
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w8, [sp, #16]
Lloh9:
	adrp	x9, _S_IFMT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _S_IFMT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _S_IFSOCK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _S_IFSOCK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_strlen
	cmp	w0, #4
	b.lo	LBB0_13
; %bb.6:
Lloh15:
	adrp	x0, l_.str.5@PAGE
Lloh16:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_7:
Lloh17:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh24:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _O_CLOEXEC@GOTPAGE
Lloh27:
	ldr	x9, [x9, _O_CLOEXEC@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #420
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.8:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x0, l_.str.8@PAGE
Lloh33:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_9:
	ldur	w0, [x29, #-44]
Lloh34:
	adrp	x8, _F_SETFD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _F_SETFD@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x8, _FD_CLOEXEC@GOTPAGE
Lloh38:
	ldr	x8, [x8, _FD_CLOEXEC@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	bl	_fcntl
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.10:
	ldur	w8, [x29, #-48]
	str	w8, [sp, #16]
	movi	d0, #0xffffffff00000000
	stur	d0, [sp, #20]
Lloh40:
	adrp	x0, l_.str@PAGE
Lloh41:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #32
	add	x2, sp, #16
	mov	w3, #0
	bl	_h2o_spawnp
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.11:
	ldur	w0, [x29, #-48]
	bl	_close
	ldur	w20, [x29, #-44]
	b	LBB0_20
LBB0_12:
Lloh42:
	adrp	x0, l_.str.3@PAGE
Lloh43:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_h2o_perror
	b	LBB0_19
LBB0_13:
Lloh44:
	adrp	x21, _AF_UNIX@GOTPAGE
Lloh45:
	ldr	x21, [x21, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh46:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.14:
	mov	x20, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21]
	str	w8, [sp, #36]
	ldr	w0, [sp, #32]
	mov	x1, x19
	bl	_strcpy
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #8
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_20
; %bb.15:
Lloh49:
	adrp	x8, _errno@GOTPAGE
Lloh50:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh52:
	adrp	x0, l_.str.7@PAGE
Lloh53:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_h2o_error_printf
	mov	x0, x20
	bl	_close
	b	LBB0_19
LBB0_16:
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh57:
	adrp	x0, l_.str.4@PAGE
Lloh58:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh59:
	adrp	x8, _errno@GOTPAGE
Lloh60:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh61:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh62:
	adrp	x0, l_.str.6@PAGE
Lloh63:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_18:
	mov	x1, x19
	bl	_h2o_error_printf
LBB0_19:
	mov	w20, #-1
LBB0_20:
	ldur	x8, [x29, #-40]
Lloh64:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh65:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh66:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/bin/sh"

l_.str.1:                               ; @.str.1
	.asciz	"-c"

l_.str.2:                               ; @.str.2
	.asciz	"pipe failed"

	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
l_.str.3:                               ; @.str.3
	.asciz	"failed to set FD_CLOEXEC on pipefds[1]"

l_.str.4:                               ; @.str.4
	.asciz	"failed to open logger: %s:%s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFSOCK,4,2                   ; @S_IFSOCK
l_.str.5:                               ; @.str.5
	.asciz	"path:%s is too long as a unix socket name"

	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.6:                               ; @.str.6
	.asciz	"failed to create socket for log file:%s:%s\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to connect socket for log file:%s:%s\n"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
l_.str.8:                               ; @.str.8
	.asciz	"failed to open log file:%s:%s\n"

.subsections_via_symbols
