	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function switch_ctr
_switch_ctr:                            ## @switch_ctr
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, -56(%rbp)
	movq	%rdx, -48(%rbp)
	leaq	_switch_ctr._args(%rip), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rcx
	callq	_dm_read_arg
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	leaq	_switch_ctr._args+16(%rip), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r14, %rcx
	callq	_dm_read_arg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	leaq	_switch_ctr._args+32(%rip), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rcx
	callq	_dm_read_arg_group
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-40(%rbp), %esi
	leal	(%rsi,%rsi), %eax
	cmpl	%eax, -56(%rbp)
	jne	LBB0_6
## %bb.7:
	movl	-36(%rbp), %edx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_alloc_switch_ctx
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r15
	movl	-36(%rbp), %esi
	movq	%r14, %rdi
	callq	_dm_set_target_max_io_len
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	leaq	-56(%rbp), %r12
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, -56(%rbp)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_parse_path
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%r14)
	jmp	LBB0_1
LBB0_8:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movl	-40(%rbp), %esi
	movq	%r14, %rdi
	callq	_alloc_region_table
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	_switch_dtr
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
	callq	_initialise_region_table
	movl	$1, 8(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__const
	.p2align	4                               ## @switch_ctr._args
_switch_ctr._args:
	.long	1                               ## 0x1
	.long	31                              ## 0x1f
	.quad	L_.str
	.long	1                               ## 0x1
	.long	128                             ## 0x80
	.quad	L_.str.1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.quad	L_.str.2

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid number of paths"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid region size"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid number of optional args"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Incorrect number of path arguments"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot allocate redirection context"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_switch_ctr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function switch_ctr
_switch_ctr:                            ; @switch_ctr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	str	w1, [sp, #16]
	str	x2, [sp, #24]
Lloh0:
	adrp	x0, _switch_ctr._args@PAGE
Lloh1:
	add	x0, x0, _switch_ctr._args@PAGEOFF
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x3, x19
	bl	_dm_read_arg
	cbz	w0, LBB0_3
LBB0_1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
Lloh4:
	adrp	x0, _switch_ctr._args@PAGE+16
Lloh5:
	add	x0, x0, _switch_ctr._args@PAGEOFF+16
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x3, x19
	bl	_dm_read_arg
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, _switch_ctr._args@PAGE+32
Lloh7:
	add	x0, x0, _switch_ctr._args@PAGEOFF+32
	add	x1, sp, #16
	add	x2, sp, #4
	mov	x3, x19
	bl	_dm_read_arg_group
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldp	w1, w8, [sp, #12]
	cmp	w8, w1, lsl #1
	b.ne	LBB0_13
; %bb.7:
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_alloc_switch_ctx
	cbz	x0, LBB0_14
; %bb.8:
	mov	x21, x0
	ldr	w1, [sp, #8]
	mov	x0, x19
	bl	_dm_set_target_max_io_len
	mov	x20, x0
	cbnz	w0, LBB0_16
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #16
	mov	x1, x19
	bl	_parse_path
	cbnz	w0, LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_9
; %bb.11:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_alloc_region_table
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.12:
	mov	x0, x21
	bl	_initialise_region_table
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_5
LBB0_13:
Lloh8:
	adrp	x8, l_.str.3@PAGE
Lloh9:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19]
	b	LBB0_1
LBB0_14:
Lloh10:
	adrp	x8, l_.str.4@PAGE
Lloh11:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x19]
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_15:
	mov	x20, x0
LBB0_16:
	mov	x0, x19
	bl	_switch_dtr
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__const
	.p2align	3                               ; @switch_ctr._args
_switch_ctr._args:
	.long	1                               ; 0x1
	.long	31                              ; 0x1f
	.quad	l_.str
	.long	1                               ; 0x1
	.long	128                             ; 0x80
	.quad	l_.str.1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.quad	l_.str.2

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid number of paths"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid region size"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid number of optional args"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Incorrect number of path arguments"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot allocate redirection context"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_switch_ctr
.subsections_via_symbols
