	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pfkey_send_new_mapping
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pfkey_send_new_mapping:                ## @pfkey_send_new_mapping
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	_IPPROTO_ESP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_SADB_SATYPE_ESP@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	(%r13), %edi
	callq	_pfkey_sockaddr_size
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	testq	%r15, %r15
	je	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	32(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(%rbx,%rbx), %edi
	addl	$256, %edi                      ## imm = 0x100
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leal	(%rbx,%rbx), %r12d
	addl	$240, %r12d
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$56, %esi
	callq	_skb_put
	movq	%rax, %r14
	movq	_PF_KEY_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_SADB_X_NAT_T_NEW_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	%r15, 40(%r14)
	sarl	$2, %r12d
	movl	%r12d, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	xorl	%eax, %eax
	callq	_get_acqseq
	movl	%eax, 24(%r13)
	movl	%eax, 16(%r14)
	movq	$0, 8(%r14)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_skb_put
	movl	$14, (%rax)
	movq	_SADB_EXT_SA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 52(%rax)
	movl	16(%r13), %ecx
	movl	%ecx, 48(%rax)
	movslq	%ebx, %r14
	addq	$40, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 8(%rax)
	movq	$0, 40(%rax)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movq	%r14, %r15
	shrq	$2, %r15
	movl	%r15d, (%rax)
	movq	_SADB_EXT_ADDRESS_SRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	4(%r13), %rdi
	leaq	40(%rbx), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	(%r13), %ecx
	xorl	%esi, %esi
	callq	_pfkey_sockaddr_fill
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_BUG
LBB0_12:
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_skb_put
	movl	$6, (%rax)
	movq	_SADB_X_EXT_NAT_T_SPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	$0, 8(%rax)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_skb_put
	movq	%rax, %rbx
	movl	%r15d, (%rax)
	movq	_SADB_EXT_ADDRESS_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	40(%rbx), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	(%r13), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_pfkey_sockaddr_fill
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_BUG
LBB0_14:
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_skb_put
	movl	$6, (%rax)
	movq	_SADB_X_EXT_NAT_T_DPORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rax)
	movq	$0, 8(%rax)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BROADCAST_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r13, %rdi
	callq	_xs_net
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfkey_broadcast                ## TAILCALL
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_ESP,8,3                ## @IPPROTO_ESP
	.comm	_SADB_SATYPE_ESP,8,3            ## @SADB_SATYPE_ESP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PF_KEY_V2,4,2                  ## @PF_KEY_V2
	.comm	_SADB_X_NAT_T_NEW_MAPPING,4,2   ## @SADB_X_NAT_T_NEW_MAPPING
	.comm	_SADB_EXT_SA,4,2                ## @SADB_EXT_SA
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ## @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_X_EXT_NAT_T_SPORT,4,2     ## @SADB_X_EXT_NAT_T_SPORT
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ## @SADB_EXT_ADDRESS_DST
	.comm	_SADB_X_EXT_NAT_T_DPORT,4,2     ## @SADB_X_EXT_NAT_T_DPORT
	.comm	_BROADCAST_REGISTERED,4,2       ## @BROADCAST_REGISTERED
	.no_dead_strip	_pfkey_send_new_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfkey_send_new_mapping
_pfkey_send_new_mapping:                ; @pfkey_send_new_mapping
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _IPPROTO_ESP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IPPROTO_ESP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SADB_SATYPE_ESP@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SADB_SATYPE_ESP@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x27, x10, xzr, eq
	ldr	w0, [x0]
	bl	_pfkey_sockaddr_size
	cbz	w0, LBB0_9
; %bb.1:
	cbz	x27, LBB0_9
