	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf_handle_response
_adf_handle_response:                   ## @adf_handle_response
	.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	(%rdi), %rbx
	movq	24(%rdi), %rax
	movq	(%rbx,%rax), %rcx
	movq	_ADF_RING_EMPTY_SIG@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	addq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	*48(%r14)
	movl	40(%r14), %edi
	callq	_atomic_dec
	movq	(%r15), %rax
	movq	%rax, (%rbx)
	movq	(%r14), %rbx
	movl	36(%r14), %edi
	callq	_ADF_MSG_SIZE_TO_BYTES
	addq	%rax, %rbx
	movl	32(%r14), %edi
	callq	_ADF_RING_SIZE_MODULO
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_adf_modulo
	movq	%rax, (%r14)
	movq	24(%r14), %rbx
	movq	(%rbx,%rax), %rcx
	addq	%rax, %rbx
	cmpq	(%r15), %rcx
	jne	LBB0_2
## %bb.3:
	movq	16(%r14), %rcx
	movl	(%rcx), %esi
	movl	4(%rcx), %edi
	movl	8(%r14), %edx
	movq	%rax, %rcx
	callq	_WRITE_CSR_RING_HEAD
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADF_RING_EMPTY_SIG,8,3         ## @ADF_RING_EMPTY_SIG
	.no_dead_strip	_adf_handle_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf_handle_response
_adf_handle_response:                   ; @adf_handle_response
	.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]
	ldr	x9, [x0]
	add	x20, x9, x8
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _ADF_RING_EMPTY_SIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ADF_RING_EMPTY_SIG@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	mov	x0, x20
	blr	x8
	ldr	w0, [x19, #40]
	bl	_atomic_dec
	ldr	x8, [x21]
	str	x8, [x20]
	ldr	x20, [x19]
	ldr	w0, [x19, #36]
	bl	_ADF_MSG_SIZE_TO_BYTES
	add	x20, x0, x20
	ldr	w0, [x19, #32]
	bl	_ADF_RING_SIZE_MODULO
	mov	x1, x0
	mov	x0, x20
	bl	_adf_modulo
	str	x0, [x19]
	ldr	x8, [x19, #24]
	add	x20, x8, x0
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.3:
	mov	x3, x0
	ldr	x8, [x19, #16]
	ldp	w1, w0, [x8]
	ldr	w2, [x19, #8]
	bl	_WRITE_CSR_RING_HEAD
LBB0_4:
	mov	w0, #0
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADF_RING_EMPTY_SIG,8,3         ; @ADF_RING_EMPTY_SIG
	.no_dead_strip	_adf_handle_response
.subsections_via_symbols
