	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_destroy_eq                ## -- Begin function ehca_destroy_eq
	.p2align	4, 0x90
_ehca_destroy_eq:                       ## @ehca_destroy_eq
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	movq	%r14, %rsi
	callq	_ibmebus_free_irq
	movq	_shca_list_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	4(%rbx), %rdi
	callq	_tasklet_kill
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_hipz_h_destroy_eq
	movq	_H_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_ipz_queue_dtor
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ehca_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shca_list_lock,4,2             ## @shca_list_lock
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't free EQ resources."

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ehca_destroy_eq                ; -- Begin function ehca_destroy_eq
	.p2align	2
_ehca_destroy_eq:                       ; @ehca_destroy_eq
	.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, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	mov	x1, x20
	bl	_ibmebus_free_irq
Lloh0:
	adrp	x21, _shca_list_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _shca_list_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	xzr, [x19, #8]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	add	x0, x19, #4
	bl	_tasklet_kill
	ldr	w0, [x20, #4]
	mov	x1, x19
	bl	_hipz_h_destroy_eq
Lloh2:
	adrp	x8, _H_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, #0
	mov	x1, x19
	bl	_ipz_queue_dtor
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_ehca_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_shca_list_lock,4,2             ; @shca_list_lock
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't free EQ resources."

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
