	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_ring_tx_alloc               ## -- Begin function aq_ring_tx_alloc
	.p2align	4, 0x90
_aq_ring_tx_alloc:                      ## @aq_ring_tx_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, 16(%rdi)
	movl	%edx, (%rdi)
	movl	8(%rcx), %eax
	movl	%eax, 8(%rdi)
	movq	(%rcx), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	callq	_aq_ring_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_aq_ring_free
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aq_ring_tx_alloc               ; -- Begin function aq_ring_tx_alloc
	.p2align	2
_aq_ring_tx_alloc:                      ; @aq_ring_tx_alloc
	.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
	str	x1, [x0, #16]
	ldr	w8, [x3, #8]
	str	w8, [x0, #8]
	ldr	x8, [x3]
	ldr	w8, [x8]
	stp	w2, w8, [x0]
	bl	_aq_ring_alloc
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x0, #0
	bl	_aq_ring_free
	mov	x0, #0
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
