	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_insert_target_ext   ## -- Begin function rpc_target_insert_target_ext
	.p2align	4, 0x90
_rpc_target_insert_target_ext:          ## @rpc_target_insert_target_ext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_st_update_host
	movl	%ebx, _rpc_target_insert_target_ext.t+8(%rip)
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.1:
	cmpl	$2130706433, %ebx               ## imm = 0x7F000001
	jne	LBB0_3
## %bb.2:
	movl	$0, _rpc_target_insert_target_ext.t+8(%rip)
	xorl	%ebx, %ebx
LBB0_3:
	movq	_rpc_targets_cur_host@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.5:
	movl	%eax, _rpc_target_insert_target_ext.t+8(%rip)
LBB0_6:
	movl	(%r14), %eax
	movl	%eax, _rpc_target_insert_target_ext.t+12(%rip)
	leaq	_rpc_target_insert_target_ext.t(%rip), %rsi
	movq	_rpc_target_tree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tree_lookup_rpc_target
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jne	LBB0_9
LBB0_8:
	movq	_rpc_target_insert_target_ext.t+8(%rip), %rdi
	callq	_rpc_target_alloc
	movq	%rax, %rbx
LBB0_9:
	movq	(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	cmpq	%r14, %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	%r14, (%rbx)
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_rpc_target_insert_target_ext.t,16,3 ## @rpc_target_insert_target_ext.t
	.comm	_rpc_targets_cur_host,4,2       ## @rpc_targets_cur_host
	.comm	_rpc_target_tree,4,2            ## @rpc_target_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_insert_target_ext   ; -- Begin function rpc_target_insert_target_ext
	.p2align	2
_rpc_target_insert_target_ext:          ; @rpc_target_insert_target_ext
	.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
	bl	_st_update_host
	adrp	x21, _rpc_target_insert_target_ext.t@PAGE+8
	str	w20, [x21, _rpc_target_insert_target_ext.t@PAGEOFF+8]
	cbz	w20, LBB0_9
; %bb.1:
	mov	w8, #1
	movk	w8, #32512, lsl #16
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #0
	str	wzr, [x21, _rpc_target_insert_target_ext.t@PAGEOFF+8]
LBB0_3:
Lloh0:
	adrp	x8, _rpc_targets_cur_host@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rpc_targets_cur_host@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	ccmp	w20, #0, #0, ne
	b.ne	LBB0_5
; %bb.4:
	str	w8, [x21, _rpc_target_insert_target_ext.t@PAGEOFF+8]
LBB0_5:
	ldr	w8, [x19]
Lloh3:
	adrp	x1, _rpc_target_insert_target_ext.t@PAGE
Lloh4:
	add	x1, x1, _rpc_target_insert_target_ext.t@PAGEOFF
	str	w8, [x1, #12]
Lloh5:
	adrp	x8, _rpc_target_tree@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rpc_target_tree@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_tree_lookup_rpc_target
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x20, [x0]
	cbnz	x20, LBB0_8
LBB0_7:
	ldr	x0, [x21, _rpc_target_insert_target_ext.t@PAGEOFF+8]
	bl	_rpc_target_alloc
	mov	x20, x0
LBB0_8:
	ldr	x8, [x20]
	cmp	x8, #0
	ccmp	x8, x19, #4, ne
	cset	w0, eq
	bl	_assert
	str	x19, [x20]
LBB0_9:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_rpc_target_insert_target_ext.t,16,3 ; @rpc_target_insert_target_ext.t
	.comm	_rpc_targets_cur_host,4,2       ; @rpc_targets_cur_host
	.comm	_rpc_target_tree,4,2            ; @rpc_target_tree
.subsections_via_symbols