; %bb.2:
	ldr	x26, [x19, #32]
	cbz	x26, LBB0_9
; %bb.3:
	mov	x23, x0
	lsl	w24, w0, #1
	add	w0, w24, #256
Lloh6:
	adrp	x25, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_alloc_skb
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	add	w28, w24, #240
	mov	w1, #56
	bl	_skb_put
	mov	x24, x0
Lloh8:
	adrp	x8, _PF_KEY_V2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PF_KEY_V2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SADB_X_NAT_T_NEW_MAPPING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SADB_X_NAT_T_NEW_MAPPING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #48]
	stp	xzr, x27, [x0, #32]
	asr	w8, w28, #2
	str	w8, [x0]
	str	xzr, [x0, #24]
	bl	_get_acqseq
	str	w0, [x19, #24]
	str	w0, [x24, #16]
	str	xzr, [x24, #8]
	mov	x0, x21
	mov	w1, #56
	bl	_skb_put
	mov	w8, #14
	str	w8, [x0]
Lloh14:
	adrp	x8, _SADB_EXT_SA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SADB_EXT_SA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	stp	w9, w8, [x0, #48]
	sxtw	x8, w23
	add	x23, x8, #40
	str	xzr, [x0, #40]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #24]
	stur	q0, [x0, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_skb_put
	mov	x24, x0
	lsr	x27, x23, #2
	str	w27, [x0]
Lloh17:
	adrp	x8, _SADB_EXT_ADDRESS_SRC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_SRC@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	add	x0, x19, #4
	add	x2, x24, #40
	stp	xzr, xzr, [x24, #16]
	ldr	w3, [x19]
	mov	w1, #0
	bl	_pfkey_sockaddr_fill
	str	x0, [x24, #8]
	cbnz	x0, LBB0_6
; %bb.5:
	bl	_BUG
LBB0_6:
	mov	x0, x21
	mov	w1, #24
	bl	_skb_put
	mov	w24, #6
Lloh20:
	adrp	x8, _SADB_X_EXT_NAT_T_SPORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SADB_X_EXT_NAT_T_SPORT@GOTPAGEOFF]
	str	w24, [x0]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x26]
	stp	w9, w8, [x0, #16]
	str	xzr, [x0, #8]
	mov	x0, x21
	mov	x1, x23
	bl	_skb_put
	mov	x23, x0
	str	w27, [x0]
Lloh23:
	adrp	x8, _SADB_EXT_ADDRESS_DST@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SADB_EXT_ADDRESS_DST@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x0, #32]
	add	x2, x0, #40
	stp	xzr, xzr, [x0, #16]
	ldr	w3, [x19]
	mov	x0, x22
	mov	w1, #0
	bl	_pfkey_sockaddr_fill
	str	x0, [x23, #8]
	cbnz	x0, LBB0_8
; %bb.7:
	bl	_BUG
LBB0_8:
	mov	x0, x21
	mov	w1, #24
	bl	_skb_put
	str	w24, [x0]
Lloh26:
	adrp	x8, _SADB_X_EXT_NAT_T_DPORT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SADB_X_EXT_NAT_T_DPORT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stp	w20, w8, [x0, #16]
	str	xzr, [x0, #8]
	ldr	w20, [x25]
Lloh29:
	adrp	x8, _BROADCAST_REGISTERED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BROADCAST_REGISTERED@GOTPAGEOFF]
Lloh31:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_xs_net
	mov	x4, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, #0
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pfkey_broadcast
LBB0_9:
Lloh32:
	adrp	x8, _EINVAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_ESP,8,3                ; @IPPROTO_ESP
	.comm	_SADB_SATYPE_ESP,8,3            ; @SADB_SATYPE_ESP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PF_KEY_V2,4,2                  ; @PF_KEY_V2
	.comm	_SADB_X_NAT_T_NEW_MAPPING,4,2   ; @SADB_X_NAT_T_NEW_MAPPING
	.comm	_SADB_EXT_SA,4,2                ; @SADB_EXT_SA
	.comm	_SADB_EXT_ADDRESS_SRC,4,2       ; @SADB_EXT_ADDRESS_SRC
	.comm	_SADB_X_EXT_NAT_T_SPORT,4,2     ; @SADB_X_EXT_NAT_T_SPORT
	.comm	_SADB_EXT_ADDRESS_DST,4,2       ; @SADB_EXT_ADDRESS_DST
	.comm	_SADB_X_EXT_NAT_T_DPORT,4,2     ; @SADB_X_EXT_NAT_T_DPORT
	.comm	_BROADCAST_REGISTERED,4,2       ; @BROADCAST_REGISTERED
	.no_dead_strip	_pfkey_send_new_mapping
.subsections_via_symbols
