	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function firebird_bind_blob
_firebird_bind_blob:                    ## @firebird_bind_blob
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r8
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %edi
	leaq	8(%r15), %rsi
	leaq	4(%r15), %rdx
	leaq	-48(%rbp), %rcx
	callq	_isc_create_blob
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movq	%r12, %rdi
	callq	_Z_TYPE_P
	movq	_IS_STRING@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
## %bb.3:
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ZVAL_COPY_VALUE
	jmp	LBB0_4
LBB0_2:
	movq	%r12, %rdi
	callq	_zval_get_string_func
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	callq	_ZVAL_STR
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_Z_STRLEN
	testq	%rax, %rax
	jle	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_USHRT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	%r13, %rbx
	cmovlq	%rbx, %r13
	movl	(%r15), %r14d
	movl	-44(%rbp), %edi
	callq	_Z_STRVAL
	leaq	(%rax,%r12,4), %rcx
	movzwl	%r13w, %edx
	movl	%r14d, %edi
	leaq	-48(%rbp), %rsi
	callq	_isc_put_segment
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzwl	%r13w, %eax
	addq	%rax, %r12
	subq	%rax, %rbx
	jg	LBB0_6
## %bb.9:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_IS_STRING@GOTPCREL(%rip), %r13
LBB0_10:
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_7:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_RECORD_ERROR
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_IS_STRING@GOTPCREL(%rip), %r13
LBB0_11:
	movq	%r12, %rdi
	callq	_Z_TYPE_P
	cmpq	(%r13), %rax
	je	LBB0_13
## %bb.12:
	leaq	-44(%rbp), %rdi
	callq	_zval_ptr_dtor_str
LBB0_13:
	movl	(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_isc_close_blob
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_RECORD_ERROR
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PDO_FIREBIRD_HANDLE_INITIALIZER,4,2 ## @PDO_FIREBIRD_HANDLE_INITIALIZER
	.comm	_IS_STRING,8,3                  ## @IS_STRING
	.comm	_USHRT_MAX,8,3                  ## @USHRT_MAX
	.no_dead_strip	_firebird_bind_blob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function firebird_bind_blob
_firebird_bind_blob:                    ; @firebird_bind_blob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x4, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PDO_FIREBIRD_HANDLE_INITIALIZER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	mov	x2, x23
	ldr	w0, [x2], #4
	add	x1, x23, #8
	add	x3, sp, #12
	bl	_isc_create_blob
	cbnz	x0, LBB0_13
; %bb.1:
	mov	x0, x20
	bl	_Z_TYPE_P
Lloh3:
	adrp	x24, _IS_STRING@GOTPAGE
Lloh4:
	ldr	x24, [x24, _IS_STRING@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
	add	x0, sp, #8
	mov	x1, x20
	bl	_ZVAL_COPY_VALUE
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_zval_get_string_func
	mov	x1, x0
	add	x0, sp, #8
	bl	_ZVAL_STR
LBB0_4:
	ldr	w0, [sp, #8]
	bl	_Z_STRLEN
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x21, x0
	mov	x25, #0
Lloh5:
	adrp	x26, _USHRT_MAX@GOTPAGE
Lloh6:
	ldr	x26, [x26, _USHRT_MAX@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x21, x8
	csel	x27, x21, x8, lt
	ldr	w22, [x23]
	ldr	w0, [sp, #8]
	bl	_Z_STRVAL
	add	x3, x0, x25, lsl #2
	and	w2, w27, #0xffff
	add	x1, sp, #12
	mov	x0, x22
	bl	_isc_put_segment
	cbnz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	and	x8, x27, #0xffff
	add	x25, x8, x25
	sub	x21, x21, x8
	cmp	x21, #0
	b.gt	LBB0_6
LBB0_8:
	mov	w21, #1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_RECORD_ERROR
	mov	w21, #0
LBB0_10:
	mov	x0, x20
	bl	_Z_TYPE_P
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_12
; %bb.11:
	add	x0, sp, #8
	bl	_zval_ptr_dtor_str
LBB0_12:
	ldr	w0, [x23]
	add	x1, sp, #12
	bl	_isc_close_blob
	cbz	x0, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_RECORD_ERROR
	mov	w21, #0
LBB0_14:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PDO_FIREBIRD_HANDLE_INITIALIZER,4,2 ; @PDO_FIREBIRD_HANDLE_INITIALIZER
	.comm	_IS_STRING,8,3                  ; @IS_STRING
	.comm	_USHRT_MAX,8,3                  ; @USHRT_MAX
	.no_dead_strip	_firebird_bind_blob
.subsections_via_symbols
