	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_rand                       ## -- Begin function elf_rand
	.p2align	4, 0x90
_elf_rand:                              ## @elf_rand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movl	%esi, %ebx
	testb	$1, %bl
	jne	LBB0_5
## %bb.2:
	movq	_ELF_K_AR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rdi)
	jne	LBB0_5
## %bb.3:
	movq	_SARMAG@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_5
## %bb.4:
	movslq	%ebx, %rax
	leaq	8(%rax), %rcx
	cmpq	8(%rdi), %rcx
	jae	LBB0_5
## %bb.7:
	movq	24(%rdi), %rcx
	movq	(%rcx,%rax), %rax
	cmpb	$96, (%rax)
	jne	LBB0_9
## %bb.8:
	cmpb	$10, 1(%rax)
	jne	LBB0_9
## %bb.10:
	movl	%ebx, 16(%rdi)
	jmp	LBB0_11
LBB0_5:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_9:
	movq	_ARCHIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_K_AR,8,3                   ## @ELF_K_AR
	.comm	_SARMAG,4,2                     ## @SARMAG
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ARCHIVE,4,2                    ## @ARCHIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_rand                       ; -- Begin function elf_rand
	.p2align	2
_elf_rand:                              ; @elf_rand
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_7
; %bb.1:
	tbnz	w1, #0, LBB0_7
; %bb.2:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ELF_K_AR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELF_K_AR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SARMAG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SARMAG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	ccmp	w10, w1, #0, eq
	b.gt	LBB0_7
; %bb.3:
	sxtw	x8, w1
	add	x9, x8, #8
	ldr	x10, [x0, #8]
	cmp	x9, x10
	b.hs	LBB0_7
; %bb.4:
	ldr	x9, [x0, #24]
	ldr	x8, [x9, x8]
	ldrb	w9, [x8]
	cmp	w9, #96
	b.ne	LBB0_10
; %bb.5:
	ldrb	w8, [x8, #1]
	cmp	w8, #10
	b.ne	LBB0_10
; %bb.6:
	str	w1, [x0, #16]
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	w1, #0
LBB0_9:
	mov	x0, x1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh8:
	adrp	x8, _ARCHIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_K_AR,8,3                   ; @ELF_K_AR
	.comm	_SARMAG,4,2                     ; @SARMAG
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ARCHIVE,4,2                    ; @ARCHIVE
.subsections_via_symbols
