	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef_seg_read_string
_ef_seg_read_string:                    ## @ef_seg_read_string
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_ef_get_offset
	movq	%rax, %rcx
	incq	%rcx
	cmpq	$1, %rcx
	ja	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.2:
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_warnx
	jmp	LBB0_6
LBB0_3:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_pread
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strnlen
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%r15, %rcx
	jne	LBB0_8
LBB0_6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ef_seg_read_string(%s): bad offset (%jx:%ju)"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_ef_seg_read_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ef_seg_read_string
_ef_seg_read_string:                    ; @ef_seg_read_string
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ef_get_offset
	mov	x3, x0
	add	x8, x0, #1
	cmp	x8, #1
	b.hi	LBB0_4
; %bb.1:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x22, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_warnx
LBB0_3:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x22]
	mov	x1, x20
	mov	x2, x19
	bl	_pread
	tbnz	x0, #63, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_strnlen
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	x0, x19
	csel	w0, w8, wzr, eq
	b	LBB0_8
LBB0_6:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ef_seg_read_string(%s): bad offset (%jx:%ju)"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_ef_seg_read_string
.subsections_via_symbols
