	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xfrm4_tunnel_check_size
_xfrm4_tunnel_check_size:               ## @xfrm4_tunnel_check_size
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IPCB
	movq	_IPSKB_XFRM_TUNNEL_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, (%rax)
	je	LBB0_1
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movl	(%rax), %r15d
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	testl	%r15d, %eax
	je	LBB0_5
## %bb.2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_dst
	movq	%rax, %rdi
	callq	_dst_mtu
	cmpl	%eax, (%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_ICMP_DEST_UNREACH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_ICMP_FRAG_NEEDED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	movl	%eax, %edi
	callq	_htonl
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_icmp_send
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IPSKB_XFRM_TUNNEL_SIZE,4,2     ## @IPSKB_XFRM_TUNNEL_SIZE
	.comm	_IP_DF,4,2                      ## @IP_DF
	.comm	_ICMP_DEST_UNREACH,4,2          ## @ICMP_DEST_UNREACH
	.comm	_ICMP_FRAG_NEEDED,4,2           ## @ICMP_FRAG_NEEDED
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_xfrm4_tunnel_check_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xfrm4_tunnel_check_size
_xfrm4_tunnel_check_size:               ; @xfrm4_tunnel_check_size
	.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
	mov	x19, x0
	bl	_IPCB
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IPSKB_XFRM_TUNNEL_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPSKB_XFRM_TUNNEL_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	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_3:
	mov	x0, x19
	bl	_ip_hdr
	ldr	w20, [x0]
Lloh3:
	adrp	x8, _IP_DF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	tst	w0, w20
	b.eq	LBB0_1
; %bb.4:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_1
; %bb.5:
	mov	x0, x19
	bl	_skb_dst
	bl	_dst_mtu
	ldr	w8, [x19]
	cmp	w8, w0
	b.le	LBB0_1
; %bb.6:
Lloh6:
	adrp	x8, _ICMP_DEST_UNREACH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICMP_DEST_UNREACH@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
Lloh9:
	adrp	x8, _ICMP_FRAG_NEEDED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICMP_FRAG_NEEDED@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	bl	_htonl
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_icmp_send
Lloh12:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IPSKB_XFRM_TUNNEL_SIZE,4,2     ; @IPSKB_XFRM_TUNNEL_SIZE
	.comm	_IP_DF,4,2                      ; @IP_DF
	.comm	_ICMP_DEST_UNREACH,4,2          ; @ICMP_DEST_UNREACH
	.comm	_ICMP_FRAG_NEEDED,4,2           ; @ICMP_FRAG_NEEDED
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_xfrm4_tunnel_check_size
.subsections_via_symbols
