	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vhba_init                      ## -- Begin function vhba_init
	.p2align	4, 0x90
_vhba_init:                             ## @vhba_init
	.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	%rdi, %rbx
	movq	%rdi, _vhba_init.vhbas+24(%rip)
	leaq	_vhba_init.vhbas(%rip), %r14
	movq	_DISK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$20, %edi
	movl	%edi, _vhba_init.vhbas(%rip)
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movl	%eax, _vhba_init.vhbas+20(%rip)
	movq	%r14, (%rbx)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	-32(%rbp), %rdi
	callq	_getmicrotime
	testb	$1, -32(%rbp)
	je	LBB0_2
## %bb.1:
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$1, (%rax)
LBB0_2:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$2, (%rax)
LBB0_4:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	$2, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$4, (%rax)
LBB0_6:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movl	$3, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$8, (%rax)
LBB0_8:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$16, (%rax)
LBB0_10:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	movl	$5, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$32, (%rax)
LBB0_12:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movl	$6, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$64, (%rax)
LBB0_14:
	xorl	%eax, %eax
	callq	_arc4random
	testb	$1, %al
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rdi
	movl	$7, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_vhba_init.vhbas+8(%rip), %rax
	orl	$128, (%rax)
LBB0_16:
	movq	_MAX_LUN@GOTPCREL(%rip), %r15
	cmpl	$9, (%r15)
	jl	LBB0_21
## %bb.17:
	movl	$8, %ebx
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jge	LBB0_21
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_arc4random
	cltd
	idivl	%ebx
	testl	%edx, %edx
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	%ebx, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	_vhba_init.vhbas+8(%rip), %rcx
	movl	%ebx, %edx
	shrl	$3, %edx
	orl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_21:
	movl	$10, %edi
	callq	_putchar
	movq	_vhba_task@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	_vhba_init.vhbas+16(%rip), %rdi
	leaq	_vhba_init.vhbas(%rip), %rcx
	xorl	%esi, %esi
	callq	_TASK_INIT
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vhba_init.vhbas,32,3 ## @vhba_init.vhbas
	.comm	_DISK_SIZE,4,2                  ## @DISK_SIZE
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting luns"

L_.str.1:                               ## @.str.1
	.asciz	" %d"

	.comm	_MAX_LUN,4,2                    ## @MAX_LUN
	.comm	_vhba_task,4,2                  ## @vhba_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vhba_init                      ; -- Begin function vhba_init
	.p2align	2
_vhba_init:                             ; @vhba_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x19, _vhba_init.vhbas@PAGE
Lloh1:
	add	x19, x19, _vhba_init.vhbas@PAGEOFF
	str	x0, [x19, #24]
Lloh2:
	adrp	x8, _DISK_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DISK_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	lsl	w0, w8, #20
	str	w0, [x19]
Lloh5:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh7:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	ldr	w8, [x9]
Lloh11:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	w0, [x19, #20]
	str	x19, [x20]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	x0, sp, #8
	bl	_getmicrotime
	ldrb	w8, [sp, #8]
	adrp	x21, _vhba_init.vhbas@PAGE+8
	tbnz	w8, #0, LBB0_15
; %bb.1:
	bl	_arc4random
	tbnz	w0, #0, LBB0_16
LBB0_2:
	bl	_arc4random
	tbnz	w0, #0, LBB0_17
LBB0_3:
	bl	_arc4random
	tbnz	w0, #0, LBB0_18
LBB0_4:
	bl	_arc4random
	tbnz	w0, #0, LBB0_19
LBB0_5:
	bl	_arc4random
	tbnz	w0, #0, LBB0_20
LBB0_6:
	bl	_arc4random
	tbnz	w0, #0, LBB0_21
LBB0_7:
	bl	_arc4random
	tbz	w0, #0, LBB0_9
LBB0_8:
	mov	w8, #7
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x80
	str	w9, [x8]
LBB0_9:
Lloh18:
	adrp	x22, _MAX_LUN@GOTPAGE
Lloh19:
	ldr	x22, [x22, _MAX_LUN@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #9
	b.lt	LBB0_14
; %bb.10:
	mov	w23, #8
	mov	w24, #1
Lloh20:
	adrp	x20, l_.str.1@PAGE
Lloh21:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22]
	cmp	w23, w8
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_arc4random
	sdiv	w8, w0, w23
	msub	w8, w8, w23, w0
	cbnz	w8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	and	w8, w23, #0x7
	lsl	w8, w24, w8
	ldr	x9, [x21, _vhba_init.vhbas@PAGEOFF+8]
	lsr	w10, w23, #3
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	str	x23, [sp]
	mov	x0, x20
	bl	_printf
	b	LBB0_11
LBB0_14:
	mov	w0, #10
	bl	_putchar
Lloh22:
	adrp	x8, _vhba_task@GOTPAGE
Lloh23:
	ldr	x8, [x8, _vhba_task@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	add	x0, x19, #16
	mov	w1, #0
	mov	x3, x19
	bl	_TASK_INIT
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x1
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_2
LBB0_16:
	mov	w8, #1
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x2
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_3
LBB0_17:
	mov	w8, #2
	str	x8, [sp]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x4
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_4
LBB0_18:
	mov	w8, #3
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x8
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_5
LBB0_19:
	mov	w8, #4
	str	x8, [sp]
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x10
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_6
LBB0_20:
	mov	w8, #5
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x20
	str	w9, [x8]
	bl	_arc4random
	tbz	w0, #0, LBB0_7
LBB0_21:
	mov	w8, #6
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x21, _vhba_init.vhbas@PAGEOFF+8]
	ldr	w9, [x8]
	orr	w9, w9, #0x40
	str	w9, [x8]
	bl	_arc4random
	tbnz	w0, #0, LBB0_8
	b	LBB0_9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vhba_init.vhbas,32,3 ; @vhba_init.vhbas
	.comm	_DISK_SIZE,4,2                  ; @DISK_SIZE
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting luns"

l_.str.1:                               ; @.str.1
	.asciz	" %d"

	.comm	_MAX_LUN,4,2                    ; @MAX_LUN
	.comm	_vhba_task,4,2                  ; @vhba_task
.subsections_via_symbols
