	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function zr36060_set_sof
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	2                               ## 0x2
	.byte	3                               ## 0x3
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	4                               ## 0x4
	.byte	8                               ## 0x8
	.byte	12                              ## 0xc
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_2:
	.byte	0                               ## 0x0
	.byte	8                               ## 0x8
	.byte	1                               ## 0x1
	.byte	2                               ## 0x2
	.byte	10                              ## 0xa
	.byte	3                               ## 0x3
	.byte	4                               ## 0x4
	.byte	12                              ## 0xc
	.byte	5                               ## 0x5
	.byte	6                               ## 0x6
	.byte	14                              ## 0xe
	.byte	7                               ## 0x7
	.space	1
	.space	1
	.space	1
	.space	1
LCPI0_3:
	.byte	4                               ## 0x4
	.byte	4                               ## 0x4
	.byte	4                               ## 0x4
	.byte	4                               ## 0x4
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_zr36060_set_sof:                       ## @zr36060_set_sof
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	24(%rdi), %edx
	movl	(%rdi), %ecx
	movl	4(%rdi), %r8d
	movq	_NO_OF_COMPONENTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movw	$-16129, -80(%rbp)              ## imm = 0xC0FF
	movb	$0, -78(%rbp)
	movl	(%rbx), %r8d
	leal	(%r8,%r8,2), %eax
	addb	$8, %al
	movb	%al, -77(%rbp)
	movq	_BASELINE_PRECISION@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -76(%rbp)
	movzwl	4(%r14), %eax
	rolw	$8, %ax
	movw	%ax, -75(%rbp)
	movl	(%r14), %eax
	movb	%ah, -73(%rbp)
	movb	%al, -72(%rbp)
	movb	%r8b, -71(%rbp)
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.1:
	movq	8(%r14), %rcx
	movq	16(%r14), %rdx
	movq	_zr36060_tq@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpl	$4, %r8d
	jae	LBB0_3
## %bb.2:
	xorl	%edi, %edi
LBB0_9:
	leaq	(%rdi,%rdi,2), %rax
	addq	%rbp, %rax
	addq	$-68, %rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movb	%dil, -2(%rax)
	movl	(%rcx,%rdi,4), %ebx
	shll	$4, %ebx
	orl	(%rdx,%rdi,4), %ebx
	movb	%bl, -1(%rax)
	movzbl	(%rsi,%rdi), %ebx
	movb	%bl, (%rax)
	incq	%rdi
	addq	$3, %rax
	cmpq	%rdi, %r8
	jne	LBB0_10
LBB0_11:
	movq	_ZR060_SOF_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r8,%r8,2), %edx
	addl	$10, %edx
	leaq	-80(%rbp), %rcx
	movq	%r14, %rdi
	callq	_zr36060_pushit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-70(%rbp), %rbx
	leaq	(%r8,%r8,2), %rax
	leaq	(%rax,%rbp), %rdi
	addq	$-70, %rdi
	leaq	(%rcx,%r8,4), %rax
	leaq	(%rdx,%r8,4), %r9
	cmpq	%rax, %rbx
	setb	%r15b
	cmpq	%rcx, %rdi
	seta	%r12b
	leaq	(%rsi,%r8), %r11
	cmpq	%r9, %rbx
	setb	%al
	cmpq	%rdx, %rdi
	seta	%r10b
	cmpq	%r11, %rbx
	setb	%r9b
	cmpq	%rdi, %rsi
	setb	%r11b
	xorl	%edi, %edi
	testb	%r12b, %r15b
	jne	LBB0_9
## %bb.4:
	andb	%r10b, %al
	jne	LBB0_9
## %bb.5:
	andb	%r11b, %r9b
	jne	LBB0_9
