	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movb	$1, %r13b
	leaq	L_.str(%rip), %r15
	movq	_background@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r12)
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$98, %eax
	je	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$108, %eax
	je	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_2
LBB0_1:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_2
LBB0_6:
	movl	%r13d, %r15d
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subl	%r13d, %ebx
	cmpl	$2, %ebx
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_usage
LBB0_8:
	movq	(%r14,%r13,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14,%r13,8), %r13
	cmpl	$0, (%r12)
	je	LBB0_11
## %bb.9:
	xorl	%eax, %eax
	callq	_rump_daemonize_begin
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_11:
	xorl	%eax, %eax
	callq	_rump_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_13:
	movq	_FSTEST_MNTNAME@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_die
LBB0_15:
	movq	_RUMP_ETFS_BLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rbx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rump_pub_etfs_register
	movq	%rbx, %rdi
	callq	___UNCONST
	movl	%eax, -48(%rbp)
	movq	_MOUNT_FFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	testb	$1, %r15b
	jne	LBB0_17
## %bb.16:
	movq	_MNT_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_17:
	leaq	-48(%rbp), %rcx
	movl	$4, %r8d
	callq	_rump_sys_mount
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_die
LBB0_19:
	movq	%r13, %rdi
	callq	_rump_init_server
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_die
LBB0_21:
	cmpl	$0, (%r12)
	je	LBB0_23
## %bb.22:
	movq	_RUMP_DAEMONIZE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_daemonize_done
LBB0_23:
	movq	_sigsem@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sem_init
	movq	_SIGTERM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sigreboot@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_signal
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_signal
	movq	%r14, %rdi
	callq	_sem_wait
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_rump_sys_reboot
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bl"

	.comm	_background,4,2                 ## @background
	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"rump daemonize: %s"

L_.str.2:                               ## @.str.2
	.asciz	"rump init failed"

	.comm	_FSTEST_MNTNAME,4,2             ## @FSTEST_MNTNAME
L_.str.3:                               ## @.str.3
	.asciz	"mount point create"

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"/diskdev"

	.comm	_RUMP_ETFS_BLK,4,2              ## @RUMP_ETFS_BLK
	.comm	_MOUNT_FFS,4,2                  ## @MOUNT_FFS
	.comm	_MNT_LOG,4,2                    ## @MNT_LOG
L_.str.5:                               ## @.str.5
	.asciz	"mount ffs"

L_.str.6:                               ## @.str.6
	.asciz	"rump server init failed"

	.comm	_RUMP_DAEMONIZE_SUCCESS,4,2     ## @RUMP_DAEMONIZE_SUCCESS
	.comm	_sigsem,4,2                     ## @sigsem
	.comm	_SIGTERM,4,2                    ## @SIGTERM
	.comm	_sigreboot,4,2                  ## @sigreboot
	.comm	_SIGINT,4,2                     ## @SIGINT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w24, #1
Lloh0:
	adrp	x22, _background@GOTPAGE
Lloh1:
	ldr	x22, [x22, _background@GOTPAGEOFF]
	mov	w23, #1
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x22]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #98
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #108
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
	b	LBB0_2
LBB0_7:
Lloh4:
	adrp	x8, _optind@GOTPAGE
Lloh5:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	sub	w9, w20, w8
	add	x19, x19, x8, lsl #3
	cmp	w9, #2
	b.eq	LBB0_9
; %bb.8:
	bl	_usage
LBB0_9:
	ldp	x20, x19, [x19]
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.10:
	bl	_rump_daemonize_begin
	cbz	w0, LBB0_12
; %bb.11:
	bl	_strerror
	mov	x2, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	bl	_rump_init
	cbz	w0, LBB0_14
; %bb.13:
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_14:
Lloh11:
	adrp	x24, _FSTEST_MNTNAME@GOTPAGE
Lloh12:
	ldr	x24, [x24, _FSTEST_MNTNAME@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	w1, #511
	bl	_rump_sys_mkdir
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_16:
Lloh18:
	adrp	x8, _RUMP_ETFS_BLK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RUMP_ETFS_BLK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
Lloh21:
	adrp	x21, l_.str.4@PAGE
Lloh22:
	add	x21, x21, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	bl	_rump_pub_etfs_register
	mov	x0, x21
	bl	___UNCONST
	str	w0, [sp, #8]
Lloh23:
	adrp	x8, _MOUNT_FFS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MOUNT_FFS@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x24]
Lloh26:
	adrp	x8, _MNT_LOG@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MNT_LOG@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w23, #0x1
	csel	w2, wzr, w8, ne
	add	x3, sp, #8
	mov	w4, #4
	bl	_rump_sys_mount
	cmn	w0, #1
	b.ne	LBB0_18
; %bb.17:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x0, l_.str.5@PAGE
Lloh33:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_die
LBB0_18:
	mov	x0, x19
	bl	_rump_init_server
	cbz	w0, LBB0_20
; %bb.19:
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_die
LBB0_20:
	ldr	w8, [x22]
	cbz	w8, LBB0_22
; %bb.21:
Lloh36:
	adrp	x8, _RUMP_DAEMONIZE_SUCCESS@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RUMP_DAEMONIZE_SUCCESS@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	bl	_rump_daemonize_done
LBB0_22:
Lloh39:
	adrp	x19, _sigsem@GOTPAGE
Lloh40:
	ldr	x19, [x19, _sigsem@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_sem_init
Lloh41:
	adrp	x8, _SIGTERM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SIGTERM@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x20, _sigreboot@GOTPAGE
Lloh45:
	ldr	x20, [x20, _sigreboot@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_signal
Lloh46:
	adrp	x8, _SIGINT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_signal
	mov	x0, x19
	bl	_sem_wait
	mov	w0, #0
	mov	x1, #0
	bl	_rump_sys_reboot
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bl"

	.comm	_background,4,2                 ; @background
	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"rump daemonize: %s"

l_.str.2:                               ; @.str.2
	.asciz	"rump init failed"

	.comm	_FSTEST_MNTNAME,4,2             ; @FSTEST_MNTNAME
l_.str.3:                               ; @.str.3
	.asciz	"mount point create"

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"/diskdev"

	.comm	_RUMP_ETFS_BLK,4,2              ; @RUMP_ETFS_BLK
	.comm	_MOUNT_FFS,4,2                  ; @MOUNT_FFS
	.comm	_MNT_LOG,4,2                    ; @MNT_LOG
l_.str.5:                               ; @.str.5
	.asciz	"mount ffs"

l_.str.6:                               ; @.str.6
	.asciz	"rump server init failed"

	.comm	_RUMP_DAEMONIZE_SUCCESS,4,2     ; @RUMP_DAEMONIZE_SUCCESS
	.comm	_sigsem,4,2                     ; @sigsem
	.comm	_SIGTERM,4,2                    ; @SIGTERM
	.comm	_sigreboot,4,2                  ; @sigreboot
	.comm	_SIGINT,4,2                     ; @SIGINT
.subsections_via_symbols
