	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_friend_request          ## -- Begin function do_add_friend_request
	.p2align	4, 0x90
_do_add_friend_request:                 ## @do_add_friend_request
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_conv_uid
	cmpl	$2, %r12d
	ja	LBB0_11
## %bb.1:
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.2:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.3:
	testq	%rax, %rax
	js	LBB0_11
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	cmpl	$1, %r12d
	jne	LBB0_6
## %bb.7:
	movq	_LEV_FR_ADD_FRIENDREQ@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_11:
	movl	$-1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_LEV_FR_REPLACE_FRIENDREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$16, %esi
	movl	%ebx, %edx
	callq	_alloc_log_event
	movl	%r15d, (%rax)
	movl	%r14d, 4(%rax)
	movl	%ebx, %edi
	callq	_get_user
	jmp	LBB0_10
LBB0_6:
	movq	_LEV_FR_NEW_FRIENDREQ@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movl	$16, %esi
	movl	%ebx, %edx
	callq	_alloc_log_event
	movl	%r15d, (%rax)
	movl	%r14d, 4(%rax)
	movl	%ebx, %edi
	callq	_get_user_f
LBB0_10:
	movq	%rax, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_friend_request             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LEV_FR_NEW_FRIENDREQ,4,2       ## @LEV_FR_NEW_FRIENDREQ
	.comm	_LEV_FR_ADD_FRIENDREQ,4,2       ## @LEV_FR_ADD_FRIENDREQ
	.comm	_LEV_FR_REPLACE_FRIENDREQ,4,2   ## @LEV_FR_REPLACE_FRIENDREQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_add_friend_request          ; -- Begin function do_add_friend_request
	.p2align	2
_do_add_friend_request:                 ; @do_add_friend_request
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_conv_uid
	cmp	w19, #2
	b.hi	LBB0_6
; %bb.1:
	tbnz	w20, #31, LBB0_6
; %bb.2:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	tbnz	x0, #63, LBB0_6
; %bb.4:
	cbz	w19, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _LEV_FR_NEW_FRIENDREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LEV_FR_NEW_FRIENDREQ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LEV_FR_ADD_FRIENDREQ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LEV_FR_ADD_FRIENDREQ@GOTPAGEOFF]
	cmp	w19, #1
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	mov	w1, #16
	mov	x2, x22
	bl	_alloc_log_event
	stp	w21, w20, [x0]
	mov	x0, x22
	bl	_get_user_f
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	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:
Lloh4:
	adrp	x8, _LEV_FR_REPLACE_FRIENDREQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LEV_FR_REPLACE_FRIENDREQ@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #16
	mov	x2, x22
	bl	_alloc_log_event
	stp	w21, w20, [x0]
	mov	x0, x22
	bl	_get_user
LBB0_8:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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	_add_friend_request
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LEV_FR_NEW_FRIENDREQ,4,2       ; @LEV_FR_NEW_FRIENDREQ
	.comm	_LEV_FR_ADD_FRIENDREQ,4,2       ; @LEV_FR_ADD_FRIENDREQ
	.comm	_LEV_FR_REPLACE_FRIENDREQ,4,2   ; @LEV_FR_REPLACE_FRIENDREQ
.subsections_via_symbols
