	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atm_alloc_charge               ## -- Begin function atm_alloc_charge
	.p2align	4, 0x90
_atm_alloc_charge:                      ## @atm_alloc_charge
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_sk_atm
	movq	%rax, %r15
	movl	%r12d, %edi
	callq	_atm_guess_pdu2truesize
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_atm_force_charge
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_atomic_read
	cmpq	(%r15), %rax
	jg	LBB0_3
## %bb.1:
	movl	%r12d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r15
	movq	(%rax), %rdi
	movslq	%r14d, %rax
	subq	%rax, %rdi
	movq	%r13, %rsi
	callq	_atomic_add
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_atm_return
	movq	(%rbx), %rdi
	callq	_atomic_inc
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atm_alloc_charge               ; -- Begin function atm_alloc_charge
	.p2align	2
_atm_alloc_charge:                      ; @atm_alloc_charge
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_sk_atm
	mov	x24, x0
	mov	x0, x22
	bl	_atm_guess_pdu2truesize
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_atm_force_charge
	add	x23, x24, #8
	mov	x0, x23
	bl	_atomic_read
	ldr	x8, [x24]
	cmp	x0, x8
	b.gt	LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	bl	_alloc_skb
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0]
	sub	x0, x8, w20, sxtw
	mov	x1, x23
	bl	_atomic_add
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_atm_return
	ldr	x0, [x19]
	bl	_atomic_inc
	mov	x21, #0
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
