	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mysqli_begin_transaction_libmysql
_mysqli_begin_transaction_libmysql:     ## @mysqli_begin_transaction_libmysql
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	%rax, %r15
	movq	(%rax), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_TRANS_START_WITH_CONSISTENT_SNAPSHOT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$24, %edx
	callq	_smart_str_appendl
LBB0_2:
	movq	_TRANS_START_READ_WRITE@GOTPCREL(%rip), %r12
	movq	_TRANS_START_READ_ONLY@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	orl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_14
## %bb.3:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mysql_get_server_version
	cmpq	$50604, %rax                    ## imm = 0xC5AC
	jg	LBB0_5
## %bb.4:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_14
LBB0_5:
	testl	%ebx, (%r12)
	je	LBB0_9
## %bb.6:
	cmpq	$0, -64(%rbp)
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$2, %edx
	callq	_smart_str_appendl
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$10, %edx
	jmp	LBB0_13
LBB0_9:
	testl	%ebx, (%r14)
	je	LBB0_14
## %bb.10:
	cmpq	$0, -64(%rbp)
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$2, %edx
	callq	_smart_str_appendl
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %rdi
	movl	$9, %edx
LBB0_13:
	callq	_smart_str_appendl
LBB0_14:
	leaq	-64(%rbp), %rdi
	callq	_smart_str_0
                                        ## implicit-def: $ebx
	cmpq	(%r15), %r13
	jne	LBB0_20
## %bb.15:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_mysqli_escape_string_for_tx_name_in_comment
	movq	%rax, %r14
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %r8
	movq	%rax, %rbx
	cmoveq	%r8, %rbx
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_ZSTR_VAL
	movq	%rax, %r8
LBB0_17:
	leaq	L_.str.5(%rip), %rdx
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rcx
	callq	_spprintf
	movl	%eax, %ebx
	leaq	-64(%rbp), %rdi
	callq	_smart_str_free
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_efree
LBB0_19:
	movq	-80(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mysql_real_query
	movl	%eax, %ebx
	movq	-80(%rbp), %rdi
	callq	_efree
LBB0_20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRANS_START_WITH_CONSISTENT_SNAPSHOT,4,2 ## @TRANS_START_WITH_CONSISTENT_SNAPSHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	", "

L_.str.1:                               ## @.str.1
	.asciz	"WITH CONSISTENT SNAPSHOT"

	.comm	_TRANS_START_READ_WRITE,4,2     ## @TRANS_START_READ_WRITE
	.comm	_TRANS_START_READ_ONLY,4,2      ## @TRANS_START_READ_ONLY
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"This server version doesn't support 'READ WRITE' and 'READ ONLY'. Minimum 5.6.5 is required"

	.comm	_TRUE,8,3                       ## @TRUE
L_.str.3:                               ## @.str.3
	.asciz	"READ WRITE"

L_.str.4:                               ## @.str.4
	.asciz	"READ ONLY"

L_.str.5:                               ## @.str.5
	.asciz	"START TRANSACTION%s %s"

L_.str.6:                               ## @.str.6
	.space	1

	.no_dead_strip	_mysqli_begin_transaction_libmysql
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mysqli_begin_transaction_libmysql
_mysqli_begin_transaction_libmysql:     ; @mysqli_begin_transaction_libmysql
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	x23, [x22]
	stp	xzr, xzr, [sp, #16]
Lloh2:
	adrp	x8, _TRANS_START_WITH_CONSISTENT_SNAPSHOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRANS_START_WITH_CONSISTENT_SNAPSHOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #16
	mov	w2, #24
	bl	_smart_str_appendl
LBB0_2:
Lloh7:
	adrp	x25, _TRANS_START_READ_WRITE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _TRANS_START_READ_WRITE@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh9:
	adrp	x24, _TRANS_START_READ_ONLY@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TRANS_START_READ_ONLY@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_14
; %bb.3:
	mov	x0, x19
	bl	_mysql_get_server_version
	mov	w8, #50604
	cmp	x0, x8
	b.gt	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	x23, [x8]
	b	LBB0_14
LBB0_5:
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_smart_str_appendl
LBB0_8:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #16
	mov	w2, #10
	b	LBB0_13
LBB0_9:
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.10:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_smart_str_appendl
LBB0_12:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #16
	mov	w2, #9
LBB0_13:
	bl	_smart_str_appendl
LBB0_14:
	add	x0, sp, #16
	bl	_smart_str_0
	ldr	x8, [x22]
                                        ; implicit-def: $w21
	cmp	x23, x8
	b.ne	LBB0_20
; %bb.15:
	mov	x0, x20
	bl	_mysqli_escape_string_for_tx_name_in_comment
	mov	x20, x0
Lloh27:
	adrp	x4, l_.str.6@PAGE
Lloh28:
	add	x4, x4, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x21, x4, x0, eq
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_ZSTR_VAL
	mov	x4, x0
LBB0_17:
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	add	x0, sp, #8
	mov	w1, #0
	mov	x3, x21
	bl	_spprintf
	mov	x21, x0
	add	x0, sp, #16
	bl	_smart_str_free
	cbz	x20, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_efree
LBB0_19:
	ldr	x1, [sp, #8]
	mov	x0, x19
	mov	x2, x21
	bl	_mysql_real_query
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_efree
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRANS_START_WITH_CONSISTENT_SNAPSHOT,4,2 ; @TRANS_START_WITH_CONSISTENT_SNAPSHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	", "

l_.str.1:                               ; @.str.1
	.asciz	"WITH CONSISTENT SNAPSHOT"

	.comm	_TRANS_START_READ_WRITE,4,2     ; @TRANS_START_READ_WRITE
	.comm	_TRANS_START_READ_ONLY,4,2      ; @TRANS_START_READ_ONLY
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"This server version doesn't support 'READ WRITE' and 'READ ONLY'. Minimum 5.6.5 is required"

	.comm	_TRUE,8,3                       ; @TRUE
l_.str.3:                               ; @.str.3
	.asciz	"READ WRITE"

l_.str.4:                               ; @.str.4
	.asciz	"READ ONLY"

l_.str.5:                               ; @.str.5
	.asciz	"START TRANSACTION%s %s"

l_.str.6:                               ; @.str.6
	.space	1

	.no_dead_strip	_mysqli_begin_transaction_libmysql
.subsections_via_symbols
