	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_ar_obj
_process_ar_obj:                        ## @process_ar_obj
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-48(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	callq	_create_tempfile
	movl	-36(%rbp), %edi
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
	movq	8(%r15), %rax
LBB0_2:
	movq	_ELF_C_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ELF_F_LAYOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_elf_flagelf
	movq	%r15, %rdi
	callq	_create_elf
	movq	16(%r15), %rdi
	callq	_elf_end
	movq	8(%r15), %rdi
	callq	_elf_end
	movq	(%r14), %rdi
	callq	_free
	movq	$0, (%r14)
	movl	-36(%rbp), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_err
LBB0_4:
	movl	-36(%rbp), %edi
	movq	_ELF_C_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_elf_begin
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_errx
LBB0_6:
	movq	%r15, %rdi
	callq	_extract_arsym
	movq	8(%r15), %rdi
	callq	_elf_end
	movl	-36(%rbp), %edi
	leaq	-56(%rbp), %rsi
	callq	_fstat
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_err
LBB0_8:
	movl	-36(%rbp), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_lseek
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_10:
	movq	-56(%rbp), %rbx
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_err
	movq	8(%r14), %rbx
	movq	24(%r14), %rax
LBB0_12:
	movl	-36(%rbp), %edi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpq	8(%r14), %rax
	je	LBB0_14
## %bb.13:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_err
LBB0_14:
	movq	-48(%rbp), %rdi
	callq	_unlink
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_err
LBB0_16:
	movq	-48(%rbp), %rdi
	callq	_free
	movl	-36(%rbp), %edi
	callq	_close
	movl	16(%r14), %edi
	callq	_strlen
	movq	__MAXNAMELEN_SVR4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_18
## %bb.17:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	callq	_add_to_ar_str_table
LBB0_18:
	movq	__ARHDR_LEN@GOTPCREL(%rip), %rax
	movl	8(%r14), %ecx
	movl	(%rax), %eax
	addl	%ecx, %eax
	andl	$1, %ecx
	addl	%eax, %ecx
	addl	%ecx, 4(%r15)
	movq	_objs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_STAILQ_INSERT_TAIL
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_WRITE,4,2                ## @ELF_C_WRITE
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"elf_begin() failed: %s"

	.comm	_ELF_C_SET,4,2                  ## @ELF_C_SET
	.comm	_ELF_F_LAYOUT,4,2               ## @ELF_F_LAYOUT
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
L_.str.1:                               ## @.str.1
	.asciz	"lseek failed for '%s'"

	.comm	_ELF_C_READ,4,2                 ## @ELF_C_READ
L_.str.2:                               ## @.str.2
	.asciz	"fstat %s failed"

L_.str.3:                               ## @.str.3
	.asciz	"lseek %s failed"

L_.str.4:                               ## @.str.4
	.asciz	"memory allocation failed for '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"read failed for '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"unlink %s failed"

	.comm	__MAXNAMELEN_SVR4,8,3           ## @_MAXNAMELEN_SVR4
	.comm	__ARHDR_LEN,8,3                 ## @_ARHDR_LEN
	.comm	_objs,4,2                       ## @objs
	.no_dead_strip	_process_ar_obj
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_ar_obj
_process_ar_obj:                        ; @process_ar_obj
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_create_tempfile
	ldr	w0, [sp, #12]
Lloh0:
	adrp	x8, _ELF_C_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_elf_begin
	str	x0, [x20, #8]
Lloh3:
	adrp	x22, _EXIT_FAILURE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EXIT_FAILURE@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w21, [x22]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_errx
	ldr	x0, [x20, #8]
LBB0_2:
Lloh7:
	adrp	x8, _ELF_C_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ELF_C_SET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _ELF_F_LAYOUT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ELF_F_LAYOUT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_elf_flagelf
	mov	x0, x20
	bl	_create_elf
	ldr	x0, [x20, #16]
	bl	_elf_end
	ldr	x0, [x20, #8]
	bl	_elf_end
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
	ldr	w0, [sp, #12]
Lloh13:
	adrp	x23, _SEEK_SET@GOTPAGE
Lloh14:
	ldr	x23, [x23, _SEEK_SET@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_lseek
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
LBB0_4:
	ldr	w0, [sp, #12]
Lloh17:
	adrp	x8, _ELF_C_READ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ELF_C_READ@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_elf_begin
	str	x0, [x20, #8]
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w21, [x22]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_errx
LBB0_6:
	mov	x0, x20
	bl	_extract_arsym
	ldr	x0, [x20, #8]
	bl	_elf_end
	ldr	w0, [sp, #12]
	add	x1, sp, #24
	bl	_fstat
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_8:
	ldr	w0, [sp, #12]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_lseek
	tbz	x0, #63, LBB0_10
; %bb.9:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_10:
	ldr	x21, [sp, #24]
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.11:
	mov	x1, x0
	b	LBB0_13
LBB0_12:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
	ldr	x1, [x19, #24]
	ldr	x21, [x19, #8]
LBB0_13:
	ldr	w0, [sp, #12]
	mov	x2, x21
	bl	_read
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_15:
	ldr	x0, [sp, #16]
	bl	_unlink
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_17:
	ldr	x0, [sp, #16]
	bl	_free
	ldr	w0, [sp, #12]
	bl	_close
	ldr	w0, [x19, #16]
	bl	_strlen
Lloh32:
	adrp	x8, __MAXNAMELEN_SVR4@GOTPAGE
Lloh33:
	ldr	x8, [x8, __MAXNAMELEN_SVR4@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_19
; %bb.18:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_add_to_ar_str_table
LBB0_19:
Lloh35:
	adrp	x8, __ARHDR_LEN@GOTPAGE
Lloh36:
	ldr	x8, [x8, __ARHDR_LEN@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	and	w10, w9, #0x1
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
Lloh38:
	adrp	x8, _objs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _objs@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_STAILQ_INSERT_TAIL
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_WRITE,4,2                ; @ELF_C_WRITE
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"elf_begin() failed: %s"

	.comm	_ELF_C_SET,4,2                  ; @ELF_C_SET
	.comm	_ELF_F_LAYOUT,4,2               ; @ELF_F_LAYOUT
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
l_.str.1:                               ; @.str.1
	.asciz	"lseek failed for '%s'"

	.comm	_ELF_C_READ,4,2                 ; @ELF_C_READ
l_.str.2:                               ; @.str.2
	.asciz	"fstat %s failed"

l_.str.3:                               ; @.str.3
	.asciz	"lseek %s failed"

l_.str.4:                               ; @.str.4
	.asciz	"memory allocation failed for '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"read failed for '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"unlink %s failed"

	.comm	__MAXNAMELEN_SVR4,8,3           ; @_MAXNAMELEN_SVR4
	.comm	__ARHDR_LEN,8,3                 ; @_ARHDR_LEN
	.comm	_objs,4,2                       ; @objs
	.no_dead_strip	_process_ar_obj
.subsections_via_symbols
