	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_mkdb                        ## -- Begin function gr_mkdb
	.p2align	4, 0x90
_gr_mkdb:                               ## @gr_mkdb
	.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	_tempname@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$420, %esi                      ## imm = 0x1A4
	callq	_chmod
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %edi
	movq	_group_file@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rename
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_group_dir@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_O_DIRECTORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_fsync
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_close
	xorl	%ebx, %ebx
	negq	%r15
	sbbl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tempname,4,2                   ## @tempname
	.comm	_group_file,4,2                 ## @group_file
	.comm	_group_dir,4,2                  ## @group_dir
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ## @O_DIRECTORY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gr_mkdb                        ; -- Begin function gr_mkdb
	.p2align	2
_gr_mkdb:                               ; @gr_mkdb
	.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	x19, _tempname@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tempname@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	w1, #420
	bl	_chmod
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _group_file@GOTPAGE
Lloh3:
	ldr	x8, [x8, _group_file@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_rename
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x8, _group_dir@GOTPAGE
Lloh6:
	ldr	x8, [x8, _group_dir@GOTPAGEOFF]
Lloh7:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _O_DIRECTORY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_DIRECTORY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.5:
	mov	x19, x0
	bl	_fsync
	mov	x20, x0
	mov	x0, x19
	bl	_close
	cmp	x20, #0
	csetm	w0, ne
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_tempname,4,2                   ; @tempname
	.comm	_group_file,4,2                 ; @group_file
	.comm	_group_dir,4,2                  ; @group_dir
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_DIRECTORY,4,2                ; @O_DIRECTORY
.subsections_via_symbols
