	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_arch        ## -- Begin function connection_consume_arch
	.p2align	4, 0x90
_connection_consume_arch:               ## @connection_consume_arch
	.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
	movq	%rdi, %r15
	cmpq	$0, 24(%rdi)
	movq	8(%rdi), %r12
	movl	(%rdi), %r14d
	je	LBB0_1
## %bb.29:
	movq	_TOKEN_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_util_memsearch
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_32
## %bb.30:
	movl	(%r15), %edx
	xorl	%r14d, %r14d
	cmpl	$7169, %edx                     ## imm = 0x1C01
	jl	LBB0_32
## %bb.31:
	movq	8(%r15), %rdi
	leaq	6144(%rdi), %rsi
	addl	$-6144, %edx                    ## imm = 0xE800
	callq	_memmove
	addl	$-6144, (%r15)                  ## imm = 0xE800
	jmp	LBB0_32
LBB0_1:
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$3, %ecx
	callq	_util_memsearch
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	je	LBB0_32
## %bb.2:
	cltq
	movq	8(%r15), %rdx
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 24(%r15)
	movq	-4(%rax,%rdx), %rcx
	movq	_EI_DATA@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rcx,%rsi,4), %ecx
	cmpl	$128, %ecx
	je	LBB0_32
## %bb.3:
	movq	4(%rax,%rdx), %rax
	movq	_EM_ARM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	movq	_EM_AARCH64@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.6:
	movq	_EM_MIPS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.7:
	movq	_EM_MIPS_RS3_LE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.11:
	movq	_EM_386@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.12:
	movq	_EM_486@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:
	movq	_EM_860@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	_EM_X86_64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.16:
	movq	_EM_SPARC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.17:
	movq	_EM_SPARC32PLUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:
	movq	_EM_SPARCV9@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.20:
	movq	_EM_68K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:
	movq	_EM_88K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.23:
	movq	_EM_PPC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movq	_EM_PPC64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.26:
	movq	_EM_SH@GOTPCREL(%rip), %rcx
	movq	16(%r15), %rdi
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.8(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_5:
	movq	16(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_8:
	movq	16(%r15), %rdi
	cmpl	$129, %ecx
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_15:
	movq	16(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_19:
	movq	16(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_22:
	movq	16(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_25:
	movq	16(%r15), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_32
LBB0_28:
	movq	$0, (%rdi)
	movq	%r15, %rdi
	callq	_connection_close
LBB0_32:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ELF"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_EI_DATA,8,3                    ## @EI_DATA
	.comm	_EM_ARM,8,3                     ## @EM_ARM
	.comm	_EM_AARCH64,8,3                 ## @EM_AARCH64
L_.str.1:                               ## @.str.1
	.asciz	"arm"

	.comm	_EM_MIPS,8,3                    ## @EM_MIPS
	.comm	_EM_MIPS_RS3_LE,8,3             ## @EM_MIPS_RS3_LE
L_.str.2:                               ## @.str.2
	.asciz	"mpsl"

L_.str.3:                               ## @.str.3
	.asciz	"mips"

	.comm	_EM_386,8,3                     ## @EM_386
	.comm	_EM_486,8,3                     ## @EM_486
	.comm	_EM_860,8,3                     ## @EM_860
	.comm	_EM_X86_64,8,3                  ## @EM_X86_64
L_.str.4:                               ## @.str.4
	.asciz	"x86"

	.comm	_EM_SPARC,8,3                   ## @EM_SPARC
	.comm	_EM_SPARC32PLUS,8,3             ## @EM_SPARC32PLUS
	.comm	_EM_SPARCV9,8,3                 ## @EM_SPARCV9
L_.str.5:                               ## @.str.5
	.asciz	"spc"

	.comm	_EM_68K,8,3                     ## @EM_68K
	.comm	_EM_88K,8,3                     ## @EM_88K
L_.str.6:                               ## @.str.6
	.asciz	"m68k"

	.comm	_EM_PPC,8,3                     ## @EM_PPC
	.comm	_EM_PPC64,8,3                   ## @EM_PPC64
L_.str.7:                               ## @.str.7
	.asciz	"ppc"

	.comm	_EM_SH,8,3                      ## @EM_SH
L_.str.8:                               ## @.str.8
	.asciz	"sh4"

	.comm	_TOKEN_RESPONSE,8,3             ## @TOKEN_RESPONSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_arch        ; -- Begin function connection_consume_arch
	.p2align	2
_connection_consume_arch:               ; @connection_consume_arch
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x20, [x0, #8]
	ldr	w21, [x0]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _TOKEN_RESPONSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOKEN_RESPONSE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_util_memsearch
	cmn	w0, #1
	b.ne	LBB0_31
; %bb.2:
	ldr	w8, [x19]
	mov	w9, #7169
	cmp	w8, w9
	b.lt	LBB0_30
; %bb.3:
	ldr	x0, [x19, #8]
	mov	w9, #6144
	add	x1, x0, x9
	mov	w20, #-6144
	add	w2, w8, w20
	bl	_memmove
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, w20
	str	w8, [x19]
	b	LBB0_31
LBB0_4:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w3, #3
	bl	_util_memsearch
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.5:
	ldr	x8, [x19, #8]
	add	x8, x8, w0, sxtw
	ldr	x9, [x8, #-4]!
Lloh5:
	adrp	x10, _TRUE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	str	x10, [x19, #24]
Lloh8:
	adrp	x10, _EI_DATA@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EI_DATA@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, #128
	b.eq	LBB0_30
; %bb.6:
	ldr	x8, [x8, #8]
Lloh11:
	adrp	x10, _EM_ARM@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EM_ARM@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	adrp	x11, _EM_AARCH64@GOTPAGE
Lloh15:
	ldr	x11, [x11, _EM_AARCH64@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x19, #16]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_29
LBB0_8:
Lloh19:
	adrp	x10, _EM_MIPS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EM_MIPS@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
Lloh22:
	adrp	x11, _EM_MIPS_RS3_LE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _EM_MIPS_RS3_LE@GOTPAGEOFF]
Lloh24:
	ldr	x11, [x11]
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x19, #16]
	cmp	w9, #129
	b.ne	LBB0_24
; %bb.10:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_29
LBB0_11:
Lloh27:
	adrp	x9, _EM_386@GOTPAGE
Lloh28:
	ldr	x9, [x9, _EM_386@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.12:
Lloh30:
	adrp	x9, _EM_486@GOTPAGE
Lloh31:
	ldr	x9, [x9, _EM_486@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.13:
Lloh33:
	adrp	x9, _EM_860@GOTPAGE
Lloh34:
	ldr	x9, [x9, _EM_860@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.14:
Lloh36:
	adrp	x9, _EM_X86_64@GOTPAGE
Lloh37:
	ldr	x9, [x9, _EM_X86_64@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.15:
Lloh39:
	adrp	x9, _EM_SPARC@GOTPAGE
Lloh40:
	ldr	x9, [x9, _EM_SPARC@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.16:
Lloh42:
	adrp	x9, _EM_SPARC32PLUS@GOTPAGE
Lloh43:
	ldr	x9, [x9, _EM_SPARC32PLUS@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.17:
Lloh45:
	adrp	x9, _EM_SPARCV9@GOTPAGE
Lloh46:
	ldr	x9, [x9, _EM_SPARCV9@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.18:
Lloh48:
	adrp	x9, _EM_68K@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EM_68K@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.19:
Lloh51:
	adrp	x9, _EM_88K@GOTPAGE
Lloh52:
	ldr	x9, [x9, _EM_88K@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_27
; %bb.20:
Lloh54:
	adrp	x9, _EM_PPC@GOTPAGE
Lloh55:
	ldr	x9, [x9, _EM_PPC@GOTPAGEOFF]
Lloh56:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.21:
Lloh57:
	adrp	x9, _EM_PPC64@GOTPAGE
Lloh58:
	ldr	x9, [x9, _EM_PPC64@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.22:
Lloh60:
	adrp	x9, _EM_SH@GOTPAGE
Lloh61:
	ldr	x9, [x9, _EM_SH@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	ldr	x0, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.23:
Lloh63:
	adrp	x1, l_.str.8@PAGE
Lloh64:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_29
LBB0_24:
Lloh65:
	adrp	x1, l_.str.3@PAGE
Lloh66:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_29
LBB0_25:
	ldr	x0, [x19, #16]
Lloh67:
	adrp	x1, l_.str.4@PAGE
Lloh68:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_29
LBB0_26:
	ldr	x0, [x19, #16]
Lloh69:
	adrp	x1, l_.str.5@PAGE
Lloh70:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_29
LBB0_27:
	ldr	x0, [x19, #16]
Lloh71:
	adrp	x1, l_.str.6@PAGE
Lloh72:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_29
LBB0_28:
	ldr	x0, [x19, #16]
Lloh73:
	adrp	x1, l_.str.7@PAGE
Lloh74:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_29:
	bl	_strcpy
LBB0_30:
	mov	w0, #0
LBB0_31:
	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_32:
	str	xzr, [x0]
	mov	x0, x19
	bl	_connection_close
	b	LBB0_30
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ELF"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_EI_DATA,8,3                    ; @EI_DATA
	.comm	_EM_ARM,8,3                     ; @EM_ARM
	.comm	_EM_AARCH64,8,3                 ; @EM_AARCH64
l_.str.1:                               ; @.str.1
	.asciz	"arm"

	.comm	_EM_MIPS,8,3                    ; @EM_MIPS
	.comm	_EM_MIPS_RS3_LE,8,3             ; @EM_MIPS_RS3_LE
l_.str.2:                               ; @.str.2
	.asciz	"mpsl"

l_.str.3:                               ; @.str.3
	.asciz	"mips"

	.comm	_EM_386,8,3                     ; @EM_386
	.comm	_EM_486,8,3                     ; @EM_486
	.comm	_EM_860,8,3                     ; @EM_860
	.comm	_EM_X86_64,8,3                  ; @EM_X86_64
l_.str.4:                               ; @.str.4
	.asciz	"x86"

	.comm	_EM_SPARC,8,3                   ; @EM_SPARC
	.comm	_EM_SPARC32PLUS,8,3             ; @EM_SPARC32PLUS
	.comm	_EM_SPARCV9,8,3                 ; @EM_SPARCV9
l_.str.5:                               ; @.str.5
	.asciz	"spc"

	.comm	_EM_68K,8,3                     ; @EM_68K
	.comm	_EM_88K,8,3                     ; @EM_88K
l_.str.6:                               ; @.str.6
	.asciz	"m68k"

	.comm	_EM_PPC,8,3                     ; @EM_PPC
	.comm	_EM_PPC64,8,3                   ; @EM_PPC64
l_.str.7:                               ; @.str.7
	.asciz	"ppc"

	.comm	_EM_SH,8,3                      ; @EM_SH
l_.str.8:                               ; @.str.8
	.asciz	"sh4"

	.comm	_TOKEN_RESPONSE,8,3             ; @TOKEN_RESPONSE
.subsections_via_symbols
