	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_err_packet ## -- Begin function network_mysqld_proto_append_err_packet
	.p2align	4, 0x90
_network_mysqld_proto_append_err_packet: ## @network_mysqld_proto_append_err_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$255, %esi
	callq	_network_mysqld_proto_append_int8
	movl	24(%r14), %esi
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_append_int16
	movq	(%r14), %rax
	movq	_NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	movl	$35, %esi
	callq	_g_string_append_c
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.3:
	movl	8(%rax), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	xorl	%eax, %eax
	callq	_g_string_append_len
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_C
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_g_string_append_len
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %esi
	cmpl	$512, %ecx                      ## imm = 0x200
	movl	$512, %edx                      ## imm = 0x200
	cmovll	%ecx, %edx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_g_string_append_len
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETWORK_MYSQLD_PROTOCOL_VERSION_41,8,3 ## @NETWORK_MYSQLD_PROTOCOL_VERSION_41
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"07000"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_err_packet ; -- Begin function network_mysqld_proto_append_err_packet
	.p2align	2
_network_mysqld_proto_append_err_packet: ; @network_mysqld_proto_append_err_packet
	.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	x20, x1
	mov	x19, x0
	mov	w1, #255
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x20, #24]
	mov	x0, x19
	bl	_network_mysqld_proto_append_int16
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETWORK_MYSQLD_PROTOCOL_VERSION_41@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x0, x19
	mov	w1, #35
	bl	_g_string_append_c
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x8]
	cmp	x9, #1
	b.lt	LBB0_4
; %bb.3:
	ldr	w1, [x8, #8]
	mov	w8, #5
	str	x8, [sp]
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_C
	mov	x1, x0
LBB0_5:
	mov	x0, x19
	bl	_g_string_append_len
LBB0_6:
	ldr	x8, [x20, #8]
	mov	w9, #512
	ldp	w10, w1, [x8]
	cmp	w10, #512
	csel	w8, w10, w9, lt
	str	x8, [sp]
	mov	x0, x19
	bl	_g_string_append_len
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NETWORK_MYSQLD_PROTOCOL_VERSION_41,8,3 ; @NETWORK_MYSQLD_PROTOCOL_VERSION_41
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"07000"

.subsections_via_symbols
