	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logcmd
_logcmd:                                ## @logcmd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	1(%r14), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_logging@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_12
## %bb.1:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_getcwd
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_strcpy
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_appendf
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_appendf
LBB0_5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_appendf
LBB0_7:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	js	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_appendf
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_appendf
	movq	_guest@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_dochroot@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	leaq	-56(%rbp), %rdi
	xorl	%eax, %eax
	callq	_appendf
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	leaq	-56(%rbp), %rdi
	xorl	%eax, %eax
	callq	_appendf
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_syslog
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_12:
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_logging,4,2                    ## @logging
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

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

L_.str.2:                               ## @.str.2
	.asciz	" = %jd bytes"

L_.str.3:                               ## @.str.3
	.asciz	" (wd: %s"

	.comm	_guest,8,3                      ## @guest
	.comm	_dochroot,8,3                   ## @dochroot
L_.str.4:                               ## @.str.4
	.asciz	"; chrooted"

L_.str.5:                               ## @.str.5
	.asciz	")"

	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
	.no_dead_strip	_logcmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logcmd
_logcmd:                                ; @logcmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stur	xzr, [x29, #-64]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _logging@GOTPAGE
Lloh9:
	ldr	x8, [x8, _logging@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_getcwd
	cbnz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
	mov	x0, x20
	bl	_strcpy
LBB0_3:
	str	x23, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
	add	sp, sp, #16
	cbz	x22, LBB0_5
; %bb.4:
	str	x22, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
	add	sp, sp, #16
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	str	x21, [sp, #-16]!
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
	add	sp, sp, #16
LBB0_7:
	tbnz	x19, #63, LBB0_9
; %bb.8:
	str	x19, [sp, #-16]!
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
	add	sp, sp, #16
LBB0_9:
	str	x20, [sp, #-16]!
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
	add	sp, sp, #16
Lloh24:
	adrp	x8, _guest@GOTPAGE
Lloh25:
	ldr	x8, [x8, _guest@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _dochroot@GOTPAGE
Lloh28:
	ldr	x9, [x9, _dochroot@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_11
; %bb.10:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
LBB0_11:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	sub	x0, x29, #64
	bl	_appendf
Lloh34:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	ldur	x2, [x29, #-64]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
	ldur	x0, [x29, #-64]
	bl	_free
LBB0_12:
	mov	sp, x24
	ldur	x8, [x29, #-56]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_logging,4,2                    ; @logging
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

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

l_.str.2:                               ; @.str.2
	.asciz	" = %jd bytes"

l_.str.3:                               ; @.str.3
	.asciz	" (wd: %s"

	.comm	_guest,8,3                      ; @guest
	.comm	_dochroot,8,3                   ; @dochroot
l_.str.4:                               ; @.str.4
	.asciz	"; chrooted"

l_.str.5:                               ; @.str.5
	.asciz	")"

	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
	.no_dead_strip	_logcmd
.subsections_via_symbols
