	.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_ptm_priv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$1, (%rsi)
	movq	_CPU_TO_WAN_TX_DESC_BASE@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	movq	(%rdx), %rcx
	movl	$-1, %eax
	cmpq	$0, (%rdi,%rcx,8)
	je	LBB0_1
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %rax
	incq	%rax
	movq	_CPU_TO_WAN_TX_DESC_NUM@GOTPCREL(%rip), %rdi
	movslq	(%rdi), %r9
	xorl	%edi, %edi
	cmpq	%r9, %rax
	cmovneq	%rax, %rdi
	movq	%rdi, (%rdx)
	movq	(%r8), %rax
	cmpq	$0, (%rax,%rdi,8)
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rsi)
LBB0_3:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_ptm_priv_data,8,3            ## @g_ptm_priv_data
	.comm	_CPU_TO_WAN_TX_DESC_BASE,8,3    ## @CPU_TO_WAN_TX_DESC_BASE
	.comm	_CPU_TO_WAN_TX_DESC_NUM,4,2     ## @CPU_TO_WAN_TX_DESC_NUM
	.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_ptm_priv_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_ptm_priv_data@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x1]
Lloh3:
	adrp	x9, _CPU_TO_WAN_TX_DESC_BASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPU_TO_WAN_TX_DESC_BASE@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x0, [x8]
	ldr	x10, [x10, x0, lsl #3]
	cbz	x10, LBB0_2
; %bb.1:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	add	x10, x0, #1
Lloh5:
	adrp	x11, _CPU_TO_WAN_TX_DESC_NUM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CPU_TO_WAN_TX_DESC_NUM@GOTPAGEOFF]
Lloh7:
	ldrsw	x11, [x11]
	cmp	x10, x11
	csinc	x10, xzr, x0, eq
	str	x10, [x8]
	ldr	x8, [x9]
	ldr	x8, [x8, x10, lsl #3]
	cbz	x8, LBB0_4
; %bb.3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_4:
	str	wzr, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_g_ptm_priv_data,8,3            ; @g_ptm_priv_data
	.comm	_CPU_TO_WAN_TX_DESC_BASE,8,3    ; @CPU_TO_WAN_TX_DESC_BASE
	.comm	_CPU_TO_WAN_TX_DESC_NUM,4,2     ; @CPU_TO_WAN_TX_DESC_NUM
	.no_dead_strip	_get_tx_desc
.subsections_via_symbols
