	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_auth_response ## -- Begin function network_mysqld_proto_get_auth_response
	.p2align	4, 0x90
_network_mysqld_proto_get_auth_response: ## @network_mysqld_proto_get_auth_response
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rsi
	callq	_network_mysqld_proto_peek_int16
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_28
## %bb.1:
	movq	_CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_19
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_network_mysqld_proto_get_int32
	movb	$1, %r15b
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int32
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	leaq	24(%r14), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int8
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	$23, %esi
	callq	_network_mysqld_proto_skip
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_gstring
	testq	%rax, %rax
	setne	%r15b
LBB0_7:
	movq	_CLIENT_SECURE_CONNECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.8:
	movb	$1, %al
	testb	%r15b, %r15b
	jne	LBB0_13
## %bb.9:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_lenenc_gstring
	jmp	LBB0_12
LBB0_19:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int16
	movb	$1, %r12b
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:
	leaq	4(%r14), %rsi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_int24
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_gstring
	testq	%rax, %rax
	setne	%r12b
LBB0_22:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_23
## %bb.25:
	movl	$1, %r15d
	testb	%r12b, %r12b
	je	LBB0_26
	jmp	LBB0_27
LBB0_10:
	movb	$1, %al
	testb	%r15b, %r15b
	jne	LBB0_13
## %bb.11:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_gstring
LBB0_12:
	testq	%rax, %rax
	setne	%al
LBB0_13:
	movzbl	%al, %r15d
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	subq	(%rbx), %rsi
	je	LBB0_27
## %bb.14:
	testl	%r15d, %r15d
	movl	$1, %r15d
	jne	LBB0_16
## %bb.15:
	movq	16(%r14), %rdx
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_gstring_len
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
LBB0_16:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.17:
	movq	8(%rax), %rdx
	decl	%ecx
	cmpb	$0, (%rdx,%rcx)
	jne	LBB0_27
## %bb.18:
	movl	%ecx, (%rax)
	jmp	LBB0_27
LBB0_23:
	movl	$1, %r15d
	testb	%r12b, %r12b
	jne	LBB0_27
## %bb.24:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_get_gstring
	testq	%rax, %rax
	jne	LBB0_27
LBB0_26:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
LBB0_27:
	xorl	%eax, %eax
	negl	%r15d
	sbbl	%eax, %eax
LBB0_28:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ## @CLIENT_PROTOCOL_41
	.comm	_CLIENT_SECURE_CONNECTION,4,2   ## @CLIENT_SECURE_CONNECTION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_auth_response ; -- Begin function network_mysqld_proto_get_auth_response
	.p2align	2
_network_mysqld_proto_get_auth_response: ; @network_mysqld_proto_get_auth_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	bl	_network_mysqld_proto_peek_int16
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_32
LBB0_2:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _CLIENT_PROTOCOL_41@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CLIENT_PROTOCOL_41@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_network_mysqld_proto_get_int32
	cbnz	x0, LBB0_7
; %bb.4:
	add	x1, x19, #4
	mov	x0, x20
	bl	_network_mysqld_proto_get_int32
	cbnz	x0, LBB0_7
; %bb.5:
	add	x1, x19, #24
	mov	x0, x20
	bl	_network_mysqld_proto_get_int8
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #23
	bl	_network_mysqld_proto_skip
	cbz	x0, LBB0_34
LBB0_7:
	mov	w8, #1
LBB0_8:
	ldr	w9, [x19]
Lloh3:
	adrp	x10, _CLIENT_SECURE_CONNECTION@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CLIENT_SECURE_CONNECTION@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.9:
	tbnz	w8, #0, LBB0_17
; %bb.10:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_network_mysqld_proto_get_lenenc_gstring
	b	LBB0_23
LBB0_11:
	add	x1, sp, #12
	mov	x0, x20
	bl	_network_mysqld_proto_get_int16
	cbnz	x0, LBB0_13
; %bb.12:
	add	x1, x19, #4
	mov	x0, x20
	bl	_network_mysqld_proto_get_int24
	cbz	x0, LBB0_33
LBB0_13:
	mov	w8, #1
LBB0_14:
	ldp	x10, x9, [x20]
	ldr	x9, [x9]
	cmp	x9, x10
	b.ne	LBB0_18
; %bb.15:
	tbnz	w8, #0, LBB0_20
	b	LBB0_21
LBB0_16:
	tbz	w8, #0, LBB0_22
LBB0_17:
	mov	w8, #1
	b	LBB0_24
LBB0_18:
	tbnz	w8, #0, LBB0_20
; %bb.19:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_network_mysqld_proto_get_gstring
	cbz	x0, LBB0_21
LBB0_20:
	mov	w8, #1
	b	LBB0_31
LBB0_21:
	mov	w8, #0
	ldr	w9, [sp, #12]
	str	w9, [x19]
	b	LBB0_31
LBB0_22:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_network_mysqld_proto_get_gstring
LBB0_23:
	cmp	x0, #0
	cset	w8, ne
LBB0_24:
	ldp	x9, x10, [x20]
	ldr	x10, [x10]
	subs	x1, x10, x9
	b.eq	LBB0_31
; %bb.25:
	tbz	w8, #0, LBB0_27
; %bb.26:
	mov	w8, #1
	b	LBB0_28
LBB0_27:
	ldr	x2, [x19, #16]
	mov	x0, x20
	bl	_network_mysqld_proto_get_gstring_len
	cmp	x0, #0
	cset	w8, ne
LBB0_28:
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
	subs	w10, w10, #1
	b.lt	LBB0_31
; %bb.29:
	ldr	x11, [x9, #8]
	ldrb	w11, [x11, w10, uxtw]
	cbnz	w11, LBB0_31
; %bb.30:
	str	w10, [x9]
LBB0_31:
	cmp	w8, #0
	csetm	w0, ne
LBB0_32:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_33:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_network_mysqld_proto_get_gstring
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_14
LBB0_34:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_network_mysqld_proto_get_gstring
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ; @CLIENT_PROTOCOL_41
	.comm	_CLIENT_SECURE_CONNECTION,4,2   ; @CLIENT_SECURE_CONNECTION
.subsections_via_symbols
