	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_tx_desc
_get_tx_desc:                           ## @get_tx_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_g_atm_priv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%edi, %esi
	shlq	$4, %rsi
	movq	(%rcx,%rsi), %rdx
	movq	8(%rcx,%rsi), %rdi
	movl	$-1, %eax
	cmpq	$0, (%rdi,%rdx,8)
	je	LBB0_1
## %bb.2:
	popq	%rbp
	retq
LBB0_1:
	addq	%rsi, %rcx
	movq	%rdx, %rax
	incq	%rax
	movq	_dma_tx_descriptor_length@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	xorl	%edi, %edi
	cmpq	%rsi, %rax
	cmovneq	%rax, %rdi
	movq	%rdi, (%rcx)
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_atm_priv_data,8,3            ## @g_atm_priv_data
	.comm	_dma_tx_descriptor_length,4,2   ## @dma_tx_descriptor_length
	.no_dead_strip	_get_tx_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_tx_desc
_get_tx_desc:                           ; @get_tx_desc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _g_atm_priv_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_atm_priv_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w0, uxtw #4
	ldp	x0, x9, [x8]
	ldr	x9, [x9, x0, lsl #3]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	add	x9, x0, #1
Lloh3:
	adrp	x10, _dma_tx_descriptor_length@GOTPAGE
Lloh4:
	ldr	x10, [x10, _dma_tx_descriptor_length@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	cmp	x9, x10
	csinc	x9, xzr, x0, eq
	str	x9, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_g_atm_priv_data,8,3            ; @g_atm_priv_data
	.comm	_dma_tx_descriptor_length,4,2   ; @dma_tx_descriptor_length
	.no_dead_strip	_get_tx_desc
.subsections_via_symbols
