	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_tx
_alloc_tx:                              ## @alloc_tx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movq	_NR_CHAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_5
## %bb.1:
	xorl	%edx, %edx
	testl	%esi, %esi
	sete	%dl
	leaq	(,%rdx,4), %rax
	addq	(%rdi), %rax
	subq	%rdx, %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rax
	decq	%rcx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_CHAN,4,2                    ## @NR_CHAN
	.no_dead_strip	_alloc_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_tx
_alloc_tx:                              ; @alloc_tx
	.cfi_startproc
; %bb.0:
	cmp	w1, #0
	cset	w9, eq
Lloh0:
	adrp	x8, _NR_CHAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NR_CHAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w9
	b.le	LBB0_4
; %bb.1:
	cmp	w1, #0
	cset	w9, eq
	ldr	x10, [x0]
	add	x0, x10, w9, uxtw #2
	sub	x8, x8, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x0]
	cbz	w9, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	mov	x0, #0
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_CHAN,4,2                    ; @NR_CHAN
	.no_dead_strip	_alloc_tx
.subsections_via_symbols