## %bb.6:
	movl	%r8d, %edi
	andl	$-4, %edi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <0,1,2,3,u,u,u,u,u,u,u,u,u,u,u,u>
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <0,4,8,12,u,u,u,u,u,u,u,u,u,u,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <0,8,1,2,10,3,4,12,5,6,14,7,u,u,u,u>
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = <4,4,4,4,u,u,u,u,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rax,4), %xmm4
	pslld	$4, %xmm4
	movdqu	(%rdx,%rax,4), %xmm5
	por	%xmm4, %xmm5
	pshufb	%xmm1, %xmm5
	movd	(%rsi,%rax), %xmm4              ## xmm4 = mem[0],zero,zero,zero
	movdqa	%xmm0, %xmm6
	punpckldq	%xmm5, %xmm6            ## xmm6 = xmm6[0],xmm5[0],xmm6[1],xmm5[1]
	punpcklbw	%xmm4, %xmm6            ## xmm6 = xmm6[0],xmm4[0],xmm6[1],xmm4[1],xmm6[2],xmm4[2],xmm6[3],xmm4[3],xmm6[4],xmm4[4],xmm6[5],xmm4[5],xmm6[6],xmm4[6],xmm6[7],xmm4[7]
	pshufb	%xmm2, %xmm6
	pextrd	$2, %xmm6, 8(%rbx)
	movq	%xmm6, (%rbx)
	addq	$4, %rax
	paddb	%xmm3, %xmm0
	addq	$12, %rbx
	cmpq	%rax, %rdi
	jne	LBB0_7
## %bb.8:
	cmpq	%r8, %rdi
	jne	LBB0_9
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: write SOF (%dx%d, %d components)\n"

	.comm	_NO_OF_COMPONENTS,4,2           ## @NO_OF_COMPONENTS
	.comm	_BASELINE_PRECISION,1,0         ## @BASELINE_PRECISION
	.comm	_zr36060_tq,8,3                 ## @zr36060_tq
	.comm	_ZR060_SOF_IDX,4,2              ## @ZR060_SOF_IDX
	.no_dead_strip	_zr36060_set_sof
.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 zr36060_set_sof
lCPI0_0:
	.byte	0                               ; 0x0
	.byte	1                               ; 0x1
	.byte	2                               ; 0x2
	.byte	3                               ; 0x3
	.byte	4                               ; 0x4
	.byte	5                               ; 0x5
	.byte	6                               ; 0x6
	.byte	7                               ; 0x7
	.byte	8                               ; 0x8
	.byte	9                               ; 0x9
	.byte	10                              ; 0xa
	.byte	11                              ; 0xb
	.byte	12                              ; 0xc
	.byte	13                              ; 0xd
	.byte	14                              ; 0xe
	.byte	15                              ; 0xf
