	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tap_handle_frame               ## -- Begin function tap_handle_frame
	.p2align	4, 0x90
_tap_handle_frame:                      ## @tap_handle_frame
	.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
	movq	(%rdi), %r13
	movq	16(%r13), %rdi
	movq	_TAP_FEATURES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_tap_dev_get_rcu
	movq	_RX_HANDLER_PASS@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_tap_get_queue
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	%rax, %r14
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_skb_push
	movq	_IFF_VNET_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:
	orl	(%r15), %r12d
LBB0_4:
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_netif_needs_gso
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%r13, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	___skb_gso_segment
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.6:
	testq	%r12, %r12
	je	LBB0_14
## %bb.7:
	movq	%r13, %rdi
	callq	_consume_skb
	leaq	8(%r14), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rbx
	movq	8(%r12), %r12
	movq	$0, 8(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ptr_ring_produce
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	%r12, %rdi
	callq	_kfree_skb_list
	jmp	LBB0_15
LBB0_11:
	movq	(%r13), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	_NETIF_F_CSUM_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
LBB0_14:
	leaq	8(%r14), %rdi
	movq	%r13, %rsi
	callq	_ptr_ring_produce
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	*%rax
LBB0_18:
	movq	%r13, %rdi
	callq	_kfree_skb
	jmp	LBB0_19
LBB0_15:
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_sk_sleep
	movq	_EPOLLIN@GOTPCREL(%rip), %rcx
	movq	_EPOLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_EPOLLRDBAND@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_wake_up_interruptible_poll
LBB0_19:
	movq	_RX_HANDLER_CONSUMED@GOTPCREL(%rip), %rbx
LBB0_20:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r13, %rdi
	callq	_skb_checksum_help
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TAP_FEATURES,4,2               ## @TAP_FEATURES
	.comm	_RX_HANDLER_PASS,4,2            ## @RX_HANDLER_PASS
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_IFF_VNET_HDR,4,2               ## @IFF_VNET_HDR
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ## @NETIF_F_CSUM_MASK
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ## @EPOLLRDNORM
	.comm	_EPOLLRDBAND,4,2                ## @EPOLLRDBAND
	.comm	_RX_HANDLER_CONSUMED,4,2        ## @RX_HANDLER_CONSUMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tap_handle_frame               ; -- Begin function tap_handle_frame
	.p2align	2
_tap_handle_frame:                      ; @tap_handle_frame
	.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	x20, [x0]
	ldr	x0, [x20, #16]
Lloh0:
	adrp	x8, _TAP_FEATURES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TAP_FEATURES@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_tap_dev_get_rcu
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x1, x20
	bl	_tap_get_queue
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_skb_push
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _IFF_VNET_HDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_VNET_HDR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x21]
	orr	w22, w8, w22
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_netif_needs_gso
	cbz	x0, LBB0_12
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	___skb_gso_segment
	mov	x22, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.6:
	cbz	x22, LBB0_14
; %bb.7:
	mov	x0, x20
	bl	_consume_skb
	add	x20, x19, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x22
	ldr	x22, [x22, #8]
	str	xzr, [x21, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_ptr_ring_produce
	cbz	x0, LBB0_8
; %bb.10:
	mov	x0, x21
	bl	_kfree_skb
	mov	x0, x22
	bl	_kfree_skb_list
	b	LBB0_18
LBB0_11:
Lloh9:
	adrp	x8, _RX_HANDLER_PASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_HANDLER_PASS@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
Lloh14:
	adrp	x8, _NETIF_F_CSUM_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_F_CSUM_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_21
LBB0_14:
	add	x0, x19, #8
	mov	x1, x20
	bl	_ptr_ring_produce
	cbz	x0, LBB0_18
LBB0_15:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x21
	blr	x8
LBB0_17:
	mov	x0, x20
	bl	_kfree_skb
	b	LBB0_19
LBB0_18:
	add	x0, x19, #4
	bl	_sk_sleep
Lloh17:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _EPOLLRDNORM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EPOLLRDNORM@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _EPOLLRDBAND@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EPOLLRDBAND@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_wake_up_interruptible_poll
LBB0_19:
Lloh26:
	adrp	x8, _RX_HANDLER_CONSUMED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_HANDLER_CONSUMED@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	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_21:
	mov	x0, x20
	bl	_skb_checksum_help
	cbnz	x0, LBB0_15
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_TAP_FEATURES,4,2               ; @TAP_FEATURES
	.comm	_RX_HANDLER_PASS,4,2            ; @RX_HANDLER_PASS
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_IFF_VNET_HDR,4,2               ; @IFF_VNET_HDR
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_NETIF_F_CSUM_MASK,4,2          ; @NETIF_F_CSUM_MASK
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.comm	_EPOLLRDNORM,4,2                ; @EPOLLRDNORM
	.comm	_EPOLLRDBAND,4,2                ; @EPOLLRDBAND
	.comm	_RX_HANDLER_CONSUMED,4,2        ; @RX_HANDLER_CONSUMED
.subsections_via_symbols
