	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_mtptsetup
_do_mtptsetup:                          ## @do_mtptsetup
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	32(%rsi), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 16(%rbx)
	je	LBB0_23
LBB0_3:
	movq	_norun@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.8:
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debugprintf
	cmpl	$0, (%r15)
	jne	LBB0_12
## %bb.10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_chmod
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_12
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_statfs
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movq	_MNT_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_7
## %bb.20:
	cmpq	$0, 40(%rbx)
	je	LBB0_22
## %bb.21:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_warnx
	jmp	LBB0_23
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_warn
	jmp	LBB0_23
LBB0_7:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_9
LBB0_12:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.13:
	movl	4(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debugprintf
	cmpl	$0, (%r15)
	jne	LBB0_16
## %bb.14:
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_chown
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	movl	4(%rbx), %ecx
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	cmpq	$0, 16(%rbx)
	je	LBB0_23
## %bb.17:
	movl	8(%rbx), %edx
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debugprintf
	cmpl	$0, (%r15)
	jne	LBB0_23
## %bb.18:
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_chown
	cmpl	$-1, %eax
	jne	LBB0_23
## %bb.19:
	movl	8(%rbx), %ecx
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_23
LBB0_22:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_debugprintf
LBB0_23:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_norun,4,2                      ## @norun
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"statfs: %s"

	.comm	_MNT_RDONLY,4,2                 ## @MNT_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"Not changing mode/owner of %s since it is read-only"

L_.str.2:                               ## @.str.2
	.asciz	"changing mode of %s to %o."

L_.str.3:                               ## @.str.3
	.asciz	"chmod: %s"

L_.str.4:                               ## @.str.4
	.asciz	"changing owner (user) or %s to %u."

L_.str.5:                               ## @.str.5
	.asciz	"chown %s to %u (user)"

L_.str.6:                               ## @.str.6
	.asciz	"changing owner (group) or %s to %u."

L_.str.7:                               ## @.str.7
	.asciz	"chown %s to %u (group)"

	.no_dead_strip	_do_mtptsetup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_mtptsetup
_do_mtptsetup:                          ; @do_mtptsetup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #32]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x20, #24]
	cbnz	x9, LBB0_3
; %bb.2:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_23
LBB0_3:
Lloh0:
	adrp	x21, _norun@GOTPAGE
Lloh1:
	ldr	x21, [x21, _norun@GOTPAGEOFF]
	ldr	w9, [x21]
	cbz	w9, LBB0_8
; %bb.4:
	cbz	x8, LBB0_14
LBB0_5:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_debugprintf
	ldr	w8, [x21]
	cbnz	w8, LBB0_14
; %bb.6:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_chmod
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.7:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
	b	LBB0_14
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	bl	_statfs
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.9:
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x9, _MNT_RDONLY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MNT_RDONLY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_22
; %bb.11:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_warnx
	b	LBB0_23
LBB0_12:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warn
	b	LBB0_23
LBB0_13:
	ldr	x8, [x20, #32]
	cbnz	x8, LBB0_5
LBB0_14:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_18
; %bb.15:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_debugprintf
	ldr	w8, [x21]
	cbnz	w8, LBB0_18
; %bb.16:
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	w2, #-1
	bl	_chown
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
	ldr	w8, [x20, #4]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
LBB0_18:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_23
; %bb.19:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_debugprintf
	ldr	w8, [x21]
	cbnz	w8, LBB0_23
; %bb.20:
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	w1, #-1
	bl	_chown
	cmn	w0, #1
	b.ne	LBB0_23
; %bb.21:
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_err
	b	LBB0_23
LBB0_22:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_debugprintf
LBB0_23:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_norun,4,2                      ; @norun
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"statfs: %s"

	.comm	_MNT_RDONLY,4,2                 ; @MNT_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"Not changing mode/owner of %s since it is read-only"

l_.str.2:                               ; @.str.2
	.asciz	"changing mode of %s to %o."

l_.str.3:                               ; @.str.3
	.asciz	"chmod: %s"

l_.str.4:                               ; @.str.4
	.asciz	"changing owner (user) or %s to %u."

l_.str.5:                               ; @.str.5
	.asciz	"chown %s to %u (user)"

l_.str.6:                               ; @.str.6
	.asciz	"changing owner (group) or %s to %u."

l_.str.7:                               ; @.str.7
	.asciz	"chown %s to %u (group)"

	.no_dead_strip	_do_mtptsetup
.subsections_via_symbols
