	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function format_to_vec4
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_format_to_vec4:                        ## @format_to_vec4
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %edi
	callq	_float_16_to_32
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	_format_to_vec4.component_offsets(%rip), %rax
	movl	(%r12,%rax), %eax
	movss	%xmm0, (%r15,%rax,4)
	addq	$4, %r12
	cmpq	$16, %r12
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r12), %eax
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ecx
	negb	%cl
	movl	$-1, %r14d
	shrl	%cl, %r14d
	movq	8(%r13), %rcx
	movl	(%rcx,%r12), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	movl	%edx, %esi
	sarl	$3, %esi
	movslq	%esi, %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rsi,4), %rbx
	andl	$-8, %edx
	subl	%edx, %ecx
	leal	(%rax,%rcx), %edx
	addl	$7, %edx
	leal	(%rax,%rcx), %esi
	addl	$14, %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$3, %esi
	movl	$4, %edi
	callq	_min
	leaq	-44(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	16(%r13), %rax
	movq	_FORMAT_ARGBF16@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_FORMAT_ARGBF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movss	-44(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax
	movq	8(%r13), %rcx
	movzbl	(%rcx,%r12), %ecx
	andb	$7, %cl
	sarl	%cl, %eax
	andl	%r14d, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r14d, %xmm1
	divss	%xmm1, %xmm0
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @format_to_vec4.component_offsets
_format_to_vec4.component_offsets:
	.long	3                               ## 0x3
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2

	.comm	_FORMAT_ARGBF16,8,3             ## @FORMAT_ARGBF16
	.comm	_FORMAT_ARGBF,8,3               ## @FORMAT_ARGBF
	.no_dead_strip	_format_to_vec4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_to_vec4
_format_to_vec4:                        ; @format_to_vec4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x23, #0
	mov	w24, #-1
Lloh0:
	adrp	x25, _FORMAT_ARGBF16@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FORMAT_ARGBF16@GOTPAGEOFF]
Lloh2:
	adrp	x26, _FORMAT_ARGBF@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FORMAT_ARGBF@GOTPAGEOFF]
Lloh4:
	adrp	x27, _format_to_vec4.component_offsets@PAGE
Lloh5:
	add	x27, x27, _format_to_vec4.component_offsets@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	fmov	s0, #1.00000000
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27, x23]
	str	s0, [x19, x8, lsl #2]
	add	x23, x23, #4
	cmp	x23, #16
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w28, [x8, x23]
	cbz	w28, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x23]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #3
	add	x22, x20, w10, sxtw #2
	and	w9, w9, #0xfffffff8
	sub	w8, w8, w9
	add	w8, w28, w8
	add	w9, w8, #7
	add	w8, w8, #14
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w1, w8, #3
	mov	w0, #4
	bl	_min
	mov	x2, x0
	add	x0, sp, #12
	mov	x1, x22
	bl	_memcpy
	ldr	x8, [x21, #16]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_float_16_to_32
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	s0, [sp, #12]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	neg	w8, w28
	lsr	w8, w24, w8
	ldr	w9, [sp, #12]
	ldr	x10, [x21, #8]
	ldr	w10, [x10, x23]
	and	x10, x10, #0x7
	asr	w9, w9, w10
	and	w9, w9, w8
	scvtf	s0, w9
	scvtf	s1, w8
	fdiv	s0, s0, s1
	b	LBB0_2
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @format_to_vec4.component_offsets
_format_to_vec4.component_offsets:
	.long	3                               ; 0x3
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2

	.comm	_FORMAT_ARGBF16,8,3             ; @FORMAT_ARGBF16
	.comm	_FORMAT_ARGBF,8,3               ; @FORMAT_ARGBF
	.no_dead_strip	_format_to_vec4
.subsections_via_symbols
