	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmatest_mismatch
_dmatest_mismatch:                      ## @dmatest_mismatch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%ecx, %eax
	movl	%edi, %r10d
	movq	_PATTERN_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_current@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rdi), %r9
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %r8d
	xorl	%r10d, %r8d
	movq	_PATTERN_COPY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r11d
	testl	%esi, %r11d
	je	LBB0_5
## %bb.3:
	movq	_PATTERN_OVERWRITE@GOTPCREL(%rip), %rdi
	orl	(%rdi), %r11d
	testl	%r8d, %r11d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_5:
	movq	_PATTERN_SRC@GOTPCREL(%rip), %rdi
	testl	%r8d, (%rdi)
	leaq	L_.str.3(%rip), %r8
	leaq	L_.str.2(%rip), %rdi
	cmoveq	%r8, %rdi
LBB0_6:
	notl	%eax
	andl	%eax, %ecx
	orl	%esi, %ecx
	movq	%r9, %rsi
	movl	%r10d, %r8d
	popq	%rbp
	jmp	_pr_warning                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PATTERN_COUNT_MASK,4,2         ## @PATTERN_COUNT_MASK
	.comm	_current,8,3                    ## @current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: srcbuf[0x%x] overwritten! Expected %02x, got %02x\n"

	.comm	_PATTERN_COPY,4,2               ## @PATTERN_COPY
	.comm	_PATTERN_OVERWRITE,4,2          ## @PATTERN_OVERWRITE
L_.str.1:                               ## @.str.1
	.asciz	"%s: dstbuf[0x%x] not copied! Expected %02x, got %02x\n"

	.comm	_PATTERN_SRC,4,2                ## @PATTERN_SRC
L_.str.2:                               ## @.str.2
	.asciz	"%s: dstbuf[0x%x] was copied! Expected %02x, got %02x\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: dstbuf[0x%x] mismatch! Expected %02x, got %02x\n"

	.no_dead_strip	_dmatest_mismatch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmatest_mismatch
_dmatest_mismatch:                      ; @dmatest_mismatch
	.cfi_startproc
; %bb.0:
	mov	x9, x0
Lloh0:
	adrp	x8, _PATTERN_COUNT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATTERN_COUNT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _current@GOTPAGE
Lloh4:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	w4, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	eor	w11, w1, w9
Lloh8:
	adrp	x12, _PATTERN_COPY@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PATTERN_COPY@GOTPAGEOFF]
Lloh10:
	ldr	w12, [x12]
	tst	w12, w1
	b.eq	LBB0_5
; %bb.3:
Lloh11:
	adrp	x13, _PATTERN_OVERWRITE@GOTPAGE
Lloh12:
	ldr	x13, [x13, _PATTERN_OVERWRITE@GOTPAGEOFF]
Lloh13:
	ldr	w13, [x13]
	orr	w12, w13, w12
	tst	w12, w11
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x12, _PATTERN_SRC@GOTPAGE
Lloh17:
	ldr	x12, [x12, _PATTERN_SRC@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x12]
Lloh19:
	adrp	x13, l_.str.2@PAGE
Lloh20:
	add	x13, x13, l_.str.2@PAGEOFF
Lloh21:
	adrp	x14, l_.str.3@PAGE
Lloh22:
	add	x14, x14, l_.str.3@PAGEOFF
	tst	w12, w11
	csel	x0, x14, x13, eq
LBB0_6:
	bic	w10, w10, w3
	orr	w3, w10, w1
	mov	x1, x8
	mov	x4, x9
	b	_pr_warning
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PATTERN_COUNT_MASK,4,2         ; @PATTERN_COUNT_MASK
	.comm	_current,8,3                    ; @current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: srcbuf[0x%x] overwritten! Expected %02x, got %02x\n"

	.comm	_PATTERN_COPY,4,2               ; @PATTERN_COPY
	.comm	_PATTERN_OVERWRITE,4,2          ; @PATTERN_OVERWRITE
l_.str.1:                               ; @.str.1
	.asciz	"%s: dstbuf[0x%x] not copied! Expected %02x, got %02x\n"

	.comm	_PATTERN_SRC,4,2                ; @PATTERN_SRC
l_.str.2:                               ; @.str.2
	.asciz	"%s: dstbuf[0x%x] was copied! Expected %02x, got %02x\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: dstbuf[0x%x] mismatch! Expected %02x, got %02x\n"

	.no_dead_strip	_dmatest_mismatch
.subsections_via_symbols
