	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_upload_methods ## -- Begin function connection_consume_upload_methods
	.p2align	4, 0x90
_connection_consume_upload_methods:     ## @connection_consume_upload_methods
	.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, %r14
	movl	(%rdi), %r15d
	movl	8(%rdi), %r12d
	movq	_TOKEN_RESPONSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %esi
	movl	$22, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movl	8(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %esi
	movl	$22, %ecx
	callq	_util_memsearch
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.6:
	movq	_UPLOAD_TFTP@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_UPLOAD_WGET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_UPLOAD_ECHO@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TOKEN_RESPONSE,8,3             ## @TOKEN_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wget: applet not found"

	.comm	_UPLOAD_WGET,4,2                ## @UPLOAD_WGET
L_.str.1:                               ## @.str.1
	.asciz	"tftp: applet not found"

	.comm	_UPLOAD_TFTP,4,2                ## @UPLOAD_TFTP
	.comm	_UPLOAD_ECHO,4,2                ## @UPLOAD_ECHO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connection_consume_upload_methods ; -- Begin function connection_consume_upload_methods
	.p2align	2
_connection_consume_upload_methods:     ; @connection_consume_upload_methods
	.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	w20, [x0, #8]
	ldr	w21, [x0]
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.eq	LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w3, #22
	bl	_util_memsearch
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	w3, #22
	bl	_util_memsearch
Lloh7:
	adrp	x8, _UPLOAD_ECHO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UPLOAD_ECHO@GOTPAGEOFF]
Lloh9:
	adrp	x9, _UPLOAD_TFTP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UPLOAD_TFTP@GOTPAGEOFF]
	cmn	w0, #1
	csel	x8, x9, x8, eq
	b	LBB0_5
LBB0_3:
	mov	w20, #0
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _UPLOAD_WGET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UPLOAD_WGET@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_6:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TOKEN_RESPONSE,8,3             ; @TOKEN_RESPONSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wget: applet not found"

	.comm	_UPLOAD_WGET,4,2                ; @UPLOAD_WGET
l_.str.1:                               ; @.str.1
	.asciz	"tftp: applet not found"

	.comm	_UPLOAD_TFTP,4,2                ; @UPLOAD_TFTP
	.comm	_UPLOAD_ECHO,4,2                ; @UPLOAD_ECHO
.subsections_via_symbols
