	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_mbx_delete_ah_tbl
_ocrdma_mbx_delete_ah_tbl:              ## @ocrdma_mbx_delete_ah_tbl
	.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
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	40(%rdi), %r14
	movq	_OCRDMA_CMD_DELETE_AH_TBL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_ocrdma_init_emb_mqe
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movl	32(%rbx), %eax
	movl	%eax, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ocrdma_mbx_cmd
	movl	28(%rbx), %esi
	movq	16(%rbx), %rdx
	movl	24(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	$0, 16(%rbx)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	callq	_dma_free_coherent
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_CMD_DELETE_AH_TBL,4,2   ## @OCRDMA_CMD_DELETE_AH_TBL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_ocrdma_mbx_delete_ah_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_mbx_delete_ah_tbl
_ocrdma_mbx_delete_ah_tbl:              ; @ocrdma_mbx_delete_ah_tbl
	.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, #16]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x8, _OCRDMA_CMD_DELETE_AH_TBL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CMD_DELETE_AH_TBL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_ocrdma_init_emb_mqe
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	w8, [x19, #32]
	str	w8, [x0]
	mov	x0, x19
	mov	x1, x21
	bl	_ocrdma_mbx_cmd
	ldr	x2, [x19, #16]
	ldp	w3, w1, [x19, #24]
	mov	x0, x20
	bl	_dma_free_coherent
	str	xzr, [x19, #16]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_dma_free_coherent
	mov	x0, x21
	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
	b	_kfree
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CMD_DELETE_AH_TBL,4,2   ; @OCRDMA_CMD_DELETE_AH_TBL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_ocrdma_mbx_delete_ah_tbl
.subsections_via_symbols
