	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_endian_specifier
_parse_endian_specifier:                ## @parse_endian_specifier
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncasecmp
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_strncasecmp
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movsbl	2(%rbx), %edi
	callq	_ISALNUM
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	addq	$2, %rbx
	cmpb	$95, (%rbx)
	jne	LBB0_5
LBB0_2:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	_inst@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, (%r14)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BE"

L_.str.1:                               ## @.str.1
	.asciz	"LE"

L_.str.2:                               ## @.str.2
	.asciz	"valid endian specifiers are be or le"

	.comm	_inst,8,3                       ## @inst
	.comm	_FAIL,4,2                       ## @FAIL
	.no_dead_strip	_parse_endian_specifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_endian_specifier
_parse_endian_specifier:                ; @parse_endian_specifier
	.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, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncasecmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #2
	bl	_strncasecmp
	cbz	x0, LBB0_6
; %bb.3:
	mov	w21, #1
LBB0_4:
	ldrsb	w0, [x20, #2]!
	bl	_ISALNUM
	cbnz	x0, LBB0_6
; %bb.5:
	ldrb	w8, [x20]
	cmp	w8, #95
	b.ne	LBB0_8
LBB0_6:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
Lloh6:
	adrp	x8, _inst@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inst@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
Lloh9:
	adrp	x8, _FAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	str	x20, [x19]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BE"

l_.str.1:                               ; @.str.1
	.asciz	"LE"

l_.str.2:                               ; @.str.2
	.asciz	"valid endian specifiers are be or le"

	.comm	_inst,8,3                       ; @inst
	.comm	_FAIL,4,2                       ; @FAIL
	.no_dead_strip	_parse_endian_specifier
.subsections_via_symbols
