	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_ctio
_get_ctio:                              ## @get_ctio
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_num_ctios@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_MAX_CTIOS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
	jmp	LBB0_10
LBB0_2:
	movl	$72, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rbx
	movl	$72, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r14
	movq	_buf_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_malloc
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	incq	(%r15)
	movq	_XPT_CONT_TARGET_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rbx)
	movl	$2, 40(%rbx)
	movq	_CAM_TIME_INFINITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rbx)
	movq	%rax, 64(%rbx)
	movq	%r14, 48(%rbx)
	movq	%rax, 24(%r14)
	movq	_file_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_SIGEV_KEVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	_kq_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, (%r14)
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_free
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	callq	_warn
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_num_ctios,8,3                  ## @num_ctios
	.comm	_MAX_CTIOS,8,3                  ## @MAX_CTIOS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"at CTIO max"

L_.str.1:                               ## @.str.1
	.asciz	"malloc CTIO"

L_.str.2:                               ## @.str.2
	.asciz	"malloc ctio_descr"

	.comm	_buf_size,4,2                   ## @buf_size
L_.str.3:                               ## @.str.3
	.asciz	"malloc backing store"

	.comm	_XPT_CONT_TARGET_IO,4,2         ## @XPT_CONT_TARGET_IO
	.comm	_CAM_TIME_INFINITY,4,2          ## @CAM_TIME_INFINITY
	.comm	_file_fd,4,2                    ## @file_fd
	.comm	_SIGEV_KEVENT,4,2               ## @SIGEV_KEVENT
	.comm	_kq_fd,4,2                      ## @kq_fd
	.no_dead_strip	_get_ctio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_ctio
_get_ctio:                              ; @get_ctio
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _num_ctios@GOTPAGE
Lloh1:
	ldr	x21, [x21, _num_ctios@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _MAX_CTIOS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_CTIOS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
	b	LBB0_10
LBB0_2:
	mov	w0, #72
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.3:
	mov	w0, #72
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.4:
	mov	x20, x0
Lloh7:
	adrp	x8, _buf_size@GOTPAGE
Lloh8:
	ldr	x8, [x8, _buf_size@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_malloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x21]
	add	x8, x8, #1
	str	x8, [x21]
Lloh10:
	adrp	x8, _XPT_CONT_TARGET_IO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XPT_CONT_TARGET_IO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #2
	str	w9, [x19, #40]
Lloh13:
	adrp	x9, _CAM_TIME_INFINITY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CAM_TIME_INFINITY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
	str	x0, [x19, #64]
	str	x20, [x19, #48]
Lloh16:
	adrp	x8, _file_fd@GOTPAGE
Lloh17:
	ldr	x8, [x8, _file_fd@GOTPAGEOFF]
	str	x0, [x20, #24]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh19:
	adrp	x8, _SIGEV_KEVENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIGEV_KEVENT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _kq_fd@GOTPAGE
Lloh23:
	ldr	x9, [x9, _kq_fd@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	x19, [x20]
	b	LBB0_11
LBB0_6:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_free
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_free
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_warn
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_num_ctios,8,3                  ; @num_ctios
	.comm	_MAX_CTIOS,8,3                  ; @MAX_CTIOS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"at CTIO max"

l_.str.1:                               ; @.str.1
	.asciz	"malloc CTIO"

l_.str.2:                               ; @.str.2
	.asciz	"malloc ctio_descr"

	.comm	_buf_size,4,2                   ; @buf_size
l_.str.3:                               ; @.str.3
	.asciz	"malloc backing store"

	.comm	_XPT_CONT_TARGET_IO,4,2         ; @XPT_CONT_TARGET_IO
	.comm	_CAM_TIME_INFINITY,4,2          ; @CAM_TIME_INFINITY
	.comm	_file_fd,4,2                    ; @file_fd
	.comm	_SIGEV_KEVENT,4,2               ; @SIGEV_KEVENT
	.comm	_kq_fd,4,2                      ; @kq_fd
	.no_dead_strip	_get_ctio
.subsections_via_symbols
