	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_gdi_logbrush
_create_gdi_logbrush:                   ## @create_gdi_logbrush
	.cfi_startproc
## %bb.0:
	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	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_6
## %bb.2:
	movq	_BS_SOLID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movl	$128, %edi
	callq	_ARGB2COLORREF
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_create_hatch_bitmap
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_BS_PATTERN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%r14)
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	_BS_SOLID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_get_gdi_brush_color
LBB0_7:
	movl	%eax, %ecx
	xorl	%eax, %eax
LBB0_8:
	movl	%ecx, 4(%r14)
	movl	%eax, (%r14)
	movq	_Ok@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_OutOfMemory@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BS_SOLID,8,3                   ## @BS_SOLID
	.comm	_Ok,4,2                         ## @Ok
	.comm	_OutOfMemory,4,2                ## @OutOfMemory
	.comm	_BS_PATTERN,8,3                 ## @BS_PATTERN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled brush type %d\n"

	.no_dead_strip	_create_gdi_logbrush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_gdi_logbrush
_create_gdi_logbrush:                   ; @create_gdi_logbrush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	w1, [x0]
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _BS_SOLID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BS_SOLID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w0, #128
	bl	_ARGB2COLORREF
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_create_hatch_bitmap
	cbz	w0, LBB0_9
; %bb.4:
	mov	x8, x0
	mov	w0, #0
Lloh3:
	adrp	x9, _BS_PATTERN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BS_PATTERN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x19, #8]
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh8:
	adrp	x8, _BS_SOLID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BS_SOLID@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_get_gdi_brush_color
LBB0_6:
	mov	w8, #0
LBB0_7:
	stp	w8, w0, [x19]
Lloh11:
	adrp	x8, _Ok@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Ok@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh13:
	adrp	x8, _OutOfMemory@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OutOfMemory@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BS_SOLID,8,3                   ; @BS_SOLID
	.comm	_Ok,4,2                         ; @Ok
	.comm	_OutOfMemory,4,2                ; @OutOfMemory
	.comm	_BS_PATTERN,8,3                 ; @BS_PATTERN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled brush type %d\n"

	.no_dead_strip	_create_gdi_logbrush
.subsections_via_symbols
