	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsi_parse
_rsi_parse:                             ## @rsi_parse
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rsi, -48(%rbp)
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	leaq	-60(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_dup_to_netobj
	testq	%rax, %rax
	je	LBB0_2
LBB0_19:
	leaq	-104(%rbp), %rdi
	callq	_rsi_free
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	js	LBB0_19
## %bb.3:
	leaq	-64(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_dup_to_netobj
	testq	%rax, %rax
	jne	LBB0_19
## %bb.4:
	leaq	-104(%rbp), %rdi
	callq	_rsi_lookup
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	%rax, %r14
	movq	$0, -96(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_get_expiry
	movq	%rax, %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r13, %r13
	je	LBB0_15
## %bb.6:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	jle	LBB0_15
## %bb.7:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, -72(%rbp)
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_8
LBB0_15:
	negl	%ebx
	leaq	-104(%rbp), %rdi
	callq	_rsi_free
LBB0_18:
	movq	_rsi_cache@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cache_put
	jmp	LBB0_21
LBB0_8:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	jle	LBB0_15
## %bb.9:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, -80(%rbp)
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_15
## %bb.10:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	leaq	-84(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_dup_to_netobj
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_qword_get
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	(%rbx), %ebx
	leaq	-88(%rbp), %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_dup_to_netobj
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:
	movq	%r13, -104(%rbp)
	leaq	-104(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rsi_update
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rsi_free
	testq	%r14, %r14
	je	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rsi_cache,4,2                  ## @rsi_cache
	.no_dead_strip	_rsi_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsi_parse
_rsi_parse:                             ; @rsi_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	str	x1, [sp, #56]
	mov	x19, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x2, x0
	add	x0, x19, #44
	mov	x1, x20
	bl	_dup_to_netobj
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, sp
	bl	_rsi_free
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	tbnz	w0, #31, LBB0_2
; %bb.6:
	mov	x2, x0
	mov	x8, sp
	add	x0, x8, #40
	mov	x1, x20
	bl	_dup_to_netobj
	cbnz	x0, LBB0_2
; %bb.7:
	mov	x0, sp
	bl	_rsi_lookup
	cbz	x0, LBB0_2
; %bb.8:
	mov	x19, x0
	str	xzr, [sp, #8]
	add	x0, sp, #56
	bl	_get_expiry
Lloh3:
	adrp	x24, _EINVAL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x24]
	cbz	x0, LBB0_11
; %bb.9:
	mov	x22, x0
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [sp, #32]
	ldr	x8, [sp, #48]
	ldrb	w8, [x8]
	cbz	w8, LBB0_13
LBB0_11:
	neg	w20, w23
	mov	x0, sp
	bl	_rsi_free
LBB0_12:
Lloh5:
	adrp	x1, _rsi_cache@GOTPAGE
Lloh6:
	ldr	x1, [x1, _rsi_cache@GOTPAGEOFF]
	mov	x0, x19
	bl	_cache_put
	b	LBB0_4
LBB0_13:
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.14:
	add	x1, sp, #48
	mov	x0, x20
	mov	w2, #10
	bl	_simple_strtoul
	str	x0, [sp, #24]
	ldr	x8, [sp, #48]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.15:
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	tbnz	w0, #31, LBB0_11
; %bb.16:
	mov	x2, x0
Lloh7:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x25]
	mov	x8, sp
	add	x0, x8, #20
	mov	x1, x20
	bl	_dup_to_netobj
	cbnz	x0, LBB0_11
; %bb.17:
	add	x0, sp, #56
	mov	x1, x20
	mov	x2, x21
	bl	_qword_get
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x2, x0
	ldr	w23, [x25]
	mov	x8, sp
	add	x0, x8, #16
	mov	x1, x20
	bl	_dup_to_netobj
	cbnz	x0, LBB0_11
; %bb.19:
	str	x22, [sp]
	mov	x0, sp
	mov	x1, x19
	bl	_rsi_update
	mov	x19, x0
	mov	x0, sp
	bl	_rsi_free
	cbz	x19, LBB0_3
; %bb.20:
	mov	w20, #0
	b	LBB0_12
LBB0_21:
	ldr	w23, [x24]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rsi_cache,4,2                  ; @rsi_cache
	.no_dead_strip	_rsi_parse
.subsections_via_symbols
