	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function log_sql
LCPI0_0:
	.quad	0x408f400000000000              ## double 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_log_sql
	.p2align	4, 0x90
_log_sql:                               ## @log_sql
	.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	_sql_log_type@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movsd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero
	subsd	8(%rsi), %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	cvttss2si	%xmm0, %rax
	movq	_config@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpq	%rax, (%rcx)
	jg	LBB0_4
## %bb.2:
	movq	%rdi, %r15
	xorl	%edi, %edi
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	callq	_g_string_new
	movq	%rax, %r14
	xorl	%edi, %edi
	callq	_time
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_localtime
	movq	32(%rax), %rdx
	incq	%rdx
	movl	$1900, %r8d                     ## imm = 0x76C
	addq	16(%rax), %r8
	movl	24(%rax), %ecx
	movl	8(%rax), %r9d
	movl	(%rax), %r10d
	movl	4(%rax), %r11d
	movq	8(%r15), %rsi
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_g_string_printf
	addq	$32, %rsp
	movq	16(%rbx), %rax
	movq	24(%rbx), %rdx
	movq	_MYSQLD_PACKET_OK@GOTPCREL(%rip), %rsi
	movq	(%rax), %rcx
	incq	%rcx
	cmpq	(%rsi), %rdx
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r14, %rdi
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_g_string_append_printf
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	(%r13), %rax
	movl	8(%rax), %ecx
	movl	$1, %edx
	callq	_fwrite
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_g_string_free
	movq	(%r12), %rax
	movq	_REALTIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movl	8(%rax), %edi
	callq	_fflush
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sql_log_type,8,3               ## @sql_log_type
	.comm	_OFF,8,3                        ## @OFF
	.comm	_config,8,3                     ## @config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[%02d/%02d/%d %02d:%02d:%02d] C:%s S:"

	.comm	_MYSQLD_PACKET_OK,8,3           ## @MYSQLD_PACKET_OK
L_.str.1:                               ## @.str.1
	.asciz	"%s OK %.3f \"%s\"\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s ERR %.3f \"%s\"\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_REALTIME,8,3                   ## @REALTIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_sql                        ; -- Begin function log_sql
	.p2align	2
_log_sql:                               ; @log_sql
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
Lloh0:
	adrp	x22, _sql_log_type@GOTPAGE
Lloh1:
	ldr	x22, [x22, _sql_log_type@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x1
	ldp	d0, d1, [x1]
	fsub	d0, d0, d1
	mov	x8, #70368744177664
	movk	x8, #16527, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvt	s8, d0
	fcvtzs	x8, s8
Lloh5:
	adrp	x23, _config@GOTPAGE
Lloh6:
	ldr	x23, [x23, _config@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x9, [x9]
	cmp	x9, x8
	b.gt	LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, #0
	bl	_g_string_new
	mov	x20, x0
	mov	x0, #0
	bl	_time
	str	w0, [sp, #12]
	add	x0, sp, #12
	bl	_localtime
	ldr	x8, [x0, #32]
	add	x2, x8, #1
	ldr	w3, [x0, #24]
	ldr	x8, [x0, #16]
	add	x4, x8, #1900
	ldp	w6, w5, [x0, #4]
	ldr	w7, [x0]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_g_string_printf
Lloh9:
	adrp	x8, _MYSQLD_PACKET_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MYSQLD_PACKET_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w2, [x9]
	ldp	x10, x9, [x19, #16]
	ldr	x10, [x10]
	add	x3, x10, #1
Lloh12:
	adrp	x10, l_.str.2@PAGE
Lloh13:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh14:
	adrp	x11, l_.str.1@PAGE
Lloh15:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x9, x8
	csel	x1, x11, x10, eq
	mov	x0, x20
	fmov	s0, s8
	bl	_g_string_append_printf
	ldp	w1, w0, [x20]
	ldr	x8, [x23]
	ldr	w3, [x8, #8]
	mov	w2, #1
	bl	_fwrite
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_g_string_free
	ldr	x8, [x22]
Lloh19:
	adrp	x9, _REALTIME@GOTPAGE
Lloh20:
	ldr	x9, [x9, _REALTIME@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x23]
	ldr	w0, [x8, #8]
	bl	_fflush
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sql_log_type,8,3               ; @sql_log_type
	.comm	_OFF,8,3                        ; @OFF
	.comm	_config,8,3                     ; @config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[%02d/%02d/%d %02d:%02d:%02d] C:%s S:"

	.comm	_MYSQLD_PACKET_OK,8,3           ; @MYSQLD_PACKET_OK
l_.str.1:                               ; @.str.1
	.asciz	"%s OK %.3f \"%s\"\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s ERR %.3f \"%s\"\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_REALTIME,8,3                   ; @REALTIME
.subsections_via_symbols
