	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_lease_target_by_pid        ## -- Begin function get_lease_target_by_pid
	.p2align	4, 0x90
_get_lease_target_by_pid:               ## @get_lease_target_by_pid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	movq	_cur_lease_target_ip@GOTPCREL(%rip), %r13
	movq	_cur_lease_target_port@GOTPCREL(%rip), %r12
	movq	_cur_lease_target_ct@GOTPCREL(%rip), %rcx
	movq	_cur_lease_target@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, (%r13)
	jne	LBB0_3
## %bb.1:
	cmpl	%r15d, (%r12)
	jne	LBB0_3
## %bb.2:
	cmpq	%r14, (%rcx)
	je	LBB0_6
LBB0_3:
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movslq	%eax, %rdi
	movq	_Targets@GOTPCREL(%rip), %rax
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_destroy_target
	movq	_cur_lease_target_ct@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	%ebx, (%r13)
	movl	%r15d, (%r12)
	movq	%r14, (%rcx)
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_get_target_by_pid
	movq	_cur_lease_target@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_lease_target_ip,4,2        ## @cur_lease_target_ip
	.comm	_cur_lease_target_port,4,2      ## @cur_lease_target_port
	.comm	_cur_lease_target_ct,8,3        ## @cur_lease_target_ct
	.comm	_cur_lease_target,4,2           ## @cur_lease_target
	.comm	_Targets,8,3                    ## @Targets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_lease_target_by_pid        ; -- Begin function get_lease_target_by_pid
	.p2align	2
_get_lease_target_by_pid:               ; @get_lease_target_by_pid
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x23, _cur_lease_target_ip@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cur_lease_target_ip@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _cur_lease_target_port@GOTPAGE
Lloh3:
	ldr	x24, [x24, _cur_lease_target_port@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh4:
	adrp	x25, _cur_lease_target_ct@GOTPAGE
Lloh5:
	ldr	x25, [x25, _cur_lease_target_ct@GOTPAGEOFF]
	ldr	x10, [x25]
Lloh6:
	adrp	x22, _cur_lease_target@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cur_lease_target@GOTPAGEOFF]
	ldr	w0, [x22]
	cmp	w8, w21
	ccmp	w9, w1, #0, eq
	ccmp	x10, x2, #0, eq
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.2:
	sxtw	x8, w0
Lloh8:
	adrp	x9, _Targets@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Targets@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8, lsl #2
	bl	_destroy_target
LBB0_3:
	str	w21, [x23]
	str	w20, [x24]
	str	x19, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_get_target_by_pid
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x22]
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_lease_target_ip,4,2        ; @cur_lease_target_ip
	.comm	_cur_lease_target_port,4,2      ; @cur_lease_target_port
	.comm	_cur_lease_target_ct,8,3        ; @cur_lease_target_ct
	.comm	_cur_lease_target,4,2           ; @cur_lease_target
	.comm	_Targets,8,3                    ; @Targets
.subsections_via_symbols
