	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ef_obj_seg_read_string
_ef_obj_seg_read_string:                ## @ef_obj_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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	subq	%rsi, %rax
	jle	LBB0_1
## %bb.4:
	movq	%rcx, %r12
	movq	%rdx, %rbx
	cmpq	%rdx, %rax
	cmovbq	%rax, %rbx
	movq	8(%r15), %rdi
	addq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strnlen
	cmpq	%rbx, %rax
	je	LBB0_3
## %bb.5:
	addq	8(%r15), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	cmpq	$0, 24(%r15)
	je	LBB0_3
## %bb.2:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	callq	_warnx
LBB0_3:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	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_obj_seg_read_string(%s): bad offset (%lx)"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ef_obj_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_obj_seg_read_string
_ef_obj_seg_read_string:                ; @ef_obj_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	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	subs	x8, x8, x1
	b.le	LBB0_3
; %bb.1:
	mov	x20, x3
	cmp	x8, x2
	csel	x22, x8, x2, lo
	ldr	x8, [x21, #8]
	add	x0, x8, x19
	mov	x1, x22
	bl	_strnlen
	cmp	x0, x22
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	add	x1, x8, x19
	mov	x0, x20
	mov	x2, x22
	bl	_memcpy
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w1, [x21, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	bl	_warnx
LBB0_5:
Lloh2:
	adrp	x8, _EFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_6:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ef_obj_seg_read_string(%s): bad offset (%lx)"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ef_obj_seg_read_string
.subsections_via_symbols
