	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_crq_queue
_init_crq_queue:                        ## @init_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
	xorl	%ebx, %ebx
	cmpq	$0, 32(%rdi)
	jne	LBB0_20
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	_ENOMEM@GOTPCREL(%rip), %r14
	subl	(%r14), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, 32(%r15)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	8(%r12), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, %ecx
	sarl	$2, %ecx
	movl	%ecx, 24(%r15)
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dma_map_single
	movl	%eax, 40(%r15)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	movq	_H_REG_CRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movl	40(%r15), %edx
	movl	(%r13), %ecx
	xorl	%eax, %eax
	callq	_plpar_hcall_norets
	movl	%eax, %ebx
	movq	_H_RESOURCE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_ibmvnic_reset_crq
	movl	%eax, %ebx
LBB0_6:
	movq	_H_CLOSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_10
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%r14), %ebx
	jmp	LBB0_20
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_18
LBB0_8:
	movq	_ibmvnic_tasklet@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movq	%r15, %rdx
	callq	_tasklet_init
	movl	16(%r15), %edi
	movl	4(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_dbg
	movl	56(%r15), %edi
	movq	8(%r15), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movl	4(%r12), %edi
	movq	_ibmvnic_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	56(%r15), %ecx
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	4(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_12:
	movq	%r12, %rdi
	callq	_vio_enable_interrupts
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movq	%r15, %rdi
	callq	_tasklet_kill
	movq	_H_FREE_CRQ@GOTPCREL(%rip), %rbx
	movq	_H_BUSY@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	(%r12), %esi
	xorl	%eax, %eax
	callq	_plpar_hcall_norets
	cmpl	(%r13), %eax
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %edi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	jne	LBB0_15
## %bb.17:
	xorl	%ebx, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
LBB0_18:
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	40(%r15), %esi
	movl	(%r13), %edx
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_dma_unmap_single
LBB0_19:
	movq	32(%r15), %rdi
	callq	_free_page
	movq	$0, 32(%r15)
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	$0, 48(%r15)
	addq	$44, %r15
	movq	%r15, %rdi
	callq	_spin_lock_init
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_H_REG_CRQ,4,2                  ## @H_REG_CRQ
	.comm	_H_RESOURCE,4,2                 ## @H_RESOURCE
	.comm	_H_CLOSED,4,2                   ## @H_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Partner adapter not ready\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error %d opening adapter\n"

	.comm	_ibmvnic_tasklet,8,3            ## @ibmvnic_tasklet
L_.str.2:                               ## @.str.2
	.asciz	"registering irq 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"ibmvnic-%x"

	.comm	_ibmvnic_interrupt,4,2          ## @ibmvnic_interrupt
L_.str.4:                               ## @.str.4
	.asciz	"Couldn't register irq 0x%x. rc=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Error %d enabling interrupts\n"

	.comm	_H_FREE_CRQ,4,2                 ## @H_FREE_CRQ
	.comm	_H_BUSY,4,2                     ## @H_BUSY
	.no_dead_strip	_init_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_crq_queue
_init_crq_queue:                        ; @init_crq_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	w22, #0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_21
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x20, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ENOMEM@GOTPAGEOFF]
	ldr	w22, [x20]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	str	x0, [x19, #32]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	add	x20, x21, #8
Lloh5:
	adrp	x23, _PAGE_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
	asr	w8, w2, #2
	str	w8, [x19, #24]
Lloh7:
	adrp	x24, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh8:
	ldr	x24, [x24, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x19, #40]
	mov	x0, x20
	bl	_dma_mapping_error
	cbz	x0, LBB0_5
; %bb.3:
	neg	w22, w22
	b	LBB0_20
LBB0_4:
	ldr	w8, [x20]
	neg	w22, w8
	b	LBB0_21
LBB0_5:
Lloh9:
	adrp	x8, _H_REG_CRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H_REG_CRQ@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x21]
	ldr	w8, [x19, #40]
	ldr	w9, [x23]
	stp	x8, x9, [sp]
	bl	_plpar_hcall_norets
	mov	x22, x0
Lloh12:
	adrp	x8, _H_RESOURCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _H_RESOURCE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ibmvnic_reset_crq
	mov	x22, x0
LBB0_7:
Lloh15:
	adrp	x8, _H_CLOSED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _H_CLOSED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_9
; %bb.8:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_11
LBB0_9:
	cbz	w22, LBB0_11
; %bb.10:
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	b	LBB0_19
LBB0_11:
Lloh22:
	adrp	x8, _ibmvnic_tasklet@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ibmvnic_tasklet@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	x0, x19
	mov	x2, x19
	bl	_tasklet_init
	ldr	w0, [x19, #16]
	ldr	w2, [x21, #4]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
Lloh27:
	adrp	x2, l_.str.3@PAGE
Lloh28:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x21, #4]
Lloh29:
	adrp	x8, _ibmvnic_interrupt@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ibmvnic_interrupt@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w3, [x19, #56]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w2, [x21, #4]
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x21
	bl	_vio_enable_interrupts
	cbz	w0, LBB0_22
; %bb.14:
	mov	x2, x0
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x19
	bl	_tasklet_kill
Lloh36:
	adrp	x22, _H_FREE_CRQ@GOTPAGE
Lloh37:
	ldr	x22, [x22, _H_FREE_CRQ@GOTPAGEOFF]
Lloh38:
	adrp	x25, _H_BUSY@GOTPAGE
Lloh39:
	ldr	x25, [x25, _H_BUSY@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	w1, [x21]
	bl	_plpar_hcall_norets
	ldr	w8, [x25]
	cmp	w0, w8
	b.eq	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_H_IS_LONG_BUSY
	cbnz	x0, LBB0_16
; %bb.18:
	mov	w22, #0
LBB0_19:
	ldr	w1, [x19, #40]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_unmap_single
LBB0_20:
	ldr	x0, [x19, #32]
	bl	_free_page
	str	xzr, [x19, #32]
LBB0_21:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
LBB0_22:
	str	xzr, [x19, #48]
	add	x0, x19, #44
	bl	_spin_lock_init
	mov	w22, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_H_REG_CRQ,4,2                  ; @H_REG_CRQ
	.comm	_H_RESOURCE,4,2                 ; @H_RESOURCE
	.comm	_H_CLOSED,4,2                   ; @H_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Partner adapter not ready\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error %d opening adapter\n"

	.comm	_ibmvnic_tasklet,8,3            ; @ibmvnic_tasklet
l_.str.2:                               ; @.str.2
	.asciz	"registering irq 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"ibmvnic-%x"

	.comm	_ibmvnic_interrupt,4,2          ; @ibmvnic_interrupt
l_.str.4:                               ; @.str.4
	.asciz	"Couldn't register irq 0x%x. rc=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Error %d enabling interrupts\n"

	.comm	_H_FREE_CRQ,4,2                 ; @H_FREE_CRQ
	.comm	_H_BUSY,4,2                     ; @H_BUSY
	.no_dead_strip	_init_crq_queue
.subsections_via_symbols
