	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lua_proto_append_response_packet
_lua_proto_append_response_packet:      ## @lua_proto_append_response_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_LUA_TTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %esi
	callq	_luaL_checktype
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_g_string_new
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_network_mysqld_auth_response_new
	movq	%rax, %rbx
	movq	_capabilities@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_INT
	movq	_max_packet_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_INT
	movq	_charset@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_INT
	movq	_username@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_STR
	movq	_response@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_STR
	movq	_database@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LUA_IMPORT_STR
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_network_mysqld_proto_append_auth_response
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_network_mysqld_auth_response_free
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_string_free
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_S
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_lua_pushlstring
	movl	$1, %r15d
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_g_string_free
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUA_TTABLE,4,2                 ## @LUA_TTABLE
	.comm	_capabilities,4,2               ## @capabilities
	.comm	_max_packet_size,4,2            ## @max_packet_size
	.comm	_charset,4,2                    ## @charset
	.comm	_username,4,2                   ## @username
	.comm	_response,4,2                   ## @response
	.comm	_database,4,2                   ## @database
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"to_response_packet() failed"

	.no_dead_strip	_lua_proto_append_response_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lua_proto_append_response_packet
_lua_proto_append_response_packet:      ; @lua_proto_append_response_packet
	.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	x20, x0
Lloh0:
	adrp	x8, _LUA_TTABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUA_TTABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #1
	bl	_luaL_checktype
	mov	x0, #0
	bl	_g_string_new
	mov	x19, x0
	bl	_network_mysqld_auth_response_new
	mov	x21, x0
Lloh3:
	adrp	x8, _capabilities@GOTPAGE
Lloh4:
	ldr	x8, [x8, _capabilities@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_LUA_IMPORT_INT
Lloh6:
	adrp	x8, _max_packet_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _max_packet_size@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LUA_IMPORT_INT
Lloh9:
	adrp	x8, _charset@GOTPAGE
Lloh10:
	ldr	x8, [x8, _charset@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LUA_IMPORT_INT
Lloh12:
	adrp	x8, _username@GOTPAGE
Lloh13:
	ldr	x8, [x8, _username@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LUA_IMPORT_STR
Lloh15:
	adrp	x8, _response@GOTPAGE
Lloh16:
	ldr	x8, [x8, _response@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LUA_IMPORT_STR
Lloh18:
	adrp	x8, _database@GOTPAGE
Lloh19:
	ldr	x8, [x8, _database@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_LUA_IMPORT_STR
	mov	x0, x19
	mov	x1, x21
	bl	_network_mysqld_proto_append_auth_response
	mov	x22, x0
	mov	x0, x21
	bl	_network_mysqld_auth_response_free
Lloh21:
	adrp	x21, _TRUE@GOTPAGE
Lloh22:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_g_string_free
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_luaL_error
	mov	w20, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_S
	mov	x1, x0
	mov	x0, x20
	bl	_lua_pushlstring
	mov	w20, #1
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_g_string_free
	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 AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_LUA_TTABLE,4,2                 ; @LUA_TTABLE
	.comm	_capabilities,4,2               ; @capabilities
	.comm	_max_packet_size,4,2            ; @max_packet_size
	.comm	_charset,4,2                    ; @charset
	.comm	_username,4,2                   ; @username
	.comm	_response,4,2                   ; @response
	.comm	_database,4,2                   ; @database
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"to_response_packet() failed"

	.no_dead_strip	_lua_proto_append_response_packet
.subsections_via_symbols
