	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_mtab                     ## -- Begin function write_mtab
	.p2align	4, 0x90
_write_mtab:                            ## @write_mtab
	.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	%edi, %r14d
	movq	_PATH_MOUNTTAB@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_mtabhead@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r13d
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %r12
	testq	%r12, %r12
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%r12), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r12), %r15
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	24(%r15), %r15
	movq	(%r12), %rcx
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%r15, %r15
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r15), %rsi
	movq	%rcx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	8(%r12), %rdi
	movq	8(%r15), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %r8
	movq	16(%r12), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	leaq	L_.str.3(%rip), %rdi
	callq	_warnx
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_15:
	movq	%rbx, %rdi
	callq	_fclose
	movl	$1, %eax
	testl	%r13d, %r13d
	movq	_PATH_MOUNTTAB@GOTPCREL(%rip), %r15
	jne	LBB0_19
	jmp	LBB0_16
LBB0_3:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_16:
	movl	(%r15), %edi
	callq	_unlink
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$-1, %ecx
	jne	LBB0_19
## %bb.17:
	leaq	L_.str.4(%rip), %rsi
LBB0_18:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	callq	_syslog
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MOUNTTAB,4,2              ## @PATH_MOUNTTAB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"can't write to %s"

	.comm	_mtabhead,8,3                   ## @mtabhead
L_.str.2:                               ## @.str.2
	.asciz	"%ld\t%s\t%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"write mounttab entry %s:%s"

L_.str.4:                               ## @.str.4
	.asciz	"can't remove %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_mtab                     ; -- Begin function write_mtab
	.p2align	2
_write_mtab:                            ; @write_mtab
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _PATH_MOUNTTAB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PATH_MOUNTTAB@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh4:
	adrp	x8, _mtabhead@GOTPAGE
Lloh5:
	ldr	x8, [x8, _mtabhead@GOTPAGEOFF]
Lloh6:
	ldr	x25, [x8]
	cbz	x25, LBB0_14
; %bb.2:
	mov	w24, #0
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh9:
	adrp	x22, l_.str.3@PAGE
Lloh10:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x25, #24]
	cbz	x25, LBB0_13
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x3, [x25]
	ldrb	w8, [x3]
	cbz	w8, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x25, #24]
	cbnz	x26, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldp	x4, x2, [x25, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_fprintf
	cbz	w19, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x1, x2, [x25]
	mov	x0, x22
	bl	_warnx
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	x26, [x26, #24]
	ldr	x3, [x25]
	cbz	x26, LBB0_7
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x1, [x26]
	mov	x0, x3
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x0, [x25, #8]
	ldr	x1, [x26, #8]
	bl	_strcmp
	cbnz	x0, LBB0_9
	b	LBB0_4
LBB0_12:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_13:
	mov	x0, x20
	bl	_fclose
	cbnz	w24, LBB0_16
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	bl	_fclose
LBB0_15:
	ldr	w0, [x23]
	bl	_unlink
	cmn	w0, #1
	b.eq	LBB0_17
LBB0_16:
	mov	w0, #1
	b	LBB0_19
LBB0_17:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
Lloh15:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w2, [x23]
	bl	_syslog
	mov	w0, #0
LBB0_19:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MOUNTTAB,4,2              ; @PATH_MOUNTTAB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"can't write to %s"

	.comm	_mtabhead,8,3                   ; @mtabhead
l_.str.2:                               ; @.str.2
	.asciz	"%ld\t%s\t%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"write mounttab entry %s:%s"

l_.str.4:                               ; @.str.4
	.asciz	"can't remove %s"

.subsections_via_symbols
