	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_char_item
_get_char_item:                         ## @get_char_item
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	leal	-129(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	jmp	LBB0_8
LBB0_2:
	cmpl	$128, %edx
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %r12
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_strncpy
	jmp	LBB0_7
LBB0_5:
	movq	_ECPG_VAR_NOT_CHAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_ecpg_raise
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
LBB0_7:
	movq	%r15, %rdi
	callq	_strlen
	cmpl	%ebx, %eax
	movl	%eax, %ecx
	cmovgl	%ebx, %ecx
	testl	%ebx, %ebx
	cmovlel	%eax, %ecx
	movl	%ecx, 8(%r14)
LBB0_8:
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ECPG_VAR_NOT_CHAR,4,2          ## @ECPG_VAR_NOT_CHAR
	.comm	_ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION,4,2 ## @ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION
	.no_dead_strip	_get_char_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_char_item
_get_char_item:                         ; @get_char_item
	.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	x19, x4
	mov	x21, x3
	mov	x20, x1
	sub	w8, w2, #129
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_strncpy
	b	LBB0_8
LBB0_2:
	cmp	w2, #128
	b.ne	LBB0_5
; %bb.3:
	ldr	x22, [x20]
	cbz	w19, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_strncpy
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ECPG_VAR_NOT_CHAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECPG_VAR_NOT_CHAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_ecpg_raise
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_strlen
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_memcpy
LBB0_7:
	mov	x0, x21
	bl	_strlen
	cmp	w0, w19
	ccmp	w19, #0, #4, gt
	csel	w8, w19, w0, gt
	str	w8, [x20, #8]
LBB0_8:
	mov	w0, #1
LBB0_9:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ECPG_VAR_NOT_CHAR,4,2          ; @ECPG_VAR_NOT_CHAR
	.comm	_ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION,4,2 ; @ECPG_SQLSTATE_RESTRICTED_DATA_TYPE_ATTRIBUTE_VIOLATION
	.no_dead_strip	_get_char_item
.subsections_via_symbols
