	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function gsc_dst_get_buf_seq
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gsc_dst_get_buf_seq:                   ## @gsc_dst_get_buf_seq
	.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, %r14
	movq	_GSC_REG_SZ@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_GSC_OUT_BASE_ADDR_Y_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gsc_read
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	xorl	%edx, %edx
	cmpl	$8, %ecx
	jb	LBB0_9
## %bb.2:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%ebx, %xmm0
	movd	%eax, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:
	movl	%esi, %edi
	andl	$-2, %edi
	pxor	%xmm12, %xmm12
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm6            ## xmm6 = [1065353216,1065353216,1065353216,1065353216]
	pcmpeqd	%xmm7, %xmm7
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm3, %xmm5
	paddd	%xmm8, %xmm5
	movdqa	%xmm3, %xmm4
	pslld	$23, %xmm4
	paddd	%xmm6, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pslld	$23, %xmm5
	paddd	%xmm6, %xmm5
	cvttps2dq	%xmm5, %xmm5
	pand	%xmm1, %xmm4
	pand	%xmm1, %xmm5
	pcmpeqd	%xmm12, %xmm4
	pxor	%xmm7, %xmm4
	paddd	%xmm0, %xmm4
	pcmpeqd	%xmm12, %xmm5
	pxor	%xmm7, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm3, %xmm0
	paddd	%xmm9, %xmm0
	movdqa	%xmm3, %xmm2
	paddd	%xmm10, %xmm2
	pslld	$23, %xmm0
	paddd	%xmm6, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pslld	$23, %xmm2
	paddd	%xmm6, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pand	%xmm1, %xmm0
	pand	%xmm1, %xmm2
	pcmpeqd	%xmm12, %xmm0
	pxor	%xmm7, %xmm0
	paddd	%xmm4, %xmm0
	pcmpeqd	%xmm12, %xmm2
	pxor	%xmm7, %xmm2
	paddd	%xmm5, %xmm2
	paddd	%xmm11, %xmm3
	addl	$-2, %edi
	jne	LBB0_5
## %bb.6:
	testb	$1, %sil
	je	LBB0_8
LBB0_7:
	movdqa	LCPI0_1(%rip), %xmm4            ## xmm4 = [4,4,4,4]
	paddd	%xmm3, %xmm4
	pslld	$23, %xmm3
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm5, %xmm3
	cvttps2dq	%xmm3, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm5, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pand	%xmm1, %xmm3
	pand	%xmm1, %xmm4
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm1, %xmm3
	pcmpeqd	%xmm5, %xmm5
	pxor	%xmm5, %xmm3
	paddd	%xmm3, %xmm0
	pcmpeqd	%xmm1, %xmm4
	pxor	%xmm5, %xmm4
	paddd	%xmm4, %xmm2
LBB0_8:
	paddd	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	jmp	LBB0_10
LBB0_3:
	pxor	%xmm2, %xmm2
	movdqa	LCPI0_0(%rip), %xmm3            ## xmm3 = [0,1,2,3]
	testb	$1, %sil
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	btl	%edx, %eax
	sbbl	$0, %ebx
	incl	%edx
LBB0_10:
	cmpl	%edx, %ecx
	jne	LBB0_9
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_DRM_DEV_DEBUG_KMS
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GSC_REG_SZ,4,2                 ## @GSC_REG_SZ
	.comm	_GSC_OUT_BASE_ADDR_Y_MASK,4,2   ## @GSC_OUT_BASE_ADDR_Y_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buf_num[%d]\n"

	.no_dead_strip	_gsc_dst_get_buf_seq
.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 gsc_dst_get_buf_seq
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gsc_dst_get_buf_seq:                   ; @gsc_dst_get_buf_seq
	.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
Lloh0:
	adrp	x21, _GSC_REG_SZ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GSC_REG_SZ@GOTPAGEOFF]
	ldr	w20, [x21]
Lloh2:
	adrp	x8, _GSC_OUT_BASE_ADDR_Y_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GSC_OUT_BASE_ADDR_Y_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_gsc_read
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	w9, #0
	b	LBB0_6
LBB0_3:
	and	w9, w8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w20
	dup.4s	v2, w0
	movi.4s	v3, #4
Lloh5:
	adrp	x10, lCPI0_0@PAGE
Lloh6:
	ldr	q4, [x10, lCPI0_0@PAGEOFF]
	movi.4s	v5, #8
	movi.4s	v6, #12
	movi.4s	v7, #1
	movi.4s	v16, #16
	mov	x10, x9
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v4, v3
	add.4s	v20, v4, v5
	add.4s	v21, v4, v6
	ushl.4s	v22, v7, v4
	ushl.4s	v19, v7, v19
	ushl.4s	v20, v7, v20
	ushl.4s	v21, v7, v21
	cmtst.4s	v22, v22, v2
	cmtst.4s	v19, v19, v2
	cmtst.4s	v20, v20, v2
	cmtst.4s	v21, v21, v2
	add.4s	v1, v1, v22
	add.4s	v0, v0, v19
	add.4s	v17, v17, v20
	add.4s	v18, v18, v21
	add.4s	v4, v4, v16
	subs	w10, w10, #16
	b.ne	LBB0_4
; %bb.5:
	add.4s	v0, v0, v1
	add.4s	v0, v17, v0
	add.4s	v0, v18, v0
	addv.4s	s0, v0
	fmov	w20, s0
	b	LBB0_7
LBB0_6:
	lsr	w10, w0, w9
	and	w10, w10, #0x1
	sub	w20, w20, w10
	add	w9, w9, #1
LBB0_7:
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_8:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DRM_DEV_DEBUG_KMS
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GSC_REG_SZ,4,2                 ; @GSC_REG_SZ
	.comm	_GSC_OUT_BASE_ADDR_Y_MASK,4,2   ; @GSC_OUT_BASE_ADDR_Y_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buf_num[%d]\n"

	.no_dead_strip	_gsc_dst_get_buf_seq
.subsections_via_symbols
