	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucan_alloc_context
_ucan_alloc_context:                    ## @ucan_alloc_context
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	24(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	movq	16(%r14), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	$4, %rbx
	decq	%rax
	jne	LBB0_4
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movl	$1, (%rbx)
	decl	8(%r14)
	jne	LBB0_10
## %bb.9:
	movl	4(%r14), %edi
	callq	_netif_stop_queue
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ucan_alloc_context
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucan_alloc_context
_ucan_alloc_context:                    ; @ucan_alloc_context
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	x20, [x19, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	cbz	w9, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #4
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	mov	x20, #0
	b	LBB0_9
LBB0_7:
	mov	w8, #1
	str	w8, [x20]
	ldr	w8, [x19, #8]
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
	bl	_netif_stop_queue
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ucan_alloc_context
.subsections_via_symbols
