	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_mkdir_p                     ## -- Begin function pg_mkdir_p
	.p2align	4, 0x90
_pg_mkdir_p:                            ## @pg_mkdir_p
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	xorl	%edi, %edi
	callq	_umask
	movl	%eax, %r15d
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movq	_S_IXUSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	andl	%r15d, %edi
	callq	_umask
	xorl	%ebx, %ebx
	cmpb	$47, (%r13)
	sete	%bl
	addq	%r13, %rbx
	jmp	LBB0_1
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_S_IRWXG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S_IRWXU@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_IRWXO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movb	$1, %r12b
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_mkdir
	testq	%rax, %rax
	js	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movb	$47, (%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$47, %al
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	jne	LBB0_20
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%rbx)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movb	$0, (%rbx)
	cmpb	$0, 1(%rbx)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %r12b
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %edi
	callq	_umask
	movq	%r13, %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	xorl	%r12d, %r12d
	movl	%r14d, %esi
	testq	%rax, %rax
	jne	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %edi
	callq	_S_ISDIR
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	testb	%r12b, %r12b
	je	LBB0_10
## %bb.11:
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_18:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_10:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_13:
	movl	$-1, %ebx
LBB0_14:
	movl	%r15d, %edi
	callq	_umask
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_S_IXUSR,4,2                    ## @S_IXUSR
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_S_IRWXU,4,2                    ## @S_IRWXU
	.comm	_S_IRWXG,4,2                    ## @S_IRWXG
	.comm	_S_IRWXO,4,2                    ## @S_IRWXO
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_mkdir_p                     ; -- Begin function pg_mkdir_p
	.p2align	2
_pg_mkdir_p:                            ; @pg_mkdir_p
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	mov	w0, #0
	bl	_umask
	mov	x19, x0
Lloh0:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _S_IXUSR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_IXUSR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	bl	_umask
	mov	x8, x21
	ldrb	w9, [x8], #1
	cmp	w9, #47
Lloh6:
	adrp	x22, _S_IRWXU@GOTPAGE
Lloh7:
	ldr	x22, [x22, _S_IRWXU@GOTPAGEOFF]
	csel	x23, x21, x8, ne
Lloh8:
	adrp	x24, _S_IRWXG@GOTPAGE
Lloh9:
	ldr	x24, [x24, _S_IRWXG@GOTPAGEOFF]
Lloh10:
	adrp	x25, _S_IRWXO@GOTPAGE
Lloh11:
	ldr	x25, [x25, _S_IRWXO@GOTPAGEOFF]
	mov	w26, #47
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23]
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x23]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x23]
	ldrb	w8, [x23, #1]
	cbz	w8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	orr	w1, w8, w9
	mov	w28, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_umask
	add	x1, sp, #8
	mov	x0, x21
	bl	_stat
	mov	w27, #0
	mov	w28, #0
	mov	x1, x20
	cbz	x0, LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_mkdir
	mov	x27, x28
	tbz	x0, #63, LBB0_12
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #1
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #8]
	bl	_S_ISDIR
	cbz	w0, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w27, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	strb	w26, [x23]
	b	LBB0_1
LBB0_14:
	mov	w20, #0
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh14:
	adrp	x9, _EEXIST@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
	cmp	w27, #0
	csel	x8, x8, x9, ne
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _errno@GOTPAGE
Lloh17:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_16:
	mov	w20, #-1
LBB0_17:
	mov	x0, x19
	bl	_umask
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_S_IXUSR,4,2                    ; @S_IXUSR
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_S_IRWXU,4,2                    ; @S_IRWXU
	.comm	_S_IRWXG,4,2                    ; @S_IRWXG
	.comm	_S_IRWXO,4,2                    ; @S_IRWXO
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
