	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DDRAW_dump_pixelformat
_DDRAW_dump_pixelformat:                ## @DDRAW_dump_pixelformat
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %edi
	callq	_DDRAW_dump_pixelformat_flag
	movl	(%rbx), %eax
	movq	_DDPF_FOURCC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %eax
	movl	48(%rbx), %edi
	movzbl	%al, %esi
	movzbl	%ah, %edx
	movl	%eax, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %r10d
	movl	%eax, %ecx
	shrl	$24, %ecx
	movl	%edi, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	movl	%ecx, %r8d
	movl	%eax, %r9d
	movl	%r10d, %ecx
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
LBB0_2:
	movq	_DDPF_RGB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	movl	44(%rbx), %esi
	movl	28(%rbx), %edx
	movl	12(%rbx), %r8d
	movl	20(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	56(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
LBB0_5:
	movq	_DDPF_ZPIXELS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movl	52(%rbx), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
LBB0_7:
	movq	_DDPF_ZBUFFER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movl	40(%rbx), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
LBB0_9:
	movq	_DDPF_ALPHA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	movl	36(%rbx), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	(%rbx), %eax
LBB0_11:
	movq	_DDPF_BUMPDUDV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movl	32(%rbx), %esi
	movl	24(%rbx), %edx
	movl	8(%rbx), %r8d
	movl	16(%rbx), %ecx
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_TRACE                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"( "

	.comm	_DDPF_FOURCC,4,2                ## @DDPF_FOURCC
L_.str.1:                               ## @.str.1
	.asciz	", dwFourCC code '%c%c%c%c' (0x%08x) - %u bits per pixel"

	.comm	_DDPF_RGB,4,2                   ## @DDPF_RGB
L_.str.2:                               ## @.str.2
	.asciz	", RGB bits: %u, R 0x%08x G 0x%08x B 0x%08x"

	.comm	_DDPF_ALPHAPIXELS,4,2           ## @DDPF_ALPHAPIXELS
L_.str.3:                               ## @.str.3
	.asciz	" A 0x%08x"

	.comm	_DDPF_ZPIXELS,4,2               ## @DDPF_ZPIXELS
L_.str.4:                               ## @.str.4
	.asciz	" Z 0x%08x"

	.comm	_DDPF_ZBUFFER,4,2               ## @DDPF_ZBUFFER
L_.str.5:                               ## @.str.5
	.asciz	", Z bits: %u"

	.comm	_DDPF_ALPHA,4,2                 ## @DDPF_ALPHA
L_.str.6:                               ## @.str.6
	.asciz	", Alpha bits: %u"

	.comm	_DDPF_BUMPDUDV,4,2              ## @DDPF_BUMPDUDV
L_.str.7:                               ## @.str.7
	.asciz	", Bump bits: %u, U 0x%08x V 0x%08x L 0x%08x"

L_.str.8:                               ## @.str.8
	.asciz	")\n"

	.no_dead_strip	_DDRAW_dump_pixelformat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DDRAW_dump_pixelformat
_DDRAW_dump_pixelformat:                ; @DDRAW_dump_pixelformat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w0, [x19]
	bl	_DDRAW_dump_pixelformat_flag
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _DDPF_FOURCC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DDPF_FOURCC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	and	w9, w8, #0xff
	ubfx	w10, w8, #8, #8
	ubfx	w11, w8, #16, #8
	ubfx	x12, x8, #24, #8
	ldr	w13, [x19, #48]
	stp	x8, x13, [sp, #32]
                                        ; kill: def $w12 killed $w12 killed $x12 def $x12
	stp	x11, x12, [sp, #16]
	stp	x9, x10, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
LBB0_2:
Lloh7:
	adrp	x9, _DDPF_RGB@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DDPF_RGB@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [x19, #44]
	ldr	w9, [x19, #28]
	ldr	w10, [x19, #20]
	ldr	w11, [x19, #12]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #56]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
LBB0_5:
Lloh17:
	adrp	x9, _DDPF_ZPIXELS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DDPF_ZPIXELS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #52]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
LBB0_7:
Lloh22:
	adrp	x9, _DDPF_ZBUFFER@GOTPAGE
Lloh23:
	ldr	x9, [x9, _DDPF_ZBUFFER@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #40]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
LBB0_9:
Lloh27:
	adrp	x9, _DDPF_ALPHA@GOTPAGE
Lloh28:
	ldr	x9, [x9, _DDPF_ALPHA@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w8, [x19, #36]
	str	x8, [sp]
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_TRACE
	ldr	w8, [x19]
LBB0_11:
Lloh32:
	adrp	x9, _DDPF_BUMPDUDV@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DDPF_BUMPDUDV@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w8, [x19, #32]
	ldr	w9, [x19, #24]
	ldr	w10, [x19, #16]
	ldr	w11, [x19, #8]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_TRACE
LBB0_13:
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_TRACE
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"( "

	.comm	_DDPF_FOURCC,4,2                ; @DDPF_FOURCC
l_.str.1:                               ; @.str.1
	.asciz	", dwFourCC code '%c%c%c%c' (0x%08x) - %u bits per pixel"

	.comm	_DDPF_RGB,4,2                   ; @DDPF_RGB
l_.str.2:                               ; @.str.2
	.asciz	", RGB bits: %u, R 0x%08x G 0x%08x B 0x%08x"

	.comm	_DDPF_ALPHAPIXELS,4,2           ; @DDPF_ALPHAPIXELS
l_.str.3:                               ; @.str.3
	.asciz	" A 0x%08x"

	.comm	_DDPF_ZPIXELS,4,2               ; @DDPF_ZPIXELS
l_.str.4:                               ; @.str.4
	.asciz	" Z 0x%08x"

	.comm	_DDPF_ZBUFFER,4,2               ; @DDPF_ZBUFFER
l_.str.5:                               ; @.str.5
	.asciz	", Z bits: %u"

	.comm	_DDPF_ALPHA,4,2                 ; @DDPF_ALPHA
l_.str.6:                               ; @.str.6
	.asciz	", Alpha bits: %u"

	.comm	_DDPF_BUMPDUDV,4,2              ; @DDPF_BUMPDUDV
l_.str.7:                               ; @.str.7
	.asciz	", Bump bits: %u, U 0x%08x V 0x%08x L 0x%08x"

l_.str.8:                               ; @.str.8
	.asciz	")\n"

	.no_dead_strip	_DDRAW_dump_pixelformat
.subsections_via_symbols
