	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_crq_queue
_release_crq_queue:                     ## @release_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movq	%r14, %rdi
	callq	_tasklet_kill
	movq	_H_FREE_CRQ@GOTPCREL(%rip), %r15
	movq	_H_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	callq	_plpar_hcall_norets
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rdi
	callq	_H_IS_LONG_BUSY
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	movl	32(%r14), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_dma_unmap_single
	movq	24(%r14), %rdi
	callq	_free_page
	movq	$0, 24(%r14)
	movl	$0, 16(%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Releasing CRQ\n"

	.comm	_H_FREE_CRQ,4,2                 ## @H_FREE_CRQ
	.comm	_H_BUSY,8,3                     ## @H_BUSY
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.no_dead_strip	_release_crq_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_crq_queue
_release_crq_queue:                     ; @release_crq_queue
	.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
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_free_irq
	mov	x0, x19
	bl	_tasklet_kill
Lloh2:
	adrp	x21, _H_FREE_CRQ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _H_FREE_CRQ@GOTPAGEOFF]
Lloh4:
	adrp	x22, _H_BUSY@GOTPAGE
Lloh5:
	ldr	x22, [x22, _H_BUSY@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w1, [x20, #4]
	bl	_plpar_hcall_norets
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_H_IS_LONG_BUSY
	cbnz	x0, LBB0_2
; %bb.4:
	ldr	w1, [x19, #32]
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_dma_unmap_single
	ldr	x0, [x19, #24]
	bl	_free_page
	str	xzr, [x19, #24]
	str	wzr, [x19, #16]
LBB0_5:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Releasing CRQ\n"

	.comm	_H_FREE_CRQ,4,2                 ; @H_FREE_CRQ
	.comm	_H_BUSY,8,3                     ; @H_BUSY
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.no_dead_strip	_release_crq_queue
.subsections_via_symbols
