	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_init
_ibmvnic_init:                          ## @ibmvnic_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	16(%rdi), %r14
	movl	$30000, %edi                    ## imm = 0x7530
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	movq	$0, (%rbx)
	movq	%rbx, %rdi
	callq	_ibmvnic_send_crq_init
	leaq	12(%rbx), %rdi
	movq	%r15, %rsi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_release_crq_queue
	movl	4(%rbx), %r15d
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	$-1, %r15d
	jmp	LBB0_12
LBB0_4:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movq	_VNIC_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, (%rbx)
	movl	$-1, %r15d
	jmp	LBB0_12
LBB0_6:
	movq	%rbx, %rdi
	callq	_init_sub_crqs
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_init_sub_crq_irqs
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_release_crq_queue
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.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
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_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_init
_ibmvnic_init:                          ; @ibmvnic_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	mov	w0, #30000
	bl	_msecs_to_jiffies
	mov	x21, x0
	str	xzr, [x19]
	mov	x0, x19
	bl	_ibmvnic_send_crq_init
	add	x0, x19, #12
	mov	x1, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_release_crq_queue
	ldr	w21, [x19, #4]
	b	LBB0_11
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_11
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, #8]
	str	wzr, [x19]
	mov	w21, #-1
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_init_sub_crqs
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_init_sub_crq_irqs
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.9:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_release_crq_queue
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.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
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_init
.subsections_via_symbols
