	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function element
_element:                               ## @element
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	xorl	%edi, %edi
	subq	%rsi, %r15
	seta	%dil
	callq	_assert
	cmpq	$4, %r15
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	jmp	LBB0_9
LBB0_2:
	movq	_REG_ULOCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_NOTE
	movq	_cnames@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.3:
	sarq	$2, %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r12), %rbx
	addq	$16, %r12
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	%r15, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_pg_char_and_wchar_strncmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.10:
	movl	(%r12), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CHR                            ## TAILCALL
LBB0_8:
	movq	_REG_ECOLLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ERR
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_ULOCALE,4,2                ## @REG_ULOCALE
	.comm	_cnames,8,3                     ## @cnames
	.comm	_REG_ECOLLATE,4,2               ## @REG_ECOLLATE
	.no_dead_strip	_element
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function element
_element:                               ; @element
	.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, x1
	subs	x20, x2, x1
	cset	w0, hi
	bl	_assert
	cmp	x20, #4
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	b	LBB0_10
LBB0_2:
Lloh0:
	adrp	x8, _REG_ULOCALE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_ULOCALE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_NOTE
Lloh3:
	adrp	x8, _cnames@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cnames@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	x21, [x22, #8]
	cbz	x21, LBB0_9
; %bb.3:
	asr	x20, x20, #2
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x22, #24]
	add	x22, x22, #16
	cbz	x21, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_strlen
	cmp	x0, x20
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_pg_char_and_wchar_strncmp
	cbnz	x0, LBB0_4
; %bb.7:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w0, [x22]
	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
	b	_CHR
LBB0_9:
Lloh6:
	adrp	x8, _REG_ECOLLATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_ECOLLATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_ERR
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_ULOCALE,4,2                ; @REG_ULOCALE
	.comm	_cnames,8,3                     ; @cnames
	.comm	_REG_ECOLLATE,4,2               ; @REG_ECOLLATE
	.no_dead_strip	_element
.subsections_via_symbols
