	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_netinet_ipsec_pfkey       ## -- Begin function priv_netinet_ipsec_pfkey
	.p2align	4, 0x90
_priv_netinet_ipsec_pfkey:              ## @priv_netinet_ipsec_pfkey
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r15d
	movq	_PF_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PF_KEY_V2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %r14d
	movl	%eax, %r12d
	sarl	$31, %r12d
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_expect
LBB0_6:
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movl	$-1, %edx
	callq	_expect
LBB0_9:
	orl	%r15d, %ebx
	je	LBB0_10
## %bb.11:
	testl	%r14d, %r14d
	js	LBB0_12
LBB0_13:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_close                          ## TAILCALL
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	$-1, %edx
	callq	_expect
	testl	%r14d, %r14d
	jns	LBB0_13
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_KEY,4,2                     ## @PF_KEY
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_PF_KEY_V2,4,2                  ## @PF_KEY_V2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_netinet_ipsec_pfkey(asroot, injail)"

	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
L_.str.1:                               ## @.str.1
	.asciz	"priv_netinet_ipsec_pfkey(asroot, !injail)"

L_.str.2:                               ## @.str.2
	.asciz	"priv_netinet_ipsec_pfkey(!asroot, injail)"

L_.str.3:                               ## @.str.3
	.asciz	"priv_netinet_ipsec_pfkey(!asroot, !injail)"

	.comm	_EPERM,4,2                      ## @EPERM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_netinet_ipsec_pfkey       ; -- Begin function priv_netinet_ipsec_pfkey
	.p2align	2
_priv_netinet_ipsec_pfkey:              ; @priv_netinet_ipsec_pfkey
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PF_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PF_KEY_V2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_KEY_V2@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_socket
	mov	x19, x0
	asr	w22, w0, #31
	cbz	w21, LBB0_3
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	w2, #-1
	bl	_expect
LBB0_3:
	cbz	w21, LBB0_6
; %bb.4:
	cbnz	w20, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	w2, #0
	mov	w3, #0
	bl	_expect
LBB0_6:
	cbnz	w21, LBB0_9
; %bb.7:
	cbz	w20, LBB0_9
; %bb.8:
Lloh16:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	w2, #-1
	bl	_expect
LBB0_9:
	orr	w8, w20, w21
	cbz	w8, LBB0_12
; %bb.10:
	tbnz	w19, #31, LBB0_13
LBB0_11:
	mov	x0, 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	_close
LBB0_12:
Lloh21:
	adrp	x8, _EPERM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	w2, #-1
	bl	_expect
	tbz	w19, #31, LBB0_11
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_KEY,4,2                     ; @PF_KEY
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_PF_KEY_V2,4,2                  ; @PF_KEY_V2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_netinet_ipsec_pfkey(asroot, injail)"

	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
l_.str.1:                               ; @.str.1
	.asciz	"priv_netinet_ipsec_pfkey(asroot, !injail)"

l_.str.2:                               ; @.str.2
	.asciz	"priv_netinet_ipsec_pfkey(!asroot, injail)"

l_.str.3:                               ; @.str.3
	.asciz	"priv_netinet_ipsec_pfkey(!asroot, !injail)"

	.comm	_EPERM,4,2                      ; @EPERM
.subsections_via_symbols
