	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ibmvnic_send_crq
_ibmvnic_send_crq:                      ## @ibmvnic_send_crq
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	$4, %r13
	movl	8(%rdi), %r15d
	movl	(%rsi), %edi
	callq	_cpu_to_be64
	movq	%rax, %r12
	movl	4(%rbx), %edi
	callq	_cpu_to_be64
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_netdev_dbg
	cmpl	$0, 4(%r14)
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_IBMVNIC_CRQ_INIT_CMD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_mb
	movq	_H_SEND_CRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rbx), %edi
	callq	_cpu_to_be64
	movq	%rax, %r15
	movl	4(%rbx), %edi
	xorl	%ebx, %ebx
	callq	_cpu_to_be64
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_plpar_hcall_norets
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %ebx
	movq	_H_CLOSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_VNIC_RESET_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ibmvnic_reset
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending CRQ: %016lx %016lx\n"

	.comm	_IBMVNIC_CRQ_INIT_CMD,8,3       ## @IBMVNIC_CRQ_INIT_CMD
L_.str.1:                               ## @.str.1
	.asciz	"Invalid request detected while CRQ is inactive, possible device state change during reset\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_H_SEND_CRQ,4,2                 ## @H_SEND_CRQ
	.comm	_H_CLOSED,4,2                   ## @H_CLOSED
L_.str.2:                               ## @.str.2
	.asciz	"CRQ Queue closed\n"

	.comm	_VNIC_RESET_FATAL,4,2           ## @VNIC_RESET_FATAL
L_.str.3:                               ## @.str.3
	.asciz	"Send error (rc=%d)\n"

	.no_dead_strip	_ibmvnic_send_crq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ibmvnic_send_crq
_ibmvnic_send_crq:                      ; @ibmvnic_send_crq
	.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	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	w21, [x19], #4
	ldr	w23, [x0, #8]
	ldr	w0, [x1]
	bl	_cpu_to_be64
	mov	x24, x0
	ldr	w0, [x22, #4]
	bl	_cpu_to_be64
	mov	x3, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_netdev_dbg
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _IBMVNIC_CRQ_INIT_CMD@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IBMVNIC_CRQ_INIT_CMD@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_2:
	bl	_mb
Lloh5:
	adrp	x8, _H_SEND_CRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_SEND_CRQ@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w0, [x22]
	bl	_cpu_to_be64
	mov	x24, x0
	ldr	w0, [x22, #4]
	bl	_cpu_to_be64
	mov	x3, x0
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	bl	_plpar_hcall_norets
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _H_CLOSED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H_CLOSED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	mov	w0, #0
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _VNIC_RESET_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VNIC_RESET_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ibmvnic_reset
LBB0_6:
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending CRQ: %016lx %016lx\n"

	.comm	_IBMVNIC_CRQ_INIT_CMD,8,3       ; @IBMVNIC_CRQ_INIT_CMD
l_.str.1:                               ; @.str.1
	.asciz	"Invalid request detected while CRQ is inactive, possible device state change during reset\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_H_SEND_CRQ,4,2                 ; @H_SEND_CRQ
	.comm	_H_CLOSED,4,2                   ; @H_CLOSED
l_.str.2:                               ; @.str.2
	.asciz	"CRQ Queue closed\n"

	.comm	_VNIC_RESET_FATAL,4,2           ; @VNIC_RESET_FATAL
l_.str.3:                               ; @.str.3
	.asciz	"Send error (rc=%d)\n"

	.no_dead_strip	_ibmvnic_send_crq
.subsections_via_symbols
