	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_ipsec_pcbctl               ## -- Begin function udp_ipsec_pcbctl
	.p2align	4, 0x90
_udp_ipsec_pcbctl:                      ## @udp_ipsec_pcbctl
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_INP_WLOCK_ASSERT
	movq	(%rbx), %rax
	movq	_UDP_ENCAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_intoudpcb
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_SOPT_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_UF_ESPINUDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r14), %eax
	setne	%cl
	shll	$7, %ecx
	movl	%ecx, -28(%rbp)
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_sooptcopyout
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$4, %ecx
	callq	_sooptcopyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	callq	_INP_WLOCK
	movl	-28(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.6:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_UF_ESPINUDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	movq	_UF_ESPINUDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_INP_WUNLOCK
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UDP_ENCAP,8,3                  ## @UDP_ENCAP
	.comm	_ENOPROTOOPT,4,2                ## @ENOPROTOOPT
	.comm	_SOPT_GET,8,3                   ## @SOPT_GET
	.comm	_UF_ESPINUDP,4,2                ## @UF_ESPINUDP
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udp_ipsec_pcbctl               ; -- Begin function udp_ipsec_pcbctl
	.p2align	2
_udp_ipsec_pcbctl:                      ; @udp_ipsec_pcbctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x19, x0
	bl	_INP_WLOCK_ASSERT
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _UDP_ENCAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UDP_ENCAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_intoudpcb
	mov	x20, x0
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _SOPT_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOPT_GET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _UF_ESPINUDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UF_ESPINUDP@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	lsl	w8, w8, #7
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_INP_WUNLOCK
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	bl	_sooptcopyout
	mov	x21, x0
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_INP_WUNLOCK
Lloh9:
	adrp	x8, _ENOPROTOOPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOPROTOOPT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_4:
	mov	x0, x19
	bl	_INP_WUNLOCK
	add	x1, sp, #12
	mov	x0, x21
	mov	w2, #4
	mov	w3, #4
	bl	_sooptcopyin
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.5:
	mov	x0, x19
	bl	_INP_WLOCK
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.6:
	cbnz	w8, LBB0_9
; %bb.7:
	mov	w21, #0
Lloh12:
	adrp	x8, _UF_ESPINUDP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UF_ESPINUDP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	b	LBB0_10
LBB0_8:
	mov	w21, #0
Lloh15:
	adrp	x8, _UF_ESPINUDP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UF_ESPINUDP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_10
LBB0_9:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w21, [x8]
LBB0_10:
	mov	x0, x19
	bl	_INP_WUNLOCK
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UDP_ENCAP,8,3                  ; @UDP_ENCAP
	.comm	_ENOPROTOOPT,4,2                ; @ENOPROTOOPT
	.comm	_SOPT_GET,8,3                   ; @SOPT_GET
	.comm	_UF_ESPINUDP,4,2                ; @UF_ESPINUDP
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
