	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debugstr_chunk                 ## -- Begin function debugstr_chunk
	.p2align	4, 0x90
_debugstr_chunk:                        ## @debugstr_chunk
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	_FOURCC_RIFF@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.2:
	movq	_FOURCC_LIST@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %r14
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rax
	retq
LBB0_4:
	movq	8(%rbx), %rdi
	callq	_debugstr_fourcc
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wine_dbg_sprintf
	movq	%rax, %r14
	movq	(%rbx), %rdi
LBB0_5:
	callq	_debugstr_fourcc
	movl	16(%rbx), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wine_dbg_sprintf               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"(null)"

	.comm	_FOURCC_RIFF,8,3                ## @FOURCC_RIFF
	.comm	_FOURCC_LIST,8,3                ## @FOURCC_LIST
L_.str.2:                               ## @.str.2
	.asciz	"type %s, "

L_.str.3:                               ## @.str.3
	.asciz	"%s chunk, %ssize %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_debugstr_chunk                 ; -- Begin function debugstr_chunk
	.p2align	2
_debugstr_chunk:                        ; @debugstr_chunk
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _FOURCC_RIFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FOURCC_RIFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FOURCC_LIST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FOURCC_LIST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [x19, #8]
	bl	_debugstr_fourcc
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wine_dbg_sprintf
	mov	x20, x0
	ldr	x0, [x19]
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	ret
LBB0_4:
	.cfi_restore_state
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
LBB0_5:
	bl	_debugstr_fourcc
	mov	x1, x0
	ldr	w8, [x19, #16]
	stp	x20, x8, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"(null)"

	.comm	_FOURCC_RIFF,8,3                ; @FOURCC_RIFF
	.comm	_FOURCC_LIST,8,3                ; @FOURCC_LIST
l_.str.2:                               ; @.str.2
	.asciz	"type %s, "

l_.str.3:                               ; @.str.3
	.asciz	"%s chunk, %ssize %u"

.subsections_via_symbols
