	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipsec_init_reqid
_ipsec_init_reqid:                      ## @ipsec_init_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	%rdi, %r14
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ipsec_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.1:
	movq	_IPSEC_REQID_TRYCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$2, %ebx
	jl	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_key_newreqid
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ipsec_check_reqid
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	cmpl	$2, %ebx
	jge	LBB0_5
LBB0_3:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_6:
	movl	%r15d, (%r14)
	movl	%r15d, %edi
	callq	_ipsec_idhash
	movq	_idhash@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_CK_LIST_INSERT_HEAD
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipsec_ioctl_sx,4,2             ## @ipsec_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_IPSEC_REQID_TRYCNT,4,2         ## @IPSEC_REQID_TRYCNT
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_idhash,4,2                     ## @idhash
	.no_dead_strip	_ipsec_init_reqid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipsec_init_reqid
_ipsec_init_reqid:                      ; @ipsec_init_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	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
	ldr	w8, [x19]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _IPSEC_REQID_TRYCNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPSEC_REQID_TRYCNT@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	cmp	w21, #2
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_key_newreqid
	mov	x20, x0
	bl	_ipsec_check_reqid
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w21, w21, #1
	cmp	w21, #2
	b.ge	LBB0_3
LBB0_5:
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_6:
	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_7:
	str	w20, [x19]
	mov	x0, x20
	bl	_ipsec_idhash
Lloh11:
	adrp	x8, _idhash@GOTPAGE
Lloh12:
	ldr	x8, [x8, _idhash@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_CK_LIST_INSERT_HEAD
	b	LBB0_1
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ipsec_ioctl_sx,4,2             ; @ipsec_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_IPSEC_REQID_TRYCNT,4,2         ; @IPSEC_REQID_TRYCNT
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_idhash,4,2                     ; @idhash
	.no_dead_strip	_ipsec_init_reqid
.subsections_via_symbols
