	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function create_hatch_bitmap
LCPI0_0:
	.long	40                              ## 0x28
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_hatch_bitmap:                   ## @create_hatch_bitmap
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [40,8,8,1]
	movdqa	%xmm0, -80(%rbp)
	movl	$32, -64(%rbp)
	movq	_BI_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_DIB_RGB_COLORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-80(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateDIBSection
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	4(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_get_hatch_data
	movq	_Ok@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-32(%rbp), %rdx
	xorl	%esi, %esi
	cmpb	$0, (%rax)
	setns	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, (%rdx,%rcx)
	xorl	%esi, %esi
	testb	$64, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 4(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$32, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 8(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$16, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 12(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$8, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 16(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$4, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 20(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$2, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 24(%rdx,%rcx)
	xorl	%esi, %esi
	testb	$1, (%rax)
	sete	%sil
	movl	(%rbx,%rsi,8), %esi
	movl	%esi, 28(%rdx,%rcx)
	addq	$32, %rcx
	incq	%rax
	cmpq	$256, %rcx                      ## imm = 0x100
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	leaq	4(%rbx), %r15
	movl	4(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	-32(%rbp), %rax
	cmpq	%r15, %rax
	jae	LBB0_9
## %bb.5:
	leaq	256(%rax), %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_9
## %bb.6:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edx
	movl	%edx, (%rax,%rcx,4)
	movl	(%rbx), %edx
	movl	%edx, 4(%rax,%rcx,4)
	movl	(%rbx), %edx
	movl	%edx, 8(%rax,%rcx,4)
	movl	(%rbx), %edx
	movl	%edx, 12(%rax,%rcx,4)
	addq	$4, %rcx
	cmpq	$64, %rcx
	jne	LBB0_7
	jmp	LBB0_8
LBB0_9:
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rax)
	movdqu	%xmm0, 16(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 32(%rax)
	movdqu	%xmm0, 48(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 64(%rax)
	movdqu	%xmm0, 80(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 96(%rax)
	movdqu	%xmm0, 112(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 128(%rax)
	movdqu	%xmm0, 144(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 160(%rax)
	movdqu	%xmm0, 176(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 192(%rax)
	movdqu	%xmm0, 208(%rax)
	movd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 224(%rax)
	movdqu	%xmm0, 240(%rax)
LBB0_8:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BI_RGB,4,2                     ## @BI_RGB
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
	.comm	_Ok,8,3                         ## @Ok
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unimplemented hatch style %d\n"

	.no_dead_strip	_create_hatch_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function create_hatch_bitmap
lCPI0_0:
	.long	40                              ; 0x28
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_create_hatch_bitmap:                   ; @create_hatch_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #16]
	mov	w8, #32
	str	w8, [sp, #32]
Lloh2:
	adrp	x8, _BI_RGB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BI_RGB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	str	xzr, [sp, #40]
Lloh5:
	adrp	x8, _DIB_RGB_COLORS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB_RGB_COLORS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #16
	add	x3, sp, #8
	mov	w0, #0
	mov	x4, #0
	mov	w5, #0
	bl	_CreateDIBSection
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.1:
	ldr	w0, [x19, #4]
	mov	x1, sp
	bl	_get_hatch_data
Lloh8:
	adrp	x8, _Ok@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp]
	mov	w9, #28
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [sp, #8]
	ldrb	w11, [x8]
	lsr	w11, w11, #7
	eor	w11, w11, #0x1
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	add	x10, x10, x9
	stur	w11, [x10, #-28]
	ldrb	w11, [x8]
	tst	w11, #0x40
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-24]
	ldrb	w11, [x8]
	tst	w11, #0x20
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-20]
	ldrb	w11, [x8]
	tst	w11, #0x10
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-16]
	ldrb	w11, [x8]
	tst	w11, #0x8
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-12]
	ldrb	w11, [x8]
	tst	w11, #0x4
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-8]
	ldrb	w11, [x8]
	tst	w11, #0x2
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	stur	w11, [x10, #-4]
	ldrb	w11, [x8], #1
	tst	w11, #0x1
	cset	w11, eq
	lsl	x11, x11, #3
	ldr	w11, [x19, x11]
	str	w11, [x10]
	add	x9, x9, #32
	cmp	x9, #284
	b.ne	LBB0_3
	b	LBB0_9
LBB0_4:
	mov	x21, x19
	ldr	w1, [x21, #4]!
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	x8, [sp, #8]
	cmp	x8, x21
	b.hs	LBB0_8
; %bb.5:
	add	x9, x8, #256
	cmp	x9, x19
	b.ls	LBB0_8
; %bb.6:
	mov	x9, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19]
	str	w10, [x8, x9]
	add	x9, x9, #4
	cmp	x9, #256
	b.ne	LBB0_7
	b	LBB0_9
LBB0_8:
	ld1r.4s	{ v0 }, [x19]
	stp	q0, q0, [x8]
	stp	q0, q0, [x8, #32]
	stp	q0, q0, [x8, #64]
	stp	q0, q0, [x8, #96]
	stp	q0, q0, [x8, #128]
	stp	q0, q0, [x8, #160]
	stp	q0, q0, [x8, #192]
	stp	q0, q0, [x8, #224]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BI_RGB,4,2                     ; @BI_RGB
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
	.comm	_Ok,8,3                         ; @Ok
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unimplemented hatch style %d\n"

	.no_dead_strip	_create_hatch_bitmap
.subsections_via_symbols
