	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hb_grayscale_init
_hb_grayscale_init:                     ## @hb_grayscale_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r14
	movq	%rax, (%rbx)
	xorl	%eax, %eax
	callq	_hb_get_cpu_count
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, (%r14)
	leal	(,%rax,4), %edi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	movl	(%r14), %esi
	movl	$16, %edx
	callq	_taskset_init
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
LBB0_3:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.4:
	movq	%r14, %r15
	addq	$4, %r15
	xorl	%ebx, %ebx
	movq	_HB_NORMAL_PRIORITY@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_taskset_thread_args
	movq	%r14, 8(%rax)
	movl	%ebx, (%rax)
	movq	8(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_grayscale_filter_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_taskset_thread_spawn
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_hb_error
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"grayscale could not initialize taskset"

L_.str.1:                               ## @.str.1
	.asciz	"grayscale_filter_segment"

	.comm	_grayscale_filter_thread,4,2    ## @grayscale_filter_thread
	.comm	_HB_NORMAL_PRIORITY,4,2         ## @HB_NORMAL_PRIORITY
L_.str.2:                               ## @.str.2
	.asciz	"grayscale could not spawn thread"

	.no_dead_strip	_hb_grayscale_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hb_grayscale_init
_hb_grayscale_init:                     ; @hb_grayscale_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	str	x0, [x20]
	bl	_hb_get_cpu_count
	str	w0, [x19]
	lsl	w0, w0, #2
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldr	w1, [x0], #4
	mov	w2, #16
	bl	_taskset_init
	cbnz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x20, #0
	add	x21, x19, #4
Lloh2:
	adrp	x24, _grayscale_filter_thread@GOTPAGE
Lloh3:
	ldr	x24, [x24, _grayscale_filter_thread@GOTPAGEOFF]
Lloh4:
	adrp	x25, _HB_NORMAL_PRIORITY@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HB_NORMAL_PRIORITY@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_taskset_thread_args
	str	x19, [x0, #8]
	str	w20, [x0]
	ldr	x8, [x19, #8]
	str	xzr, [x8, x20, lsl #3]
	ldr	w3, [x24]
	ldr	w4, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_taskset_thread_spawn
	cbnz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_hb_error
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"grayscale could not initialize taskset"

l_.str.1:                               ; @.str.1
	.asciz	"grayscale_filter_segment"

	.comm	_grayscale_filter_thread,4,2    ; @grayscale_filter_thread
	.comm	_HB_NORMAL_PRIORITY,4,2         ; @HB_NORMAL_PRIORITY
l_.str.2:                               ; @.str.2
	.asciz	"grayscale could not spawn thread"

	.no_dead_strip	_hb_grayscale_init
.subsections_via_symbols
