	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_flags                    ## -- Begin function check_flags
	.p2align	4, 0x90
_check_flags:                           ## @check_flags
	.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	%rsi, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	movq	8(%rdi), %r13
	movl	(%rdi), %ebx
	cmpl	$3, %ebx
	jl	LBB0_5
## %bb.1:
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	_TK_SQL_SELECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.2:
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcasecmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	32(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movl	4(%r12), %edi
	movq	%r14, %rsi
	callq	_g_hash_table_lookup
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movl	4(%r12), %r15d
	movq	%r14, %rdi
	callq	_g_strdup
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_g_hash_table_add
	jmp	LBB0_6
LBB0_5:
	cmpl	$2, %ebx
	jne	LBB0_10
LBB0_6:
	movq	_TK_SQL_SQL_CALC_FOUND_ROWS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%rcx,8), %rdx
	cmpq	%rax, (%rdx)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rbx
	jne	LBB0_8
	jmp	LBB0_10
LBB0_9:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TK_SQL_SELECT,8,3              ## @TK_SQL_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET_LOCK"

	.comm	_TK_SQL_SQL_CALC_FOUND_ROWS,8,3 ## @TK_SQL_SQL_CALC_FOUND_ROWS
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_flags                    ; -- Begin function check_flags
	.p2align	2
_check_flags:                           ; @check_flags
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1]
	ldr	x23, [x0, #8]
	ldr	w22, [x0]
	cmp	w22, #3
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _TK_SQL_SELECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TK_SQL_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x23, #16]
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x23, #32]
	ldr	x8, [x8, #8]
	ldr	x20, [x8]
	ldr	w0, [x19, #4]
	mov	x1, x20
	bl	_g_hash_table_lookup
	cbnz	w0, LBB0_6
; %bb.4:
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_g_strdup
	mov	x1, x0
	mov	x0, x21
	bl	_g_hash_table_add
	b	LBB0_6
LBB0_5:
	cmp	w22, #2
	b.ne	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _TK_SQL_SQL_CALC_FOUND_ROWS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TK_SQL_SQL_CALC_FOUND_ROWS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x9, x23, #8
	sub	x10, x22, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x11, [x11]
	cmp	x11, x8
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TK_SQL_SELECT,8,3              ; @TK_SQL_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET_LOCK"

	.comm	_TK_SQL_SQL_CALC_FOUND_ROWS,8,3 ; @TK_SQL_SQL_CALC_FOUND_ROWS
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
