	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function display_selector
_display_selector:                      ## @display_selector
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	leaq	-72(%rbp), %rdx
	callq	_GetThreadSelectorEntry
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
	cmpl	$0, -24(%rbp)
	je	LBB0_2
## %bb.3:
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %esi
	shll	$24, %eax
	shll	$16, %esi
	addl	%eax, %esi
	addl	-72(%rbp), %esi
	movl	-56(%rbp), %eax
	shll	$16, %eax
	addl	-68(%rbp), %eax
	movl	%eax, %edx
	shll	$12, %edx
	orl	$4095, %edx                     ## imm = 0xFFF
	cmpq	$0, -40(%rbp)
	cmovel	%eax, %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	cmpq	$0, -32(%rbp)
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_puts_filtered
	movl	-52(%rbp), %eax
	andl	$14, %eax
	leaq	l_reltable.display_selector(%rip), %rcx
	movslq	(%rcx,%rax,2), %rdi
	addq	%rcx, %rdi
	callq	_puts_filtered
	testb	$1, -52(%rbp)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.14(%rip), %rdi
	callq	_puts_filtered
LBB0_5:
	leaq	L_.str.15(%rip), %rdi
	callq	_puts_filtered
	testb	$16, -52(%rbp)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.16(%rip), %rdi
	callq	_puts_filtered