lCPI0_1:
	.byte	0                               ; 0x0
	.byte	4                               ; 0x4
	.byte	8                               ; 0x8
	.byte	12                              ; 0xc
	.byte	16                              ; 0x10
	.byte	20                              ; 0x14
	.byte	24                              ; 0x18
	.byte	28                              ; 0x1c
	.byte	32                              ; 0x20
	.byte	36                              ; 0x24
	.byte	40                              ; 0x28
	.byte	44                              ; 0x2c
	.byte	48                              ; 0x30
	.byte	52                              ; 0x34
	.byte	56                              ; 0x38
	.byte	60                              ; 0x3c
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_zr36060_set_sof:                       ; @zr36060_set_sof
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w2, [x0, #24]
	ldp	w3, w4, [x0]
Lloh3:
	adrp	x20, _NO_OF_COMPONENTS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NO_OF_COMPONENTS@GOTPAGEOFF]
	ldr	w5, [x20]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
	mov	w8, #49407
	strh	w8, [sp, #6]
	strb	wzr, [sp, #8]
	ldr	w8, [x20]
	add	w9, w8, w8, lsl #1
	add	w9, w9, #8
	strb	w9, [sp, #9]
Lloh7:
	adrp	x9, _BASELINE_PRECISION@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BASELINE_PRECISION@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [sp, #10]
	ldrh	w9, [x19, #4]
	rev	w9, w9
	lsr	w9, w9, #16
	sturh	w9, [sp, #11]
	ldr	w9, [x19]
	lsr	w10, w9, #8
	strb	w10, [sp, #13]
	strb	w9, [sp, #14]
	strb	w8, [sp, #15]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	ldp	x9, x10, [x19, #8]
Lloh9:
	adrp	x11, _zr36060_tq@GOTPAGE
Lloh10:
	ldr	x11, [x11, _zr36060_tq@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	w8, #16
	b.hs	LBB0_7
; %bb.2:
	mov	x12, #0
LBB0_3:
	add	x13, x12, x12, lsl #1
	add	x14, sp, #6
	add	x13, x13, x14
	add	x13, x13, #12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sturb	w12, [x13, #-2]
	lsl	x14, x12, #2
	ldr	w15, [x9, x14]
	ldr	w14, [x10, x14]
	orr	w14, w14, w15, lsl #4
	sturb	w14, [x13, #-1]
	ldrb	w14, [x11, x12]
	strb	w14, [x13], #3
	add	x12, x12, #1
	cmp	x8, x12
	b.ne	LBB0_4
LBB0_5:
Lloh12:
	adrp	x9, _ZR060_SOF_IDX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ZR060_SOF_IDX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	add	w8, w8, w8, lsl #1
	add	w2, w8, #10
	add	x3, sp, #6
	mov	x0, x19
	bl	_zr36060_pushit
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x12, #0
	add	x13, sp, #6
	add	x15, x13, #10
	add	x14, x8, x8, lsl #1
	add	x13, x14, x13
	add	x16, x13, #10
	lsl	x17, x8, #2
	add	x13, x10, x17
	cmp	x15, x13
	ccmp	x16, x10, #0, lo
	cset	w13, hi
	add	x14, x11, x8
	cmp	x15, x14
	ccmp	x11, x16, #2, lo
	cset	w14, lo
	cmp	x16, x9
	add	x16, x9, x17
	ccmp	x15, x16, #2, hi
	b.lo	LBB0_3
; %bb.8:
	tbnz	w13, #0, LBB0_3
; %bb.9:
	tbnz	w14, #0, LBB0_3
; %bb.10:
	and	x12, x8, #0xfffffff0
	add	x13, sp, #6
	add	x13, x13, #10
Lloh18:
	adrp	x14, lCPI0_0@PAGE
Lloh19:
	ldr	q0, [x14, lCPI0_0@PAGEOFF]
Lloh20:
	adrp	x14, lCPI0_1@PAGE
Lloh21:
	ldr	q3, [x14, lCPI0_1@PAGEOFF]
	movi.16b	v4, #16
	mov	x14, x12
	mov	x15, x11
	mov	x16, x10
	mov	x17, x9
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q6, q5, [x17, #32]
	ldp	q16, q7, [x17], #64
	shl.4s	v16, v16, #4
	shl.4s	v7, v7, #4
	shl.4s	v6, v6, #4
	shl.4s	v5, v5, #4
	ldp	q17, q18, [x16]
	ldp	q19, q20, [x16, #32]
	orr.16b	v23, v20, v5
	orr.16b	v22, v19, v6
	orr.16b	v21, v18, v7
	orr.16b	v20, v17, v16
	tbl.16b	v1, { v20, v21, v22, v23 }, v3
	ldr	q2, [x15], #16
	st3.16b	{ v0, v1, v2 }, [x13], #48
	add.16b	v0, v0, v4
	add	x16, x16, #64
	subs	x14, x14, #16
	b.ne	LBB0_11
; %bb.12:
	cmp	x12, x8
	b.ne	LBB0_3
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh20, Lloh21
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: write SOF (%dx%d, %d components)\n"

	.comm	_NO_OF_COMPONENTS,4,2           ; @NO_OF_COMPONENTS
	.comm	_BASELINE_PRECISION,1,0         ; @BASELINE_PRECISION
	.comm	_zr36060_tq,8,3                 ; @zr36060_tq
	.comm	_ZR060_SOF_IDX,4,2              ; @ZR060_SOF_IDX
	.no_dead_strip	_zr36060_set_sof
.subsections_via_symbols
