	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_cntl                       ## -- Begin function elf_cntl
	.p2align	4, 0x90
_elf_cntl:                              ## @elf_cntl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_ELF_C_FDDONE@GOTPCREL(%rip), %rcx
	movq	_ELF_C_FDREAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, (%rcx)
	je	LBB0_5
## %bb.2:
	cmpq	%rsi, %rax
	je	LBB0_5
LBB0_3:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, 16(%rdi)
	je	LBB0_7
## %bb.6:
	movq	_ARCHIVE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_7:
	cmpq	%rsi, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%rdi), %rcx
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.9:
	movq	_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movl	$-1, 8(%rdi)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_FDDONE,8,3               ## @ELF_C_FDDONE
	.comm	_ELF_C_FDREAD,8,3               ## @ELF_C_FDREAD
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ARCHIVE,4,2                    ## @ARCHIVE
	.comm	_ELF_C_WRITE,8,3                ## @ELF_C_WRITE
	.comm	_MODE,4,2                       ## @MODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_cntl                       ; -- Begin function elf_cntl
	.p2align	2
_elf_cntl:                              ; @elf_cntl
	.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
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _ELF_C_FDDONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_FDDONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _ELF_C_FDREAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ELF_C_FDREAD@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x1
	ccmp	x8, x1, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _ARCHIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	w8, #-1
LBB0_6:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	cmp	x8, x1
	b.ne	LBB0_10
; %bb.8:
	ldr	x8, [x0]
Lloh10:
	adrp	x9, _ELF_C_WRITE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ELF_C_WRITE@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
Lloh13:
	adrp	x8, _MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MODE@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	mov	w8, #0
	mov	w9, #-1
	str	w9, [x0, #8]
	b	LBB0_6
LBB0_11:
	mov	w8, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_FDDONE,8,3               ; @ELF_C_FDDONE
	.comm	_ELF_C_FDREAD,8,3               ; @ELF_C_FDREAD
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ARCHIVE,4,2                    ; @ARCHIVE
	.comm	_ELF_C_WRITE,8,3                ; @ELF_C_WRITE
	.comm	_MODE,4,2                       ; @MODE
.subsections_via_symbols
