	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function key_promisc
_key_promisc:                           ## @key_promisc
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_IPSEC_ASSERT
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_IPSEC_ASSERT
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	leaq	L_.str.2(%rip), %rsi
	callq	_IPSEC_ASSERT
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setne	%dil
	leaq	L_.str.3(%rip), %rsi
	callq	_IPSEC_ASSERT
	movq	(%rbx), %rax
	movl	16(%rax), %edi
	callq	_PFKEY_UNUNIT64
	cmpl	$3, %eax
	ja	LBB0_1
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_key_senderror                  ## TAILCALL
LBB0_1:
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.2:
	movq	%r15, %rdi
	callq	_sotorawcb
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%rbx), %rcx
	movq	$0, 8(%rcx)
	movl	(%rcx), %edx
	cmpl	$1, %edx
	ja	LBB0_7
## %bb.4:
	movl	%edx, (%rax)
	movq	$0, 8(%rcx)
	jmp	LBB0_5
LBB0_6:
	movl	$4, %edi
	callq	_PFKEY_ALIGN8
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_m_adj
LBB0_5:
	movq	_KEY_SENDUP_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_key_sendup_mbuf                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"null socket"

L_.str.1:                               ## @.str.1
	.asciz	"null mbuf"

L_.str.2:                               ## @.str.2
	.asciz	"null msghdr"

L_.str.3:                               ## @.str.3
	.asciz	"null msg"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_KEY_SENDUP_ALL,4,2             ## @KEY_SENDUP_ALL
	.no_dead_strip	_key_promisc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function key_promisc
_key_promisc:                           ; @key_promisc
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IPSEC_ASSERT
	cmp	x19, #0
	cset	w0, ne
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_IPSEC_ASSERT
	cmp	x21, #0
	cset	w0, ne
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_IPSEC_ASSERT
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_IPSEC_ASSERT
	ldr	x8, [x21]
	ldr	w0, [x8, #16]
	bl	_PFKEY_UNUNIT64
	cmp	w0, #3
	b.hi	LBB0_2
LBB0_1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_key_senderror
LBB0_2:
	cmp	w0, #4
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_sotorawcb
	cbz	x0, LBB0_1
; %bb.4:
	ldr	x8, [x21]
	str	xzr, [x8, #8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.hi	LBB0_1
; %bb.5:
	str	w9, [x0]
	str	xzr, [x8, #8]
	b	LBB0_7
LBB0_6:
	mov	w0, #4
	bl	_PFKEY_ALIGN8
	mov	x1, x0
	mov	x0, x19
	bl	_m_adj
LBB0_7:
Lloh11:
	adrp	x8, _KEY_SENDUP_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_SENDUP_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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
	b	_key_sendup_mbuf
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"null socket"

l_.str.1:                               ; @.str.1
	.asciz	"null mbuf"

l_.str.2:                               ; @.str.2
	.asciz	"null msghdr"

l_.str.3:                               ; @.str.3
	.asciz	"null msg"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_KEY_SENDUP_ALL,4,2             ; @KEY_SENDUP_ALL
	.no_dead_strip	_key_promisc
.subsections_via_symbols