LBB0_7:
	movl	-48(%rbp), %esi
	leaq	L_.str.17(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	cmpq	$0, -40(%rbp)
	je	LBB0_10
## %bb.8:
	leaq	L_.str.18(%rip), %rdi
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.20(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_puts_filtered
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str.19(%rip), %rdi
LBB0_9:
	callq	_puts_filtered
	movl	$1, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%03lx: "

L_.str.1:                               ## @.str.1
	.asciz	"Segment not present\n"

L_.str.2:                               ## @.str.2
	.asciz	"base=0x%08x limit=0x%08x"

L_.str.3:                               ## @.str.3
	.asciz	" 32-bit "

L_.str.4:                               ## @.str.4
	.asciz	" 16-bit "

L_.str.5:                               ## @.str.5
	.asciz	"Data (Read-Only, Exp-up"

L_.str.6:                               ## @.str.6
	.asciz	"Data (Read/Write, Exp-up"

L_.str.7:                               ## @.str.7
	.asciz	"Unused segment ("

L_.str.8:                               ## @.str.8
	.asciz	"Data (Read/Write, Exp-down"

L_.str.9:                               ## @.str.9
	.asciz	"Code (Exec-Only, N.Conf"

L_.str.10:                              ## @.str.10
	.asciz	"Code (Exec/Read, N.Conf"

L_.str.11:                              ## @.str.11
	.asciz	"Code (Exec-Only, Conf"

L_.str.12:                              ## @.str.12
	.asciz	"Code (Exec/Read, Conf"

L_.str.14:                              ## @.str.14
	.asciz	", N.Acc"

L_.str.15:                              ## @.str.15
	.asciz	")\n"

L_.str.16:                              ## @.str.16
	.asciz	"System selector "

L_.str.17:                              ## @.str.17
	.asciz	"Priviledge level = %d. "

L_.str.18:                              ## @.str.18
	.asciz	"Page granular.\n"

L_.str.19:                              ## @.str.19
	.asciz	"Byte granular.\n"

L_.str.20:                              ## @.str.20
	.asciz	"Invalid selector 0x%lx.\n"

	.no_dead_strip	_display_selector
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.display_selector
l_reltable.display_selector:
	.long	L_.str.5-l_reltable.display_selector
	.long	L_.str.6-l_reltable.display_selector
	.long	L_.str.7-l_reltable.display_selector
	.long	L_.str.8-l_reltable.display_selector
	.long	L_.str.9-l_reltable.display_selector
	.long	L_.str.10-l_reltable.display_selector
	.long	L_.str.11-l_reltable.display_selector
	.long	L_.str.12-l_reltable.display_selector

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function display_selector
_display_selector:                      ; @display_selector
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	add	x2, sp, #8
	bl	_GetThreadSelectorEntry
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf_filtered
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_9
; %bb.2:
	ldp	w8, w9, [sp, #16]
	lsl	w9, w9, #16
	add	w8, w9, w8, lsl #24
	ldp	w9, w10, [sp, #8]
	add	w1, w8, w9
	ldr	w8, [sp, #24]
	add	w8, w10, w8, lsl #16
	ldr	x9, [sp, #40]
	mov	w10, #4095
	bfi	w10, w8, #12, #20
	cmp	x9, #0
	csel	w8, w8, w10, eq
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_filtered
	ldr	x8, [sp, #48]
Lloh4:
	adrp	x9, l_.str.3@PAGE
Lloh5:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh6:
	adrp	x10, l_.str.4@PAGE
Lloh7:
	add	x10, x10, l_.str.4@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_puts_filtered
	ldr	w8, [sp, #28]
	ubfx	x8, x8, #1, #3
Lloh8:
	adrp	x9, l_switch.table.display_selector@PAGE
Lloh9:
	add	x9, x9, l_switch.table.display_selector@PAGEOFF
	ldr	x0, [x9, x8, lsl #3]
	bl	_puts_filtered
	ldrb	w8, [sp, #28]
	tbnz	w8, #0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x0, l_.str.14@PAGE
Lloh11:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_puts_filtered
LBB0_4:
Lloh12:
	adrp	x0, l_.str.15@PAGE
Lloh13:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_puts_filtered
	ldrb	w8, [sp, #28]
	tbnz	w8, #4, LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.16@PAGE
Lloh15:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_puts_filtered
LBB0_6:
	ldr	w1, [sp, #32]
Lloh16:
	adrp	x0, l_.str.17@PAGE
Lloh17:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_printf_filtered
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_11
; %bb.7:
Lloh18:
	adrp	x0, l_.str.18@PAGE
Lloh19:
	add	x0, x0, l_.str.18@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x0, l_.str.20@PAGE
Lloh21:
	add	x0, x0, l_.str.20@PAGEOFF
	mov	x1, x19
	bl	_printf_filtered
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts_filtered
LBB0_10:
	mov	w0, #0
	b	LBB0_13
LBB0_11:
Lloh24:
	adrp	x0, l_.str.19@PAGE
Lloh25:
	add	x0, x0, l_.str.19@PAGEOFF
LBB0_12:
	bl	_puts_filtered
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%03lx: "

l_.str.1:                               ; @.str.1
	.asciz	"Segment not present\n"

l_.str.2:                               ; @.str.2
	.asciz	"base=0x%08x limit=0x%08x"

l_.str.3:                               ; @.str.3
	.asciz	" 32-bit "

l_.str.4:                               ; @.str.4
	.asciz	" 16-bit "

l_.str.5:                               ; @.str.5
	.asciz	"Data (Read-Only, Exp-up"

l_.str.6:                               ; @.str.6
	.asciz	"Data (Read/Write, Exp-up"

l_.str.7:                               ; @.str.7
	.asciz	"Unused segment ("

l_.str.8:                               ; @.str.8
	.asciz	"Data (Read/Write, Exp-down"

l_.str.9:                               ; @.str.9
	.asciz	"Code (Exec-Only, N.Conf"

l_.str.10:                              ; @.str.10
	.asciz	"Code (Exec/Read, N.Conf"

l_.str.11:                              ; @.str.11
	.asciz	"Code (Exec-Only, Conf"

l_.str.12:                              ; @.str.12
	.asciz	"Code (Exec/Read, Conf"

l_.str.14:                              ; @.str.14
	.asciz	", N.Acc"

l_.str.15:                              ; @.str.15
	.asciz	")\n"

l_.str.16:                              ; @.str.16
	.asciz	"System selector "

l_.str.17:                              ; @.str.17
	.asciz	"Priviledge level = %d. "

l_.str.18:                              ; @.str.18
	.asciz	"Page granular.\n"

l_.str.19:                              ; @.str.19
	.asciz	"Byte granular.\n"

l_.str.20:                              ; @.str.20
	.asciz	"Invalid selector 0x%lx.\n"

	.no_dead_strip	_display_selector
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.display_selector
l_switch.table.display_selector:
	.quad	l_.str.5
	.quad	l_.str.6
	.quad	l_.str.7
	.quad	l_.str.8
	.quad	l_.str.9
	.quad	l_.str.10
	.quad	l_.str.11
	.quad	l_.str.12

.subsections_via_symbols
