	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp_get_nsegs
_xlp_get_nsegs:                         ## @xlp_get_nsegs
	.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, %r14
	movl	(%rdi), %eax
	movq	_CRYPTO_F_IMBUF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %edi
	callq	_NLM_CRYPTO_NUM_SEGS_REQD
	addl	%eax, (%r14)
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	_CRYPTO_F_IOV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	movq	8(%rdi), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_9
## %bb.6:
	movq	8(%rax), %rbx
	incl	%r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_NLM_CRYPTO_NUM_SEGS_REQD
	addl	%eax, (%r14)
	addq	$4, %rbx
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_7
	jmp	LBB0_9
LBB0_8:
	movl	4(%rdi), %edi
	callq	_NLM_CRYPTO_NUM_SEGS_REQD
	movl	%eax, (%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_F_IMBUF,4,2             ## @CRYPTO_F_IMBUF
	.comm	_CRYPTO_F_IOV,4,2               ## @CRYPTO_F_IOV
	.no_dead_strip	_xlp_get_nsegs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlp_get_nsegs
_xlp_get_nsegs:                         ; @xlp_get_nsegs
	.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, x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _CRYPTO_F_IMBUF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CRYPTO_F_IMBUF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x20, [x0, #8]
	cbz	x20, LBB0_8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	bl	_NLM_CRYPTO_NUM_SEGS_REQD
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	ldr	x20, [x20]
	cbnz	x20, LBB0_2
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x9, _CRYPTO_F_IOV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CRYPTO_F_IOV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	x9, [x0, #8]
	ldr	w8, [x9]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x20, [x9, #8]
	add	w21, w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20], #4
	bl	_NLM_CRYPTO_NUM_SEGS_REQD
	ldr	w8, [x19]
	add	w8, w8, w0
	str	w8, [x19]
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_6
	b	LBB0_8
LBB0_7:
	ldr	w0, [x0, #4]
	bl	_NLM_CRYPTO_NUM_SEGS_REQD
	str	w0, [x19]
LBB0_8:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_F_IMBUF,4,2             ; @CRYPTO_F_IMBUF
	.comm	_CRYPTO_F_IOV,4,2               ; @CRYPTO_F_IOV
	.no_dead_strip	_xlp_get_nsegs
.subsections_via_symbols
