	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_segment_base                   ## -- Begin function segment_base
	.p2align	4, 0x90
_segment_base:                          ## @segment_base
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	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
	movl	%edi, %ebx
	leaq	-16(%rbp), %rdi
	callq	_kvm_get_gdt
	testb	$4, %bl
	jne	LBB0_4
## %bb.3:
	movq	-16(%rbp), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_kvm_read_ldt
	movl	%eax, %edi
	callq	_segment_base
LBB0_5:
	andl	$-8, %ebx
	movslq	%ebx, %rdi
	addq	%rax, %rdi
	callq	_get_desc_base
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_segment_base                   ; -- Begin function segment_base
	.p2align	2
_segment_base:                          ; @segment_base
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_3
; %bb.1:
	sub	sp, sp, #48
	.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_remember_state
	mov	x19, x0
	add	x0, sp, #8
	bl	_kvm_get_gdt
	tbnz	w19, #2, LBB0_4
; %bb.2:
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	mov	x0, #0
	ret
LBB0_4:
	.cfi_restore_state
	bl	_kvm_read_ldt
	bl	_segment_base
LBB0_5:
	and	w8, w19, #0xfffffff8
	add	x0, x0, w8, sxtw
	bl	_get_desc_base
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
