	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvmc_reset_task
_ibmvmc_reset_task:                     ## @ibmvmc_reset_task
	.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	%rdi, %r13
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-20, %esi
	callq	_set_user_nice
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ibmvmc@GOTPCREL(%rip), %r15
	movq	_ibmvmc_state_sched_reset@GOTPCREL(%rip), %r12
	movq	_H_RESOURCE@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	_ibmvmc_state_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	callq	_to_vio_dev
	movl	%eax, %edi
	callq	_vio_enable_interrupts
	movq	%r13, %rdi
	callq	_tasklet_enable
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %ebx
	movq	(%r15), %rcx
	movb	$1, %al
	cmpq	(%r12), %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	setne	%al
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%al, %esi
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_tasklet_disable
	movq	%r13, %rdi
	callq	_ibmvmc_reset_crq_queue
	movl	%eax, %ebx
	movq	_H_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r14), %ebx
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ibmvmc_state_crqinit@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ibmvmc_send_crq
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r14), %ebx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_current,4,2                    ## @current
	.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	"CRQ resetting in process context"

	.comm	_H_SUCCESS,4,2                  ## @H_SUCCESS
	.comm	_H_RESOURCE,4,2                 ## @H_RESOURCE
L_.str.1:                               ## @.str.1
	.asciz	"Error initializing CRQ.  rc = 0x%x\n"

	.comm	_ibmvmc_state_failed,8,3        ## @ibmvmc_state_failed
	.comm	_ibmvmc_state_crqinit,8,3       ## @ibmvmc_state_crqinit
L_.str.2:                               ## @.str.2
	.asciz	"Failed to send initialize CRQ message\n"

	.no_dead_strip	_ibmvmc_reset_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvmc_reset_task
_ibmvmc_reset_task:                     ; @ibmvmc_reset_task
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #-20
	bl	_set_user_nice
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh3:
	adrp	x24, _ibmvmc@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ibmvmc@GOTPAGEOFF]
Lloh5:
	adrp	x25, _ibmvmc_state_sched_reset@GOTPAGE
Lloh6:
	ldr	x25, [x25, _ibmvmc_state_sched_reset@GOTPAGEOFF]
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
Lloh9:
	adrp	x26, _H_SUCCESS@GOTPAGE
Lloh10:
	ldr	x26, [x26, _H_SUCCESS@GOTPAGEOFF]
Lloh11:
	adrp	x27, _H_RESOURCE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _H_RESOURCE@GOTPAGEOFF]
Lloh13:
	adrp	x28, _ibmvmc_state_crqinit@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ibmvmc_state_crqinit@GOTPAGEOFF]
Lloh15:
	adrp	x22, l_.str.1@PAGE
Lloh16:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh17:
	adrp	x21, _ibmvmc_state_failed@GOTPAGE
Lloh18:
	ldr	x21, [x21, _ibmvmc_state_failed@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x22
	mov	x2, x23
	bl	_dev_err
	ldr	x8, [x21]
	str	x8, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	bl	_to_vio_dev
	bl	_vio_enable_interrupts
	mov	x0, x19
	bl	_tasklet_enable
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x19, #8]
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w1, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_kthread_should_stop
	cmp	x0, #0
	cset	w1, ne
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_wait_event_interruptible
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_tasklet_disable
	mov	x0, x19
	bl	_ibmvmc_reset_crq_queue
	mov	x23, x0
	ldr	w8, [x26]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	str	x8, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_ibmvmc_send_crq
	cbz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x27]
	cmp	w23, w8
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_current,4,2                    ; @current
	.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	"CRQ resetting in process context"

	.comm	_H_SUCCESS,4,2                  ; @H_SUCCESS
	.comm	_H_RESOURCE,4,2                 ; @H_RESOURCE
l_.str.1:                               ; @.str.1
	.asciz	"Error initializing CRQ.  rc = 0x%x\n"

	.comm	_ibmvmc_state_failed,8,3        ; @ibmvmc_state_failed
	.comm	_ibmvmc_state_crqinit,8,3       ; @ibmvmc_state_crqinit
l_.str.2:                               ; @.str.2
	.asciz	"Failed to send initialize CRQ message\n"

	.no_dead_strip	_ibmvmc_reset_task
.subsections_via_symbols
