	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_endianess
_set_endianess:                         ## @set_endianess
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rax
	movq	_def_target_arch@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_bfd_find_target
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal
LBB0_2:
	movq	(%rbx), %rax
	movq	_BFD_ENDIAN_BIG@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	_target_is_bigendian@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	movq	8(%rbx), %r15
	xorl	%eax, %eax
	callq	_bfd_arch_list
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	testq	%r15, %r15
	je	LBB0_12
## %bb.4:
	movq	%rax, %r12
	movq	%r15, %rdi
	movl	$45, %esi
	callq	_strchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%r15, %r14
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_12
## %bb.5:
	addq	$8, %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %r15
	addq	$8, %r12
	testq	%r15, %r15
	je	LBB0_12
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_strlen
	movzbl	(%rbx,%rax), %eax
	cmpq	%r15, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, -1(%rbx)
	je	LBB0_9
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, (%r13)
	je	LBB0_14
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
LBB0_10:
	movq	%r15, (%r13)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_def_target_arch,8,3            ## @def_target_arch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't detect target endianess and architecture."

	.comm	_BFD_ENDIAN_BIG,8,3             ## @BFD_ENDIAN_BIG
	.comm	_target_is_bigendian,4,2        ## @target_is_bigendian
L_.str.1:                               ## @.str.1
	.asciz	"Can't detect architecture."

	.no_dead_strip	_set_endianess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_endianess
_set_endianess:                         ; @set_endianess
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x8, x0
Lloh0:
	adrp	x22, _def_target_arch@GOTPAGE
Lloh1:
	ldr	x22, [x22, _def_target_arch@GOTPAGEOFF]
	str	xzr, [x22]
	mov	x0, x1
	mov	x1, x8
	bl	_bfd_find_target
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
LBB0_2:
Lloh4:
	adrp	x8, _BFD_ENDIAN_BIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BFD_ENDIAN_BIG@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	x9, x19, [x19]
	cmp	x9, x8
	cset	w8, eq
Lloh7:
	adrp	x9, _target_is_bigendian@GOTPAGE
Lloh8:
	ldr	x9, [x9, _target_is_bigendian@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
	bl	_bfd_arch_list
	cbz	x0, LBB0_12
; %bb.3:
	cbz	x19, LBB0_12
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #45
	bl	_strchr
	cmp	x0, #0
	csinc	x19, x19, x0, eq
	ldr	x20, [x21]
	cbz	x20, LBB0_12
; %bb.5:
	add	x23, x21, #8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w8, LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x20, [x23], #8
	cbz	x20, LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_strstr
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	ldrb	w8, [x21, x0]
	cmp	x21, x20
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldurb	w9, [x21, #-1]
	cmp	w9, #58
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_7
LBB0_11:
	str	x20, [x22]
	b	LBB0_13
LBB0_12:
	ldr	x8, [x22]
	cbz	x8, LBB0_14
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fatal
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_def_target_arch,8,3            ; @def_target_arch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't detect target endianess and architecture."

	.comm	_BFD_ENDIAN_BIG,8,3             ; @BFD_ENDIAN_BIG
	.comm	_target_is_bigendian,4,2        ; @target_is_bigendian
l_.str.1:                               ; @.str.1
	.asciz	"Can't detect architecture."

	.no_dead_strip	_set_endianess
.subsections_via_symbols
