	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_sk_rebuild_header        ## -- Begin function inet6_sk_rebuild_header
	.p2align	4, 0x90
_inet6_sk_rebuild_header:               ## @inet6_sk_rebuild_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_inet6_sk
	movq	%rax, %r12
	movl	20(%rax), %esi
	movq	%r15, %rdi
	callq	___sk_dst_check
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	%r15, %rdi
	callq	_inet_sk
	movq	%rax, %rbx
	leaq	-80(%rbp), %r13
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movl	20(%r15), %eax
	movl	%eax, -56(%rbp)
	leaq	16(%r12), %rsi
	movq	%r13, %rdi
	callq	_ipv6_addr_copy
	leaq	-60(%rbp), %rdi
	movq	%r12, %rsi
	addq	$12, %rsi
	callq	_ipv6_addr_copy
	movl	8(%r12), %eax
	movl	%eax, -64(%rbp)
	movl	16(%r15), %eax
	movl	%eax, -68(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -72(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -76(%rbp)
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_security_sk_classify_flow
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	leaq	-88(%rbp), %r14
	leaq	-80(%rbp), %r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ipv6_addr_copy
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_ipv6_addr_copy
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ip6_dst_lookup
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	$0, 8(%r15)
	jmp	LBB0_12
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ipv6_addr_copy
LBB0_9:
	movq	%r15, %rdi
	callq	_sock_net
	leaq	-48(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_xfrm_lookup
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___ip6_dst_store
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %ecx
	negl	%ecx
	movl	%ecx, (%r15)
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet6_sk_rebuild_header        ; -- Begin function inet6_sk_rebuild_header
	.p2align	2
_inet6_sk_rebuild_header:               ; @inet6_sk_rebuild_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	_inet6_sk
	mov	x20, x0
	ldr	w1, [x0, #20]
	mov	x0, x19
	bl	___sk_dst_check
	str	x0, [sp, #40]
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_inet_sk
	mov	x21, x0
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #28
	bl	_memset
	ldr	w8, [x19, #20]
	str	w8, [sp, #24]
	add	x1, x20, #16
	mov	x0, sp
	bl	_ipv6_addr_copy
	add	x0, x22, #20
	add	x1, x20, #12
	bl	_ipv6_addr_copy
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #16]
	stp	w9, w8, [sp, #12]
	ldr	d0, [x21]
	stur	d0, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_security_sk_classify_flow
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x21, [x8]
	cbz	x21, LBB0_5
; %bb.4:
	add	x20, sp, #32
	add	x0, sp, #32
	mov	x1, sp
	bl	_ipv6_addr_copy
	ldr	x1, [x21]
	mov	x0, sp
	bl	_ipv6_addr_copy
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	add	x1, sp, #40
	mov	x2, sp
	mov	x0, x19
	bl	_ip6_dst_lookup
	cbz	w0, LBB0_9
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	mov	x0, sp
	mov	x1, x20
	bl	_ipv6_addr_copy
LBB0_11:
	mov	x0, x19
	bl	_sock_net
	add	x1, sp, #40
	mov	x2, sp
	mov	x3, x19
	mov	w4, #0
	bl	_xfrm_lookup
	tbnz	w0, #31, LBB0_13
; %bb.12:
	ldr	x1, [sp, #40]
	mov	x0, x19
	mov	x2, #0
	mov	x3, #0
	bl	___ip6_dst_store
	b	LBB0_1
LBB0_13:
	neg	w8, w0
	str	w8, [x19]
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
