	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function debug_writemask
_debug_writemask:                       ## @debug_writemask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_BWRITERSP_WRITEMASK_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%ebx, %eax
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	leaq	_debug_writemask.components(%rip), %rdi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	sarl	%ecx
	incl	%edx
	cmpl	$1, %ebx
	movl	%ecx, %ebx
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %bl
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
	movzbl	(%rsi,%rdi), %ecx
	movl	%eax, %esi
	incl	%eax
	movb	%cl, -13(%rbp,%rsi)
	jmp	LBB0_4
LBB0_5:
	movl	%eax, %eax
	movb	$0, -13(%rbp,%rax)
	leaq	L_.str(%rip), %rdi
	leaq	-13(%rbp), %rsi
	callq	_wine_dbg_sprintf
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_debug_writemask.components:            ## @debug_writemask.components
	.ascii	"xyzw"

	.comm	_BWRITERSP_WRITEMASK_ALL,4,2    ## @BWRITERSP_WRITEMASK_ALL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".%s"

	.no_dead_strip	_debug_writemask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function debug_writemask
_debug_writemask:                       ; @debug_writemask
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _BWRITERSP_WRITEMASK_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BWRITERSP_WRITEMASK_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w0, w8
	cset	w0, eq
	bl	_assert
	mov	w8, #0
	cbz	w19, LBB0_5
; %bb.1:
	mov	w9, #0
	add	x10, sp, #11
Lloh3:
	adrp	x11, _debug_writemask.components@PAGE
Lloh4:
	add	x11, x11, _debug_writemask.components@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	asr	w12, w19, #1
	add	w9, w9, #1
	cmp	w19, #1
	mov	x19, x12
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w19, #0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w12, [x11, w9, uxtw]
	strb	w12, [x10, w8, uxtw]
	add	w8, w8, #1
	b	LBB0_2
LBB0_5:
	add	x9, sp, #11
	strb	wzr, [x9, w8, uxtw]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #11
	bl	_wine_dbg_sprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_debug_writemask.components:            ; @debug_writemask.components
	.ascii	"xyzw"

	.comm	_BWRITERSP_WRITEMASK_ALL,4,2    ; @BWRITERSP_WRITEMASK_ALL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".%s"

	.no_dead_strip	_debug_writemask
.subsections_via_symbols
