	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vhba_timer
_vhba_timer:                            ## @vhba_timer
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_vhba_stop_lun@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	%eax, %ebx
	notl	%ebx
	andl	$1, %ebx
	movq	(%r15), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_7
## %bb.2:
	movq	_vhba_notify_stop@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_xpt_periph@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%r14), %edi
	callq	_cam_sim_path
	leaq	-56(%rbp), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_xpt_create_path
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.4:
	movq	(%r15), %rax
	movl	$0, (%rax,%rbx,4)
	movq	_AC_LOST_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_xpt_async
	movq	-56(%rbp), %rdi
	callq	_xpt_free_path
	jmp	LBB0_6
LBB0_8:
	movq	_vhba_start_lun@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.9:
	notl	%ebx
	andl	$1, %ebx
	movq	(%r15), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_10
LBB0_16:
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, (%r13)
	jmp	LBB0_17
LBB0_5:
	movl	$0, (%rcx,%rbx,4)
LBB0_6:
	movl	(%r13), %eax
LBB0_7:
	btrl	%ebx, %eax
	movl	%eax, (%r13)
LBB0_17:
	addq	$8, %r15
	movq	_VMP_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_vhba_timer(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_callout_reset
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_vhba_notify_start@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
## %bb.11:
	xorl	%eax, %eax
	callq	_xpt_alloc_ccb_nowait
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	%rax, %r12
	movq	_xpt_periph@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_cam_sim_path
	movq	_CAM_TARGET_WILDCARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CAM_LUN_WILDCARD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_xpt_create_path
	movq	_CAM_REQ_CMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.14:
	movq	(%r15), %rax
	movl	$1, (%rax,%rbx,4)
	movq	%r12, %rdi
	callq	_xpt_rescan
	jmp	LBB0_16
LBB0_15:
	movl	$1, (%rax,%rbx,4)
	jmp	LBB0_16
LBB0_13:
	movq	%r12, %rdi
	callq	_xpt_free_ccb
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_vhba_stop_lun,4,2              ## @vhba_stop_lun
	.comm	_vhba_notify_stop,8,3           ## @vhba_notify_stop
	.comm	_xpt_periph,4,2                 ## @xpt_periph
	.comm	_CAM_REQ_CMP,8,3                ## @CAM_REQ_CMP
	.comm	_AC_LOST_DEVICE,4,2             ## @AC_LOST_DEVICE
	.comm	_vhba_start_lun,4,2             ## @vhba_start_lun
	.comm	_vhba_notify_start,8,3          ## @vhba_notify_start
	.comm	_CAM_TARGET_WILDCARD,4,2        ## @CAM_TARGET_WILDCARD
	.comm	_CAM_LUN_WILDCARD,4,2           ## @CAM_LUN_WILDCARD
	.comm	_VMP_TIME,4,2                   ## @VMP_TIME
	.no_dead_strip	_vhba_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vhba_timer
_vhba_timer:                            ; @vhba_timer
	.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	x19, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x23, _vhba_stop_lun@GOTPAGE
Lloh1:
	ldr	x23, [x23, _vhba_stop_lun@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.1:
	mvn	w9, w8
	and	x20, x9, #0x1
	ldr	x9, [x22]
	ldr	w10, [x9, x20, lsl #2]
	cbz	w10, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _vhba_notify_stop@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vhba_notify_stop@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.3:
Lloh5:
	adrp	x8, _xpt_periph@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xpt_periph@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_cam_sim_path
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x21
	mov	w3, #0
	mov	x4, x20
	bl	_xpt_create_path
Lloh8:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.4:
	ldr	x8, [x22]
	str	wzr, [x8, x20, lsl #2]
Lloh11:
	adrp	x8, _AC_LOST_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AC_LOST_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	mov	x2, #0
	bl	_xpt_async
	ldr	x0, [sp, #8]
	bl	_xpt_free_path
	b	LBB0_9
LBB0_5:
Lloh14:
	adrp	x23, _vhba_start_lun@GOTPAGE
Lloh15:
	ldr	x23, [x23, _vhba_start_lun@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_12
; %bb.6:
	mvn	w8, w8
	and	x24, x8, #0x1
	ldr	x8, [x22]
	ldr	w9, [x8, x24, lsl #2]
	cbz	w9, LBB0_13
LBB0_7:
	mov	w8, #1
	lsl	w8, w8, w24
	ldr	w9, [x23]
	bic	w8, w9, w8
	b	LBB0_11
LBB0_8:
	str	wzr, [x9, x20, lsl #2]
LBB0_9:
	ldr	w8, [x23]
LBB0_10:
	mov	w9, #1
	lsl	w9, w9, w20
	bic	w8, w8, w9
LBB0_11:
	str	w8, [x23]
LBB0_12:
	add	x0, x22, #8
Lloh16:
	adrp	x8, _VMP_TIME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _VMP_TIME@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, _vhba_timer@PAGE
Lloh20:
	add	x2, x2, _vhba_timer@PAGEOFF
	mov	x3, x19
	bl	_callout_reset
	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_13:
Lloh21:
	adrp	x9, _vhba_notify_start@GOTPAGE
Lloh22:
	ldr	x9, [x9, _vhba_notify_start@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cbz	x9, LBB0_17
; %bb.14:
	bl	_xpt_alloc_ccb_nowait
	cbz	x0, LBB0_12
; %bb.15:
	mov	x20, x0
Lloh24:
	adrp	x8, _xpt_periph@GOTPAGE
Lloh25:
	ldr	x8, [x8, _xpt_periph@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	ldr	w0, [x19]
	bl	_cam_sim_path
	mov	x2, x0
Lloh27:
	adrp	x8, _CAM_TARGET_WILDCARD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CAM_TARGET_WILDCARD@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	adrp	x8, _CAM_LUN_WILDCARD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CAM_LUN_WILDCARD@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_xpt_create_path
Lloh33:
	adrp	x8, _CAM_REQ_CMP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CAM_REQ_CMP@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.16:
	ldr	x8, [x22]
	mov	w9, #1
	str	w9, [x8, x24, lsl #2]
	mov	x0, x20
	bl	_xpt_rescan
	b	LBB0_7
LBB0_17:
	mov	w9, #1
	str	w9, [x8, x24, lsl #2]
	b	LBB0_7
LBB0_18:
	mov	x0, x20
	bl	_xpt_free_ccb
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_vhba_stop_lun,4,2              ; @vhba_stop_lun
	.comm	_vhba_notify_stop,8,3           ; @vhba_notify_stop
	.comm	_xpt_periph,4,2                 ; @xpt_periph
	.comm	_CAM_REQ_CMP,8,3                ; @CAM_REQ_CMP
	.comm	_AC_LOST_DEVICE,4,2             ; @AC_LOST_DEVICE
	.comm	_vhba_start_lun,4,2             ; @vhba_start_lun
	.comm	_vhba_notify_start,8,3          ; @vhba_notify_start
	.comm	_CAM_TARGET_WILDCARD,4,2        ; @CAM_TARGET_WILDCARD
	.comm	_CAM_LUN_WILDCARD,4,2           ; @CAM_LUN_WILDCARD
	.comm	_VMP_TIME,4,2                   ; @VMP_TIME
	.no_dead_strip	_vhba_timer
.subsections_via_symbols
