	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_destroy_ah               ## -- Begin function mthca_destroy_ah
	.p2align	4, 0x90
_mthca_destroy_ah:                      ## @mthca_destroy_ah
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$130, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movl	4(%rsi), %eax
	subl	(%rdi), %eax
	addq	$8, %rdi
	movq	_MTHCA_AV_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %esi
	callq	_mthca_free
	jmp	LBB0_6
LBB0_4:
	movl	4(%rdi), %edi
	movl	4(%rsi), %edx
	movl	8(%rsi), %esi
	callq	_dma_pool_free
	jmp	LBB0_6
LBB0_5:
	movl	8(%rsi), %edi
	callq	_kfree
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_AV_SIZE,4,2              ## @MTHCA_AV_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_destroy_ah               ; -- Begin function mthca_destroy_ah
	.p2align	2
_mthca_destroy_ah:                      ; @mthca_destroy_ah
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x0], #8
	ldr	w9, [x1, #4]
	sub	w8, w9, w8
Lloh0:
	adrp	x9, _MTHCA_AV_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTHCA_AV_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w1, w8, w9
	bl	_mthca_free
	b	LBB0_6
LBB0_4:
	ldr	w0, [x0, #4]
	ldp	w2, w8, [x1, #4]
	mov	x1, x8
	bl	_dma_pool_free
	b	LBB0_6
LBB0_5:
	ldr	w0, [x1, #8]
	bl	_kfree
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_AV_SIZE,4,2              ; @MTHCA_AV_SIZE
.subsections_via_symbols
