	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmnet_map_egress_handler
_rmnet_map_egress_handler:              ## @rmnet_map_egress_handler
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_RMNET_FLAGS_EGRESS_MAP_CKSUMV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	(%rsi), %eax
	setne	%bl
	leal	4(,%rbx,4), %r12d
	callq	_skb_headroom
	cmpl	%r12d, %eax
	jge	LBB0_3
## %bb.1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_pskb_expand_head
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	shll	$2, %ebx
	movq	_RMNET_FLAGS_EGRESS_MAP_CKSUMV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rmnet_map_checksum_uplink_packet
LBB0_5:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_rmnet_map_add_map_header
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_ETH_P_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r15)
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
LBB0_8:
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RMNET_FLAGS_EGRESS_MAP_CKSUMV4,4,2 ## @RMNET_FLAGS_EGRESS_MAP_CKSUMV4
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETH_P_MAP,4,2                  ## @ETH_P_MAP
	.no_dead_strip	_rmnet_map_egress_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmnet_map_egress_handler
_rmnet_map_egress_handler:              ; @rmnet_map_egress_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x24, _RMNET_FLAGS_EGRESS_MAP_CKSUMV4@GOTPAGE
Lloh1:
	ldr	x24, [x24, _RMNET_FLAGS_EGRESS_MAP_CKSUMV4@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	cset	w25, ne
	mov	w8, #8
	mov	w9, #4
	csel	w23, w9, w8, eq
	bl	_skb_headroom
	cmp	w0, w23
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_pskb_expand_head
	cbnz	x0, LBB0_6
LBB0_2:
	lsl	w23, w25, #2
	ldr	w8, [x22]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_rmnet_map_checksum_uplink_packet
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_rmnet_map_add_map_header
	cbz	x0, LBB0_6
; %bb.5:
	str	w20, [x0]
Lloh5:
	adrp	x8, _ETH_P_MAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_MAP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RMNET_FLAGS_EGRESS_MAP_CKSUMV4,4,2 ; @RMNET_FLAGS_EGRESS_MAP_CKSUMV4
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETH_P_MAP,4,2                  ; @ETH_P_MAP
	.no_dead_strip	_rmnet_map_egress_handler
.subsections_via_symbols
