	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_reset_init
_ibmvnic_reset_init:                    ## @ibmvnic_reset_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	%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, %r12
	movq	56(%rdi), %r13
	movl	$30000, %edi                    ## imm = 0x7530
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movl	$0, (%r12)
	movq	8(%r12), %r14
	movq	16(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	52(%r12), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movl	$0, 24(%r12)
	movq	%r12, %rdi
	callq	_ibmvnic_send_crq_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, 24(%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_release_crq_queue
	movl	24(%r12), %r15d
	jmp	LBB0_19
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movl	$-1, %r15d
	jmp	LBB0_19
LBB0_4:
	cmpl	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	_VNIC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movl	$0, (%r12)
	movl	$-1, %r15d
	jmp	LBB0_19
LBB0_6:
	leaq	44(%r12), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	cmpl	$0, 40(%r12)
	jne	LBB0_12
## %bb.8:
	movq	32(%r12), %rax
	movq	_VNIC_RESET_MOBILITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.9:
	cmpq	%r14, 8(%r12)
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 16(%r12)
	jne	LBB0_11
## %bb.20:
	movq	%r12, %rdi
	callq	_reset_sub_crq_queues
	jmp	LBB0_13
LBB0_11:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_release_sub_crqs
LBB0_12:
	movq	%r12, %rdi
	callq	_init_sub_crqs
LBB0_13:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_18
LBB0_15:
	movq	%r12, %rdi
	callq	_init_sub_crq_irqs
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_18:
	movq	%r13, %rdi
	callq	_dev_err
	movq	%r12, %rdi
	callq	_release_crq_queue
LBB0_19:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialization sequence timed out\n"

	.comm	_VNIC_OPEN,4,2                  ## @VNIC_OPEN
	.comm	_VNIC_RESET_MOBILITY,8,3        ## @VNIC_RESET_MOBILITY
L_.str.1:                               ## @.str.1
	.asciz	"Initialization of sub crqs failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize sub crq irqs\n"

	.no_dead_strip	_ibmvnic_reset_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_reset_init
_ibmvnic_reset_init:                    ; @ibmvnic_reset_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, [x0, #56]
	mov	w0, #30000
	bl	_msecs_to_jiffies
	mov	x21, x0
	str	wzr, [x19]
	add	x22, x19, #52
	ldp	x24, x23, [x19, #8]
	mov	x0, x22
	bl	_reinit_completion
	str	wzr, [x19, #24]
	mov	x0, x19
	bl	_ibmvnic_send_crq_init
	mov	x0, x22
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_release_crq_queue
	ldr	w21, [x19, #24]
	b	LBB0_19
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	w21, #-1
	b	LBB0_19
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _VNIC_OPEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VNIC_OPEN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #48]
	str	wzr, [x19]
	mov	w21, #-1
	b	LBB0_19
LBB0_6:
	add	x1, x19, #44
	mov	w0, #0
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w8, [x19, #40]
	cbnz	w8, LBB0_13
; %bb.8:
	ldr	x8, [x19, #32]
Lloh5:
	adrp	x9, _VNIC_RESET_MOBILITY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VNIC_RESET_MOBILITY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.9:
	ldr	x8, [x19, #8]
	cmp	x8, x24
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x19, #16]
	cmp	x8, x23
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_reset_sub_crq_queues
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_release_sub_crqs
LBB0_13:
	mov	x0, x19
	bl	_init_sub_crqs
LBB0_14:
	mov	x21, x0
	cbz	w0, LBB0_16
; %bb.15:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	bl	_init_sub_crq_irqs
	mov	x21, x0
	cbz	w0, LBB0_19
; %bb.17:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_release_crq_queue
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialization sequence timed out\n"

	.comm	_VNIC_OPEN,4,2                  ; @VNIC_OPEN
	.comm	_VNIC_RESET_MOBILITY,8,3        ; @VNIC_RESET_MOBILITY
l_.str.1:                               ; @.str.1
	.asciz	"Initialization of sub crqs failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize sub crq irqs\n"

	.no_dead_strip	_ibmvnic_reset_init
.subsections_via_symbols
