	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_ar_get_translated_name ## -- Begin function _libelf_ar_get_translated_name
	.p2align	4, 0x90
__libelf_ar_get_translated_name:        ## @_libelf_ar_get_translated_name
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	movq	_ELF_K_AR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	ja	LBB0_2
## %bb.1:
	movslq	16(%r14), %rcx
	addq	%rcx, %rax
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	seta	%dil
LBB0_2:
	callq	_assert
	movq	(%rbx), %r15
	cmpb	$47, (%r15)
	jne	LBB0_15
## %bb.3:
	movb	1(%r15), %al
	addb	$-48, %al
	cmpb	$9, %al
	ja	LBB0_15
## %bb.4:
	incq	%r15
	leaq	-40(%rbp), %rcx
	movl	$7, %esi
	movq	%r15, %rdi
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	-40(%rbp), %rdx
	movq	24(%r14), %rcx
	cmpq	%rcx, %rdx
	ja	LBB0_5
## %bb.8:
	movq	32(%r14), %rax
	leaq	(%rax,%rdx), %r14
	movq	%r14, %rbx
	cmpq	%rcx, %rdx
	jge	LBB0_12
## %bb.9:
	addq	%rcx, %rax
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpb	$47, (%rbx)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jb	LBB0_10
LBB0_12:
	subq	%r14, %rbx
	leaq	1(%rbx), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_strncpy
	movb	$0, (%r12,%rbx)
	jmp	LBB0_40
LBB0_15:
	movq	%r15, %rdi
	callq	_IS_EXTENDED_BSD_NAME
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:
	movq	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	%rax, %r15
	movl	$8, %esi
	subq	%rax, %rsi
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_5
## %bb.19:
	movq	-40(%rbp), %r14
	leaq	1(%r14), %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.20:
	movq	%rax, %r12
	addq	$8, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strncpy
	movq	-40(%rbp), %rax
	movb	$0, (%r12,%rax)
	jmp	LBB0_40
LBB0_5:
	movq	_ARCHIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_16:
	movb	7(%r15), %al
	cmpb	$32, %al
	je	LBB0_21
## %bb.17:
	leaq	7(%r15), %r14
	cmpb	$47, %al
	je	LBB0_36
	jmp	LBB0_37
LBB0_21:
	leaq	6(%r15), %r14
	movb	6(%r15), %al
	cmpb	$47, %al
	je	LBB0_36
## %bb.22:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.23:
	leaq	5(%r15), %r14
	movb	5(%r15), %al
	cmpb	$47, %al
	je	LBB0_36
## %bb.24:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.25:
	leaq	4(%r15), %r14
	movb	4(%r15), %al
	cmpb	$47, %al
	je	LBB0_36
## %bb.26:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.27:
	leaq	3(%r15), %r14
	movb	3(%r15), %al
	cmpb	$47, %al
	je	LBB0_36
## %bb.28:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.29:
	leaq	2(%r15), %r14
	movb	2(%r15), %al
	cmpb	$47, %al
	je	LBB0_36
## %bb.30:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.31:
	leaq	1(%r15), %r14
	movb	1(%r15), %al
	cmpb	$47, %al
	je	LBB0_35
## %bb.32:
	cmpb	$32, %al
	jne	LBB0_37
## %bb.33:
	cmpb	$32, (%r15)
	movq	%r15, %r14
	jne	LBB0_37
## %bb.34:
	leaq	L_.str(%rip), %r15
	movl	$1, %r14d
	jmp	LBB0_38
LBB0_35:
	cmpb	$47, (%r15)
	je	LBB0_37
LBB0_36:
	decq	%r14
LBB0_37:
	subq	%r15, %r14
	addq	$2, %r14
LBB0_38:
	movq	%r14, -40(%rbp)
	movq	%r14, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.39:
	movq	%rax, %r12
	leaq	-1(%r14), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strncpy
	movb	$0, -1(%r12,%r14)
	jmp	LBB0_40
LBB0_13:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_40:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_AR,8,3                   ## @ELF_K_AR
	.comm	_ARCHIVE,4,2                    ## @ARCHIVE
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE,8,3 ## @LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_ar_get_translated_name ; -- Begin function _libelf_ar_get_translated_name
	.p2align	2
