	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_spool_dir
_make_spool_dir:                        ## @make_spool_dir
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movq	_S_IXUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r15, %rdi
	callq	_mkdir
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_getgrnam
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_problems@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	%edi, (%rax)
	leaq	L_.str.2(%rip), %rsi
	callq	_errx
LBB0_5:
	movq	8(%r14), %rsi
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	callq	_chown
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:
	movq	_SPOOL_DIR_MODE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_chmod
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_problems@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	%edi, (%rax)
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	callq	_err
LBB0_10:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_note_spool_dir
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_problems@GOTPCREL(%rip), %rax
	incl	(%rax)
	movslq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	jmp	LBB0_2
LBB0_11:
	movq	_problems@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	8(%r14), %rdx
	movq	(%rbx), %rcx
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_7:
	movq	_problems@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_problems,4,2                   ## @problems
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: mkdir %s"

L_.str.1:                               ## @.str.1
	.asciz	"daemon"

L_.str.2:                               ## @.str.2
	.asciz	"cannot locate daemon group"

L_.str.3:                               ## @.str.3
	.asciz	"%s: cannot change ownership to %ld:%ld"

	.comm	_SPOOL_DIR_MODE,8,3             ## @SPOOL_DIR_MODE
L_.str.4:                               ## @.str.4
	.asciz	"%s: cannot change mode to %lo"

L_.str.5:                               ## @.str.5
	.asciz	"stat: %s"

	.no_dead_strip	_make_spool_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_spool_dir
_make_spool_dir:                        ; @make_spool_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, _S_IRUSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_mkdir
	tbnz	x0, #63, LBB0_8
; %bb.1:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getgrnam
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _problems@GOTPAGE
Lloh9:
	ldr	x8, [x8, _problems@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w0, w9, #1
	str	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_errx
LBB0_3:
	ldr	x1, [x20, #8]
	ldr	x2, [x21]
	mov	x0, x19
	bl	_chown
	tbnz	x0, #63, LBB0_9
; %bb.4:
Lloh12:
	adrp	x21, _SPOOL_DIR_MODE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _SPOOL_DIR_MODE@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_chmod
	tbnz	x0, #63, LBB0_10
; %bb.5:
	add	x1, sp, #24
	mov	x0, x19
	bl	_stat
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _problems@GOTPAGE
Lloh15:
	ldr	x8, [x8, _problems@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w0, w9, #1
	str	w0, [x8]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_err
LBB0_7:
	add	x1, sp, #24
	mov	x0, x20
	bl	_note_spool_dir
	b	LBB0_13
LBB0_8:
Lloh18:
	adrp	x8, _problems@GOTPAGE
Lloh19:
	ldr	x8, [x8, _problems@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldrsw	x1, [x20, #16]
	str	x19, [sp]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh22:
	adrp	x8, _problems@GOTPAGE
Lloh23:
	ldr	x8, [x8, _problems@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x20, #8]
	ldr	x9, [x21]
	stp	x8, x9, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _problems@GOTPAGE
Lloh27:
	ldr	x8, [x8, _problems@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	mov	x1, x19
LBB0_12:
	bl	_warn
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_problems,4,2                   ; @problems
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: mkdir %s"

l_.str.1:                               ; @.str.1
	.asciz	"daemon"

l_.str.2:                               ; @.str.2
	.asciz	"cannot locate daemon group"

l_.str.3:                               ; @.str.3
	.asciz	"%s: cannot change ownership to %ld:%ld"

	.comm	_SPOOL_DIR_MODE,8,3             ; @SPOOL_DIR_MODE
l_.str.4:                               ; @.str.4
	.asciz	"%s: cannot change mode to %lo"

l_.str.5:                               ; @.str.5
	.asciz	"stat: %s"

	.no_dead_strip	_make_spool_dir
.subsections_via_symbols
