	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_host_agents
_process_host_agents:                   ## @process_host_agents
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_new_gagents
	movq	_conf@GOTPCREL(%rip), %rcx
	leal	1(%r13), %r12d
	cmpq	$0, (%rcx)
	cmovel	%r15d, %r12d
	movq	(%r14), %rcx
	movq	%rax, %r14
	movl	(%rcx), %edi
	movq	_load_host_agents@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_set_host_agents
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_nlines@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TAB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %r8d
	xorl	%eax, %eax
	pushq	%rcx
	pushq	%rdx
	callq	_pjson
	addq	$16, %rsp
	movq	%r14, %r12
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.2:
	cmpl	$10, %eax
	movl	$10, %r14d
	cmovll	%eax, %r14d
	leal	-1(%r14), %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_nlines@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjson
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r15
	cmpq	%r15, %r14
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_TAB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_pjson
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %esi
	movq	%rbx, %rdi
	callq	_escape_json_output
	cmpq	%r15, %r13
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjson
	jmp	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %edx
	callq	_pclose_arr
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_agents_array              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_conf,8,3                       ## @conf
	.comm	_load_host_agents,4,2           ## @load_host_agents
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	",%.*s%.*s\"items\": [%.*s"

	.comm	_nlines,4,2                     ## @nlines
	.comm	_NL,4,2                         ## @NL
	.comm	_TAB,4,2                        ## @TAB
L_.str.1:                               ## @.str.1
	.asciz	"%.*s\""

L_.str.2:                               ## @.str.2
	.asciz	"\""

L_.str.3:                               ## @.str.3
	.asciz	"\",%.*s"

	.no_dead_strip	_process_host_agents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_host_agents
_process_host_agents:                   ; @process_host_agents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_new_gagents
	mov	x20, x0
Lloh0:
	adrp	x8, _conf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	csinc	w25, wzr, w19, eq
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _load_host_agents@GOTPAGE
Lloh4:
	ldr	x8, [x8, _load_host_agents@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_set_host_agents
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
Lloh6:
	adrp	x9, _nlines@GOTPAGE
Lloh7:
	ldr	x9, [x9, _nlines@GOTPAGEOFF]
Lloh8:
	adrp	x10, _NL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NL@GOTPAGEOFF]
Lloh10:
	adrp	x28, _TAB@GOTPAGE
Lloh11:
	ldr	x28, [x28, _TAB@GOTPAGEOFF]
	ldr	w8, [x28]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	ldr	w10, [x10]
	stp	x9, x10, [sp, #32]
	stp	x19, x8, [sp, #16]
	str	x19, [sp, #56]                  ; 8-byte Folded Spill
	stp	x9, x10, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_pjson
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x19, #0
	mov	w9, #10
	cmp	w8, #10
	csel	w8, w8, w9, lt
	sub	w9, w8, #1
	lsl	x26, x9, #2
	lsl	x27, x8, #2
Lloh16:
	adrp	x22, l_.str.1@PAGE
Lloh17:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh18:
	adrp	x23, l_.str.2@PAGE
Lloh19:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh20:
	adrp	x24, l_.str.3@PAGE
Lloh21:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh22:
	adrp	x8, _nlines@GOTPAGE
Lloh23:
	ldr	x8, [x8, _nlines@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _NL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _NL@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
	mov	x0, x21
	mov	x1, x24
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_pjson
	add	x19, x19, #4
	cmp	x27, x19
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	stp	x25, x8, [sp]
	mov	x0, x21
	mov	x1, x22
	bl	_pjson
	ldr	x8, [x20, #8]
	ldr	w1, [x8, x19]
	mov	x0, x21
	bl	_escape_json_output
	cmp	x26, x19
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x23
	b	LBB0_5
LBB0_8:
	mov	x0, x21
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #1
	bl	_pclose_arr
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_free_agents_array
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_conf,8,3                       ; @conf
	.comm	_load_host_agents,4,2           ; @load_host_agents
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	",%.*s%.*s\"items\": [%.*s"

	.comm	_nlines,4,2                     ; @nlines
	.comm	_NL,4,2                         ; @NL
	.comm	_TAB,4,2                        ; @TAB
l_.str.1:                               ; @.str.1
	.asciz	"%.*s\""

l_.str.2:                               ; @.str.2
	.asciz	"\""

l_.str.3:                               ; @.str.3
	.asciz	"\",%.*s"

	.no_dead_strip	_process_host_agents
.subsections_via_symbols