__libelf_ar_get_translated_name:        ; @_libelf_ar_get_translated_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ELF_K_AR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_AR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x21, #8]
	cmp	x8, x20
	b.ls	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldrsw	x9, [x21, #16]
	add	x8, x8, x9
	cmp	x8, x20
	cset	w0, hi
LBB0_3:
	bl	_assert
	ldr	x19, [x20]
	ldrb	w8, [x19]
	cmp	w8, #47
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x19
	ldrb	w8, [x0, #1]!
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_12
; %bb.5:
	add	x3, sp, #8
	mov	w1, #7
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_16
; %bb.6:
	ldr	x10, [sp, #8]
	ldr	x9, [x21, #24]
	cmp	x10, x9
	b.hi	LBB0_16
; %bb.7:
	ldr	x11, [x21, #32]
	add	x19, x11, x10
	mov	x8, x19
	cmp	x10, x9
	b.ge	LBB0_11
; %bb.8:
	add	x9, x11, x9
	mov	x8, x19
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8]
	cmp	w10, #47
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x8, #1
	cmp	x8, x9
	b.lo	LBB0_9
LBB0_11:
	sub	x20, x8, x19
	add	x0, x20, #1
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_38
	b	LBB0_39
LBB0_12:
	mov	x0, x19
	bl	_IS_EXTENDED_BSD_NAME
	cbz	x0, LBB0_17
; %bb.13:
Lloh3:
	adrp	x8, _LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x0, x19, x8
	mov	w9, #8
	sub	x1, x9, x8
	add	x3, sp, #8
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x19, [sp, #8]
	add	x0, x19, #1
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_39
; %bb.15:
	add	x1, x20, #8
	mov	x0, x21
	mov	x2, x19
	bl	_strncpy
	ldr	x8, [sp, #8]
	strb	wzr, [x21, x8]
	b	LBB0_40
LBB0_16:
Lloh6:
	adrp	x8, _ARCHIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x21, #0
	b	LBB0_40
LBB0_17:
	mov	x8, x19
	ldrb	w9, [x8, #7]!
	cmp	w9, #32
	b.eq	LBB0_19
; %bb.18:
	cmp	w9, #47
	b.eq	LBB0_34
	b	LBB0_35
LBB0_19:
	mov	x8, x19
	ldrb	w9, [x8, #6]!
	cmp	w9, #47
	b.eq	LBB0_34
; %bb.20:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.21:
	mov	x8, x19
	ldrb	w9, [x8, #5]!
	cmp	w9, #47
	b.eq	LBB0_34
; %bb.22:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.23:
	mov	x8, x19
	ldrb	w9, [x8, #4]!
	cmp	w9, #47
	b.eq	LBB0_34
; %bb.24:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.25:
	mov	x8, x19
	ldrb	w9, [x8, #3]!
	cmp	w9, #47
	b.eq	LBB0_34
; %bb.26:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.27:
	mov	x8, x19
	ldrb	w9, [x8, #2]!
	cmp	w9, #47
	b.eq	LBB0_34
; %bb.28:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.29:
	mov	x8, x19
	ldrb	w9, [x8, #1]!
	cmp	w9, #47
	b.eq	LBB0_33
; %bb.30:
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.31:
	ldrb	w9, [x19]
	mov	x8, x19
	cmp	w9, #32
	b.ne	LBB0_35
; %bb.32:
Lloh9:
	adrp	x19, l_.str@PAGE
Lloh10:
	add	x19, x19, l_.str@PAGEOFF
	mov	w20, #1
	b	LBB0_36
LBB0_33:
	ldrb	w9, [x19]
	cmp	w9, #47
	b.eq	LBB0_35
LBB0_34:
	sub	x8, x8, #1
LBB0_35:
	sub	x8, x8, x19
	add	x20, x8, #2
LBB0_36:
	str	x20, [sp, #8]
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_39
; %bb.37:
	sub	x20, x20, #1
LBB0_38:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_strncpy
	strb	wzr, [x21, x20]
	b	LBB0_40
LBB0_39:
Lloh11:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
LBB0_40:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_AR,8,3                   ; @ELF_K_AR
	.comm	_ARCHIVE,4,2                    ; @ARCHIVE
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE,8,3 ; @LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

.subsections_via_symbols
