	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipsec_set_reqid
_ipsec_set_reqid:                       ## @ipsec_set_reqid
	.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
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ipsec_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpq	%rbx, (%r15)
	je	LBB0_10
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	callq	_ipsec_check_reqid
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	cmpq	$0, (%r15)
	je	LBB0_7
## %bb.6:
	movq	_idhash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_CK_LIST_REMOVE
	xorl	%eax, %eax
	callq	_IPSEC_WAIT
LBB0_7:
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_ipsec_idhash
	movq	_idhash@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_CK_LIST_INSERT_HEAD
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_ipsec_init_reqid
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	8(%r15), %edx
	testl	%edx, %edx
	je	LBB0_10
## %bb.11:
	movq	_IPSEC_DIR_OUTBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ipsec_getsaidx
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movslq	8(%r15), %rsi
	callq	_KASSERT
	leaq	4(%rbx), %rsi
	movq	(%r15), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipsec_set_tunnel               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ipsec_ioctl_sx,4,2             ## @ipsec_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_idhash,4,2                     ## @idhash
	.comm	_IPSEC_DIR_OUTBOUND,4,2         ## @IPSEC_DIR_OUTBOUND
	.no_dead_strip	_ipsec_set_reqid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipsec_set_reqid
_ipsec_set_reqid:                       ; @ipsec_set_reqid
	.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	x19, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _ipsec_ioctl_sx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _ipsec_ioctl_sx@GOTPAGEOFF]
	bl	_sx_assert
	cbz	x20, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	cbz	x20, LBB0_8
; %bb.4:
	mov	x0, x20
	bl	_ipsec_check_reqid
	cbnz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x19]
Lloh5:
	adrp	x21, _idhash@GOTPAGE
Lloh6:
	ldr	x21, [x21, _idhash@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_CK_LIST_REMOVE
	bl	_IPSEC_WAIT
LBB0_7:
	str	x20, [x19]
	mov	x0, x20
	bl	_ipsec_idhash
	ldr	w2, [x21]
	mov	x1, x19
	bl	_CK_LIST_INSERT_HEAD
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_ipsec_init_reqid
	cbz	x0, LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _EEXIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
	ldr	w2, [x19, #8]
	cbz	w2, LBB0_2
; %bb.12:
Lloh10:
	adrp	x8, _IPSEC_DIR_OUTBOUND@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IPSEC_DIR_OUTBOUND@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipsec_getsaidx
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	ldrsw	x1, [x19, #8]
	bl	_KASSERT
	add	x1, x20, #4
	ldr	x3, [x19]
	mov	x0, x19
	mov	x2, x20
	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	_ipsec_set_tunnel
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ipsec_ioctl_sx,4,2             ; @ipsec_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_idhash,4,2                     ; @idhash
	.comm	_IPSEC_DIR_OUTBOUND,4,2         ; @IPSEC_DIR_OUTBOUND
	.no_dead_strip	_ipsec_set_reqid
.subsections_via_symbols
