	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function usd_to_seg_desc
LCPI0_0:
	.long	32                              ## 0x20
	.long	128                             ## 0x80
	.long	4096                            ## 0x1000
	.long	16384                           ## 0x4000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_usd_to_seg_desc:                       ## @usd_to_seg_desc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_USD_GETBASE
	movq	%rax, %r14
	movl	(%rbx), %r15d
	movq	%rbx, %rdi
	callq	_USD_GETLIMIT
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shll	$12, %ecx
	orl	$4095, %ecx                     ## imm = 0xFFF
	testl	%r15d, %r15d
	cmovnel	%ecx, %eax
	movdqu	8(%rbx), %xmm0
	pmulld	LCPI0_0(%rip), %xmm0
	movl	(%rbx), %ecx
	shll	$15, %ecx
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edx
	orl	%ecx, %edx
	orl	4(%rbx), %edx
	shlq	$32, %rax
	movl	%r14d, %ecx
	orq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_usd_to_seg_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function usd_to_seg_desc
lCPI0_0:
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	12                              ; 0xc
	.long	14                              ; 0xe
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_usd_to_seg_desc:                       ; @usd_to_seg_desc
	.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, x0
	bl	_USD_GETBASE
	mov	x20, x0
	ldr	w21, [x19]
	mov	x0, x19
	bl	_USD_GETLIMIT
	mov	w8, #4095
	bfi	w8, w0, #12, #20
	cmp	w21, #0
	csel	w8, w0, w8, eq
	ldur	q0, [x19, #8]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x9, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
	ldp	w10, w9, [x19]
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	orr	w11, w12, w11
	orr	w10, w11, w10, lsl #15
	orr	w1, w10, w9
	bfi	x20, x8, #32, #32
	mov	x0, x20
	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 AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_usd_to_seg_desc
.subsections_via_symbols
