	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_opt_encoding
_dt_opt_encoding:                       ## @dt_opt_encoding
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	_EDT_BADOPTVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dt_set_errno                   ## TAILCALL
LBB0_2:
	movq	_DT_ENCODING_ASCII@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_DT_ENCODING_UTF8@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDT_BADOPTVAL,4,2              ## @EDT_BADOPTVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ascii"

	.comm	_DT_ENCODING_ASCII,4,2          ## @DT_ENCODING_ASCII
L_.str.1:                               ## @.str.1
	.asciz	"utf8"

	.comm	_DT_ENCODING_UTF8,4,2           ## @DT_ENCODING_UTF8
	.no_dead_strip	_dt_opt_encoding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_opt_encoding
_dt_opt_encoding:                       ; @dt_opt_encoding
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_5
LBB0_3:
Lloh4:
	adrp	x8, _EDT_BADOPTVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EDT_BADOPTVAL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dt_set_errno
LBB0_4:
Lloh7:
	adrp	x8, _DT_ENCODING_ASCII@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DT_ENCODING_ASCII@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _DT_ENCODING_UTF8@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DT_ENCODING_UTF8@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EDT_BADOPTVAL,4,2              ; @EDT_BADOPTVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ascii"

	.comm	_DT_ENCODING_ASCII,4,2          ; @DT_ENCODING_ASCII
l_.str.1:                               ; @.str.1
	.asciz	"utf8"

	.comm	_DT_ENCODING_UTF8,4,2           ; @DT_ENCODING_UTF8
	.no_dead_strip	_dt_opt_encoding
.subsections_via_symbols
