	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kernel_wait
_kernel_wait:                           ## @kernel_wait
	.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
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	$1, %r12d
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	leal	(,%r12,4), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	callq	_xo_err
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	%r12d, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movq	_ISCSISLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, %r12d
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
	jmp	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %eax
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, (%rbx,%rcx,4)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_9
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_sleep
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	jne	LBB0_1
## %bb.12:
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	callq	_xo_warn
LBB0_13:
	movl	%r14d, %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	"realloc"

	.comm	_ISCSISLIST,4,2                 ## @ISCSISLIST
	.comm	_errno,8,3                      ## @errno
	.comm	_EMSGSIZE,8,3                   ## @EMSGSIZE
L_.str.1:                               ## @.str.1
	.asciz	"ISCSISLIST"

	.no_dead_strip	_kernel_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kernel_wait
_kernel_wait:                           ; @kernel_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	x21, #0
	mov	w25, #1
Lloh0:
	adrp	x26, _ISCSISLIST@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ISCSISLIST@GOTPAGEOFF]
Lloh2:
	adrp	x27, _errno@GOTPAGE
Lloh3:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh4:
	adrp	x28, _EMSGSIZE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EMSGSIZE@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	lsl	w23, w25, #2
	mov	x0, x21
	mov	x1, x23
	bl	_realloc
	mov	x21, x0
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_xo_err
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	str	w25, [sp]
	str	x21, [sp, #8]
	ldr	w1, [x26]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [sp]
	cbz	w9, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, #0
	lsl	x9, x9, #2
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x21, x8]
	cbz	w10, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, #4
	cmp	x9, x8
	b.ne	LBB0_6
	b	LBB0_12
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_sleep
	subs	w8, w20, #1
	b.lt	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x20, x8
	b.ne	LBB0_1
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x27]
	ldr	x9, [x28]
	mov	x25, x23
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.11:
	mov	x24, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xo_warn
	b	LBB0_13
LBB0_12:
	mov	w24, #0
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	w24, #1
	b	LBB0_13
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"realloc"

	.comm	_ISCSISLIST,4,2                 ; @ISCSISLIST
	.comm	_errno,8,3                      ; @errno
	.comm	_EMSGSIZE,8,3                   ; @EMSGSIZE
l_.str.1:                               ; @.str.1
	.asciz	"ISCSISLIST"

	.no_dead_strip	_kernel_wait
.subsections_via_symbols
