	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_reset
_ibmvmc_reset:                          ## @ibmvmc_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ibmvmc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ibmvmc_state_sched_reset@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_ibmvmc_max_hmcs@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%r12d, %r12d
	movq	_hmcs@GOTPCREL(%rip), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	movl	%ebx, %esi
	callq	_ibmvmc_return_hmc
	incq	%r14
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	movq	_ibmvmc@GOTPCREL(%rip), %rcx
	je	LBB0_7
## %bb.5:
	movq	_ibmvmc_state_crqinit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ibmvmc_state_sched_reset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ibmvmc,8,3                     ## @ibmvmc
	.comm	_ibmvmc_state_sched_reset,8,3   ## @ibmvmc_state_sched_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*** Reset to initial state.\n"

	.comm	_ibmvmc_max_hmcs,4,2            ## @ibmvmc_max_hmcs
	.comm	_hmcs,8,3                       ## @hmcs
	.comm	_ibmvmc_state_crqinit,8,3       ## @ibmvmc_state_crqinit
L_.str.1:                               ## @.str.1
	.asciz	"Device reset scheduled"

	.no_dead_strip	_ibmvmc_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_reset
_ibmvmc_reset:                          ; @ibmvmc_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _ibmvmc@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ibmvmc@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x22, _ibmvmc_state_sched_reset@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ibmvmc_state_sched_reset@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh6:
	adrp	x23, _ibmvmc_max_hmcs@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ibmvmc_max_hmcs@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x25, #0
Lloh8:
	adrp	x26, _hmcs@GOTPAGE
Lloh9:
	ldr	x26, [x26, _hmcs@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x0, x8, x24
	mov	x1, x20
	bl	_ibmvmc_return_hmc
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x25, x8
	b.lt	LBB0_3
LBB0_4:
	cbz	w20, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _ibmvmc_state_crqinit@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ibmvmc_state_crqinit@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x22]
	str	x8, [x21]
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_wake_up_interruptible
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ibmvmc,8,3                     ; @ibmvmc
	.comm	_ibmvmc_state_sched_reset,8,3   ; @ibmvmc_state_sched_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*** Reset to initial state.\n"

	.comm	_ibmvmc_max_hmcs,4,2            ; @ibmvmc_max_hmcs
	.comm	_hmcs,8,3                       ; @hmcs
	.comm	_ibmvmc_state_crqinit,8,3       ; @ibmvmc_state_crqinit
l_.str.1:                               ; @.str.1
	.asciz	"Device reset scheduled"

	.no_dead_strip	_ibmvmc_reset
.subsections_via_symbols
