	.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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$2, %edi
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	_MDSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$1, %edi
	callq	_calloc
	movl	%eax, -24(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -28(%rbp)
	movq	_MD_UMEM_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	xorl	%eax, %eax
	callq	_rump_daemonize_begin
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_REQUIRE
	xorl	%eax, %eax
	callq	_rump_init
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_REQUIRE
	leaq	L_.str.2(%rip), %rdi
	callq	_rump_init_server
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edi
	callq	_REQUIRE
	movq	8(%r14), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rump_sys_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	_prober@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rcx
	leaq	-20(%rbp), %rdi
	xorl	%esi, %esi
	callq	_pthread_create
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_REQUIRE
	movl	-20(%rbp), %edi
	callq	_pthread_detach
	movq	_MD_SETCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_rump_sys_ioctl
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %edi
	callq	_exit
LBB0_6:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rump_daemonize_done
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_MDSIZE,4,2                     ## @MDSIZE
	.comm	_MD_UMEM_SERVER,4,2             ## @MD_UMEM_SERVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rump_daemonize_begin"

L_.str.1:                               ## @.str.1
	.asciz	"rump_init"

L_.str.2:                               ## @.str.2
	.asciz	"unix://commsock"

L_.str.3:                               ## @.str.3
	.asciz	"init server"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.4:                               ## @.str.4
	.asciz	"open"

	.comm	_prober,4,2                     ## @prober
L_.str.5:                               ## @.str.5
	.asciz	"pthread_create"

	.comm	_MD_SETCONF,4,2                 ## @MD_SETCONF
	.comm	_errno,4,2                      ## @errno
.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, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x20, _MDSIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MDSIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #1
	bl	_calloc
	str	w0, [sp, #8]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _MD_UMEM_SERVER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MD_UMEM_SERVER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w9, w8, [sp]
	bl	_rump_daemonize_begin
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_REQUIRE
	bl	_rump_init
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_REQUIRE
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_rump_init_server
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_REQUIRE
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_rump_sys_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
Lloh18:
	adrp	x8, _prober@GOTPAGE
Lloh19:
	ldr	x8, [x8, _prober@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	add	x0, sp, #12
	mov	x1, #0
	bl	_pthread_create
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_REQUIRE
	ldr	w0, [sp, #12]
	bl	_pthread_detach
Lloh23:
	adrp	x8, _MD_SETCONF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MD_SETCONF@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_rump_sys_ioctl
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	mov	w0, #1
	bl	_exit
LBB0_6:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_rump_daemonize_done
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MDSIZE,4,2                     ; @MDSIZE
	.comm	_MD_UMEM_SERVER,4,2             ; @MD_UMEM_SERVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rump_daemonize_begin"

l_.str.1:                               ; @.str.1
	.asciz	"rump_init"

l_.str.2:                               ; @.str.2
	.asciz	"unix://commsock"

l_.str.3:                               ; @.str.3
	.asciz	"init server"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.4:                               ; @.str.4
	.asciz	"open"

	.comm	_prober,4,2                     ; @prober
l_.str.5:                               ; @.str.5
	.asciz	"pthread_create"

	.comm	_MD_SETCONF,4,2                 ; @MD_SETCONF
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
