	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_sub_crq_queue
_init_sub_crq_queue:                    ## @init_sub_crq_queue
	.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, %r15
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	addq	$4, %r14
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r12), %edi
	movl	$2, %esi
	callq	___get_free_pages
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	shll	$2, %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dma_map_single
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_12:
	movq	8(%rbx), %rdi
	movl	$2, %esi
	callq	_free_pages
	jmp	LBB0_13
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_13:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	movl	(%r12), %edx
	shll	$2, %edx
	leaq	28(%rbx), %rcx
	leaq	24(%rbx), %r8
	callq	_h_reg_sub_crq
	movq	_H_RESOURCE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_ibmvnic_reset_crq
LBB0_7:
	movq	_H_CLOSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_9
LBB0_10:
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	movl	16(%rbx), %esi
	movl	(%r12), %edx
	shll	$2, %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
	jmp	LBB0_12
LBB0_9:
	movq	%r15, 40(%rbx)
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_spin_lock_init
	movl	(%r15), %edi
	movl	28(%rbx), %edx
	movl	20(%rbx), %r8d
	movl	24(%rbx), %ecx
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_dbg
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate crq queue messages page\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't map crq queue messages page\n"

	.comm	_H_RESOURCE,4,2                 ## @H_RESOURCE
	.comm	_H_CLOSED,4,2                   ## @H_CLOSED
L_.str.2:                               ## @.str.2
	.asciz	"Partner adapter not ready, waiting.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Error %d registering sub-crq\n"

L_.str.4:                               ## @.str.4
	.asciz	"sub-crq initialized, num %lx, hw_irq=%lx, irq=%x\n"

	.no_dead_strip	_init_sub_crq_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_sub_crq_queue
_init_sub_crq_queue:                    ; @init_sub_crq_queue
	.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	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x21, x21, #4
	ldr	w8, [x22]
Lloh2:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh3:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w0, w9, w8
	mov	w1, #2
	bl	___get_free_pages
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x1, x0
Lloh5:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w2, w8, #2
Lloh7:
	adrp	x23, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x19, #16]
	mov	x0, x21
	bl	_dma_mapping_error
	cbz	x0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_4:
	ldr	x0, [x19, #8]
	mov	w1, #2
	bl	_free_pages
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	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
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	ldr	w8, [x22]
	lsl	w2, w8, #2
	add	x3, x19, #28
	add	x4, x19, #24
	bl	_h_reg_sub_crq
                                        ; kill: def $w0 killed $w0 def $x0
Lloh13:
	adrp	x8, _H_RESOURCE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _H_RESOURCE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_ibmvnic_reset_crq
                                        ; kill: def $w0 killed $w0 def $x0
LBB0_10:
Lloh16:
	adrp	x8, _H_CLOSED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _H_CLOSED@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_12
; %bb.11:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	b	LBB0_14
LBB0_12:
	cbz	w0, LBB0_14
; %bb.13:
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	ldr	w1, [x19, #16]
	ldr	w8, [x22]
	lsl	w2, w8, #2
	ldr	w3, [x23]
	mov	x0, x21
	bl	_dma_unmap_single
	b	LBB0_4
LBB0_14:
	str	x20, [x19, #40]
	ldr	w8, [x22]
	str	w8, [x19]
	add	x0, x19, #32
	bl	_spin_lock_init
	ldr	w0, [x20]
	ldp	w3, w2, [x19, #24]
	ldr	w4, [x19, #20]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_dbg
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate crq queue messages page\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't map crq queue messages page\n"

	.comm	_H_RESOURCE,4,2                 ; @H_RESOURCE
	.comm	_H_CLOSED,4,2                   ; @H_CLOSED
l_.str.2:                               ; @.str.2
	.asciz	"Partner adapter not ready, waiting.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Error %d registering sub-crq\n"

l_.str.4:                               ; @.str.4
	.asciz	"sub-crq initialized, num %lx, hw_irq=%lx, irq=%x\n"

	.no_dead_strip	_init_sub_crq_queue
.subsections_via_symbols
