	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_packet
_send_packet:                           ## @send_packet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	24(%r15), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	leaq	24(%r15), %r12
	movq	(%r14), %rax
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	$0, 16(%r15)
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, 8(%r14)
	movq	$0, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nic_send_packet
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %rax
	testq	%rax, %rax
	cmovneq	%rax, %r12
	movq	%r14, (%r12)
	movq	%r14, 16(%r15)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	8(%r15), %rax
	movq	_NUM_TCB@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setg	%dil
	callq	_WARN_ON
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NUM_TCB,8,3                    ## @NUM_TCB
	.no_dead_strip	_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_packet
_send_packet:                           ; @send_packet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_spin_lock_irqsave
	mov	x22, x19
	ldr	x20, [x22, #24]!
	cbz	x20, LBB0_7
; %bb.3:
	ldr	x8, [x20]
	str	x8, [x22]
	cbnz	x8, LBB0_5
; %bb.4:
	str	xzr, [x19, #16]
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	stp	xzr, x21, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_nic_send_packet
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	cmp	x8, #0
	csel	x8, x22, x8, eq
	str	x20, [x8]
	str	x20, [x19, #16]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _NUM_TCB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NUM_TCB@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, gt
	bl	_WARN_ON
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NUM_TCB,8,3                    ; @NUM_TCB
	.no_dead_strip	_send_packet
.subsections_via_symbols
