	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_flagelf                    ## -- Begin function elf_flagelf
	.p2align	4, 0x90
_elf_flagelf:                           ## @elf_flagelf
	.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_1
## %bb.2:
	movl	%edx, %ebx
	movq	_ELF_C_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	je	LBB0_4
## %bb.3:
	movq	_ELF_C_CLR@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rcx)
	jne	LBB0_6
LBB0_4:
	movq	(%rdi), %rcx
	movq	_ELF_K_ELF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movq	_ELF_F_ARCHIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_ELF_F_ARCHIVE_SYSV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	movl	%r9d, %edx
	orl	%r8d, %edx
	movq	_ELF_F_DIRTY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ELF_F_LAYOUT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	testl	%ebx, %edx
	jne	LBB0_6
## %bb.8:
	testl	%ebx, %r9d
	je	LBB0_10
## %bb.9:
	movl	%r8d, %ecx
	andl	%ebx, %ecx
	jne	LBB0_10
LBB0_6:
	movq	_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_LIBELF_SET_ERROR
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_10:
	testl	%ebx, %r8d
	je	LBB0_13
## %bb.11:
	movq	8(%rdi), %rcx
	movq	_ELF_C_WRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
LBB0_13:
	cmpq	%rsi, %rax
	jne	LBB0_15
## %bb.14:
	orl	16(%rdi), %ebx
	jmp	LBB0_16
LBB0_12:
	movq	_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	notl	%ebx
	andl	16(%rdi), %ebx
LBB0_16:
	movl	%ebx, 16(%rdi)
	movq	_LIBELF_F_API_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_C_SET,8,3                  ## @ELF_C_SET
	.comm	_ELF_C_CLR,8,3                  ## @ELF_C_CLR
	.comm	_ELF_K_ELF,8,3                  ## @ELF_K_ELF
	.comm	_ELF_F_ARCHIVE,4,2              ## @ELF_F_ARCHIVE
	.comm	_ELF_F_ARCHIVE_SYSV,4,2         ## @ELF_F_ARCHIVE_SYSV
	.comm	_ELF_F_DIRTY,4,2                ## @ELF_F_DIRTY
	.comm	_ELF_F_LAYOUT,4,2               ## @ELF_F_LAYOUT
	.comm	_ARGUMENT,4,2                   ## @ARGUMENT
	.comm	_ELF_C_WRITE,8,3                ## @ELF_C_WRITE
	.comm	_MODE,4,2                       ## @MODE
	.comm	_LIBELF_F_API_MASK,4,2          ## @LIBELF_F_API_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_flagelf                    ; -- Begin function elf_flagelf
	.p2align	2
_elf_flagelf:                           ; @elf_flagelf
	.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_13
; %bb.1:
Lloh0:
	adrp	x8, _ELF_C_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_C_SET@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ELF_C_CLR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ELF_C_CLR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_9
; %bb.2:
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _ELF_K_ELF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ELF_K_ELF@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.3:
Lloh9:
	adrp	x9, _ELF_F_ARCHIVE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ELF_F_ARCHIVE@GOTPAGEOFF]
Lloh11:
	adrp	x10, _ELF_F_ARCHIVE_SYSV@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ELF_F_ARCHIVE_SYSV@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	orr	w11, w10, w9
Lloh15:
	adrp	x12, _ELF_F_DIRTY@GOTPAGE
Lloh16:
	ldr	x12, [x12, _ELF_F_DIRTY@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
	orr	w11, w11, w12
Lloh18:
	adrp	x12, _ELF_F_LAYOUT@GOTPAGE
Lloh19:
	ldr	x12, [x12, _ELF_F_LAYOUT@GOTPAGEOFF]
Lloh20:
	ldr	w12, [x12]
	orr	w11, w11, w12
	bics	wzr, w2, w11
	b.ne	LBB0_9
; %bb.4:
	and	w10, w10, w2
	and	w9, w9, w2
	cmp	w10, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_9
; %bb.5:
	cbz	w9, LBB0_7
; %bb.6:
	ldr	x9, [x0, #8]
Lloh21:
	adrp	x10, _ELF_C_WRITE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ELF_C_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_14
LBB0_7:
	cmp	x8, x1
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x0, #16]
	orr	w8, w8, w2
	b	LBB0_12
LBB0_9:
Lloh24:
	adrp	x8, _ARGUMENT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ARGUMENT@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_LIBELF_SET_ERROR
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w8, [x0, #16]
	bic	w8, w8, w2
LBB0_12:
	str	w8, [x0, #16]
Lloh26:
	adrp	x9, _LIBELF_F_API_MASK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LIBELF_F_API_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	and	w0, w9, w8
LBB0_13:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh29:
	adrp	x8, _MODE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MODE@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_C_SET,8,3                  ; @ELF_C_SET
	.comm	_ELF_C_CLR,8,3                  ; @ELF_C_CLR
	.comm	_ELF_K_ELF,8,3                  ; @ELF_K_ELF
	.comm	_ELF_F_ARCHIVE,4,2              ; @ELF_F_ARCHIVE
	.comm	_ELF_F_ARCHIVE_SYSV,4,2         ; @ELF_F_ARCHIVE_SYSV
	.comm	_ELF_F_DIRTY,4,2                ; @ELF_F_DIRTY
	.comm	_ELF_F_LAYOUT,4,2               ; @ELF_F_LAYOUT
	.comm	_ARGUMENT,4,2                   ; @ARGUMENT
	.comm	_ELF_C_WRITE,8,3                ; @ELF_C_WRITE
	.comm	_MODE,4,2                       ; @MODE
	.comm	_LIBELF_F_API_MASK,4,2          ; @LIBELF_F_API_MASK
.subsections_via_symbols
