	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wavefront_fetch_multisample
_wavefront_fetch_multisample:           ## @wavefront_fetch_multisample
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edi
	leaq	-45(%rbp), %rbx
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_munge_int32
	movq	_WFC_UPLOAD_MULTISAMPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-41(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_snd_wavefront_cmd
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_2:
	callq	_snd_printk
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	_WF_DEBUG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	movzbl	-41(%rbp), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_DPRINT
	movzbl	-41(%rbp), %ecx
	xorl	%eax, %eax
	movb	%cl, 8(%r15)
	cmpl	$31, %ecx
	je	LBB0_10
## %bb.4:
	movl	$1, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r12d
	movl	$1, %eax
	cmpl	$2, %r12d
	cmovll	%eax, %r12d
	xorl	%ebx, %ebx
	leaq	L_.str.3(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_wavefront_read
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, -43(%rbp)
	movq	%r14, %rdi
	callq	_wavefront_read
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	%al, -42(%rbp)
	leaq	-43(%rbp), %rdi
	movl	$2, %esi
	callq	_demunge_int32
	movq	16(%r15), %rcx
	movb	%al, (%rcx,%rbx)
	movq	_WF_DEBUG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movzbl	(%rax,%rbx), %ecx
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_DPRINT
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
## %bb.9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_WFC_UPLOAD_MULTISAMPLE,4,2     ## @WFC_UPLOAD_MULTISAMPLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"upload multisample failed.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_WF_DEBUG_DATA,4,2              ## @WF_DEBUG_DATA
L_.str.1:                               ## @.str.1
	.asciz	"msample %d has %d samples\n"

L_.str.2:                               ## @.str.2
	.asciz	"upload multisample failed during sample loop.\n"

L_.str.3:                               ## @.str.3
	.asciz	"msample sample[%d] = %d\n"

	.no_dead_strip	_wavefront_fetch_multisample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wavefront_fetch_multisample
_wavefront_fetch_multisample:           ; @wavefront_fetch_multisample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	add	x1, sp, #13
	mov	w2, #2
	bl	_munge_int32
Lloh0:
	adrp	x8, _WFC_UPLOAD_MULTISAMPLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WFC_UPLOAD_MULTISAMPLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #15
	add	x3, sp, #13
	mov	x0, x20
	bl	_snd_wavefront_cmd
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	bl	_snd_printk
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_3:
Lloh8:
	adrp	x23, _WF_DEBUG_DATA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _WF_DEBUG_DATA@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w2, [x19]
	ldrb	w3, [sp, #15]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DPRINT
	ldrb	w8, [sp, #15]
	strb	w8, [x19, #8]
	cmp	w8, #31
	b.eq	LBB0_8
; %bb.4:
	mov	x21, #0
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w8, #1
	csinc	w24, w8, wzr, gt
Lloh12:
	adrp	x22, l_.str.3@PAGE
Lloh13:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_wavefront_read
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w0, [sp, #11]
	mov	x0, x20
	bl	_wavefront_read
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w0, [sp, #12]
	add	x0, sp, #11
	mov	w1, #2
	bl	_demunge_int32
	ldr	x8, [x19, #16]
	strb	w0, [x8, x21]
	ldr	w0, [x23]
	ldr	x8, [x19, #16]
	ldrb	w3, [x8, x21]
	mov	x1, x22
	mov	x2, x21
	bl	_DPRINT
	add	x21, x21, #1
	cmp	x24, x21
	b.ne	LBB0_5
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_WFC_UPLOAD_MULTISAMPLE,4,2     ; @WFC_UPLOAD_MULTISAMPLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"upload multisample failed.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_WF_DEBUG_DATA,4,2              ; @WF_DEBUG_DATA
l_.str.1:                               ; @.str.1
	.asciz	"msample %d has %d samples\n"

l_.str.2:                               ; @.str.2
	.asciz	"upload multisample failed during sample loop.\n"

l_.str.3:                               ; @.str.3
	.asciz	"msample sample[%d] = %d\n"

	.no_dead_strip	_wavefront_fetch_multisample
.subsections_via_symbols
