	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mountunion
_mountunion:                            ## @mountunion
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$7497079, 3(%rsi)               ## imm = 0x726577
	movl	$2003790895, (%rsi)             ## imm = 0x776F6C2F
	movq	%rsi, %rdi
	movl	$511, %esi                      ## imm = 0x1FF
	callq	_rump_sys_mkdir
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%rbx, -40(%rbp)
	movq	_UNMNT_BELOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_MOUNT_UNION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	movl	$16, %r8d
	callq	_rump_sys_mount
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_atf_tc_skip
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail_errno
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/lower"

	.comm	_UNMNT_BELOW,4,2                ## @UNMNT_BELOW
	.comm	_MOUNT_UNION,4,2                ## @MOUNT_UNION
	.comm	_errno,8,3                      ## @errno
	.comm	_EOPNOTSUPP,8,3                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"fs does not support VOP_WHITEOUT"

L_.str.2:                               ## @.str.2
	.asciz	"union mount"

	.no_dead_strip	_mountunion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mountunion
_mountunion:                            ; @mountunion
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #25975
	movk	w8, #114, lsl #16
	stur	w8, [x1, #3]
	mov	w8, #27695
	movk	w8, #30575, lsl #16
	str	w8, [x1]
	mov	x0, x1
	mov	w1, #511
	bl	_rump_sys_mkdir
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _UNMNT_BELOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNMNT_BELOW@GOTPAGEOFF]
	str	x19, [sp]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _MOUNT_UNION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MOUNT_UNION@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x3, sp
	mov	x1, x20
	mov	w2, #0
	mov	w4, #16
	bl	_rump_sys_mount
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_atf_tc_skip
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail_errno
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/lower"

	.comm	_UNMNT_BELOW,4,2                ; @UNMNT_BELOW
	.comm	_MOUNT_UNION,4,2                ; @MOUNT_UNION
	.comm	_errno,8,3                      ; @errno
	.comm	_EOPNOTSUPP,8,3                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"fs does not support VOP_WHITEOUT"

l_.str.2:                               ; @.str.2
	.asciz	"union mount"

	.no_dead_strip	_mountunion
.subsections_via_symbols
