	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_ar_gethdr              ## -- Begin function _libelf_ar_gethdr
	.p2align	4, 0x90
__libelf_ar_gethdr:                     ## @_libelf_ar_gethdr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	_LIBELF_F_AR_HEADER@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%edi, %edi
	andl	(%r15), %eax
	sete	%dil
	callq	_assert
	movq	16(%r15), %r14
	movq	_SARMAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	32(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setbe	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movq	32(%rbx), %rcx
	addq	%rcx, %rax
	addq	$-40, %rax
	xorl	%edi, %edi
	cmpq	%r14, %rax
	setae	%dil
	callq	_assert
	movl	$56, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%rax, 24(%r15)
	movl	(%r13), %eax
	orl	%eax, (%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	__libelf_ar_get_translated_name
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	(%r14), %rdi
	leaq	-48(%rbp), %rcx
	movl	$8, %esi
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.7:
	movq	-48(%rbp), %rax
	movq	%rax, 48(%r12)
	movq	8(%r14), %rdi
	leaq	-48(%rbp), %rcx
	movl	$8, %esi
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	-48(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	16(%r14), %rdi
	leaq	-48(%rbp), %rcx
	movl	$8, %esi
	movl	$8, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	24(%r14), %rdi
	leaq	-48(%rbp), %rcx
	movl	$8, %esi
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.10:
	movq	32(%r14), %rdi
	callq	_IS_EXTENDED_BSD_NAME
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	movl	$8, %esi
	subl	%edi, %esi
	addq	32(%r14), %rdi
	leaq	-56(%rbp), %rcx
	movl	$10, %edx
	callq	__libelf_ar_get_number
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	-48(%rbp), %rax
	subq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_14
LBB0_1:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_RESOURCE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	jmp	LBB0_21
LBB0_11:
	movq	-48(%rbp), %rax
LBB0_14:
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	__libelf_ar_get_raw_name
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	$0, 24(%r12)
	jmp	LBB0_21
LBB0_16:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_free
LBB0_18:
	movq	%r12, %rax
	addq	$8, %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_free
LBB0_20:
	movq	%r12, %rdi
	callq	_free
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	%r14, 16(%r15)
	xorl	%r12d, %r12d
LBB0_21:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_LIBELF_F_AR_HEADER,4,2         ## @LIBELF_F_AR_HEADER
	.comm	_SARMAG,8,3                     ## @SARMAG
	.comm	_RESOURCE,4,2                   ## @RESOURCE
	.comm	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE,4,2 ## @LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__libelf_ar_gethdr              ; -- Begin function _libelf_ar_gethdr
	.p2align	2
__libelf_ar_gethdr:                     ; @_libelf_ar_gethdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x22, [x0, #40]
	cbz	x22, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x23, _LIBELF_F_AR_HEADER@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LIBELF_F_AR_HEADER@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	x20, [x19, #16]
	ldr	x8, [x22, #32]
Lloh2:
	adrp	x9, _SARMAG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SARMAG@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x9, x8
	cmp	x8, x20
	cset	w0, ls
	bl	_assert
	ldr	x8, [x22, #32]
	ldr	x9, [x22, #8]
	add	x8, x8, x9
	sub	x8, x8, #40
	cmp	x8, x20
	cset	w0, hs
	bl	_assert
	mov	w0, #56
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.2:
	str	x21, [x19, #24]
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x24, x21
	stp	xzr, xzr, [x24, #8]!
	mov	x0, x20
	mov	x1, x22
	bl	__libelf_ar_get_translated_name
	str	x0, [x24, #8]
	cbz	x0, LBB0_17
; %bb.3:
	ldr	x0, [x20]
	add	x3, sp, #8
	mov	w1, #8
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_15
; %bb.4:
	ldr	x8, [sp, #8]
	str	x8, [x21, #48]
	ldr	x0, [x20, #8]
	add	x3, sp, #8
	mov	w1, #8
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_15
; %bb.5:
	ldr	x8, [sp, #8]
	str	x8, [x21, #40]
	ldr	x0, [x20, #16]
	add	x3, sp, #8
	mov	w1, #8
	mov	w2, #8
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_15
; %bb.6:
	ldr	x8, [sp, #8]
	str	x8, [x21, #32]
	ldr	x0, [x20, #24]
	add	x3, sp, #8
	mov	w1, #8
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_15
; %bb.7:
	ldr	x0, [x20, #32]
	bl	_IS_EXTENDED_BSD_NAME
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x8, [x20, #32]
Lloh5:
	adrp	x9, _LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE@GOTPAGEOFF]
Lloh7:
	ldrsw	x9, [x9]
	add	x0, x8, x9
	mov	w8, #8
	sub	w1, w8, w9
	mov	x3, sp
	mov	w2, #10
	bl	__libelf_ar_get_number
	cbz	x0, LBB0_15
; %bb.9:
	ldp	x8, x9, [sp]
	sub	x8, x9, x8
	str	x8, [sp, #8]
	b	LBB0_13
LBB0_10:
Lloh8:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	x21, #0
	b	LBB0_20
LBB0_11:
Lloh11:
	adrp	x8, _RESOURCE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESOURCE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	b	LBB0_20
LBB0_12:
	ldr	x8, [sp, #8]
LBB0_13:
	str	x8, [x21]
	mov	x0, x20
	bl	__libelf_ar_get_raw_name
	str	x0, [x21, #8]
	cbz	x0, LBB0_15
; %bb.14:
	str	xzr, [x21, #24]
	b	LBB0_20
LBB0_15:
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_free
LBB0_17:
	ldr	x0, [x24]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_free
LBB0_19:
	mov	x0, x21
	bl	_free
	mov	x21, #0
	ldr	w8, [x23]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	str	x20, [x19, #16]
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_LIBELF_F_AR_HEADER,4,2         ; @LIBELF_F_AR_HEADER
	.comm	_SARMAG,8,3                     ; @SARMAG
	.comm	_RESOURCE,4,2                   ; @RESOURCE
	.comm	_LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE,4,2 ; @LIBELF_AR_BSD_EXTENDED_NAME_PREFIX_SIZE
.subsections_via_symbols
