	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_downcase_identifier            ## -- Begin function downcase_identifier
	.p2align	4, 0x90
_downcase_identifier:                   ## @downcase_identifier
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leal	1(%r14), %edi
	callq	_palloc
	movq	%rax, %r12
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_pg_database_encoding_max_length
	movq	%r14, %rdx
	movq	%r12, %rcx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	addb	$32, %r15b
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movb	%r15b, (%rcx,%r13)
	incq	%r13
	cmpq	%r13, %r14
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rsi,%r13), %r15d
	leal	-65(%r15), %eax
	cmpb	$25, %al
	jbe	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdx, %rbx
	movzbl	%r15b, %r12d
	movl	%r12d, %edi
	callq	_IS_HIGHBIT_SET
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_isupper
	testq	%rax, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	callq	_tolower
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_10:
	movl	%edx, %r15d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_11:
	movl	%r15d, %eax
	movb	$0, (%rcx,%rax)
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	movq	_NAMEDATALEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_truncate_identifier
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:
	movq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAMEDATALEN,4,2                ## @NAMEDATALEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_downcase_identifier            ; -- Begin function downcase_identifier
	.p2align	2
_downcase_identifier:                   ; @downcase_identifier
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	add	w0, w1, #1
	bl	_palloc
	mov	x20, x0
	bl	_pg_database_encoding_max_length
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x24, x0
	mov	w26, w21
	mov	x27, x20
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #32
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	strb	w25, [x27], #1
	add	x23, x23, #1
	subs	x26, x26, #1
	b.eq	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w25, [x23]
	sub	w8, w25, #65
	cmp	w8, #25
	b.ls	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w24, #1
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_IS_HIGHBIT_SET
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_isupper
	cbz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_tolower
	mov	x25, x0
	b	LBB0_3
LBB0_9:
	mov	w21, #0
LBB0_10:
	strb	wzr, [x20, w21, uxtw]
	cbz	w22, LBB0_13
; %bb.11:
Lloh0:
	adrp	x8, _NAMEDATALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAMEDATALEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w21, w8
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_truncate_identifier
LBB0_13:
	mov	x0, x20
	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	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAMEDATALEN,4,2                ; @NAMEDATALEN
.subsections_via_symbols
