	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unsharp_init_thread
_unsharp_init_thread:                   ## @unsharp_init_thread
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_unsharp_thread_close
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 8(%rbx)
	movl	%r14d, (%rbx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r13
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	xorl	%edx, %edx
	callq	_hb_image_width
	movl	%eax, %ebx
	movslq	%r14d, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.1:
	movl	(%r13), %edi
	movb	$1, %al
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	setl	%al
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%edi, %edi
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	addl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%ebx, %edi
	shll	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%r12), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	(%r13), %rax
	leaq	(%rax,%rax), %rdi
	cmpq	%rdi, %r14
	jl	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_unsharp_close
	movl	$-1, %eax
	testb	$1, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_28
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movl	16(%r13), %esi
	movl	20(%r13), %edi
	movl	$1, %edx
	callq	_hb_image_width
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_18
## %bb.10:
	movl	%eax, %r12d
	movl	12(%r13), %edi
	movb	$1, %al
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	setl	%al
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_18
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	testl	%edi, %edi
	jle	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	addl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%r12d, %edi
	shll	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	8(%rbx), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%r14
	movslq	12(%r13), %rax
	leaq	(%rax,%rax), %rdi
	cmpq	%rdi, %r14
	jl	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, %edi
	jmp	LBB0_16
LBB0_17:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_unsharp_close
	movl	$-1, %eax
	testb	$1, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_28
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r13
	movl	28(%r13), %esi
	movl	32(%r13), %edi
	movl	$2, %edx
	callq	_hb_image_width
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_27
## %bb.19:
	movl	%eax, %r12d
	movl	24(%r13), %edi
	movb	$1, %al
	xorl	%r15d, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, %edi
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r15
	cmpq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	setl	%al
	cmpq	-72(%rbp), %r15                 ## 8-byte Folded Reload
	je	LBB0_27
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	testl	%edi, %edi
	jle	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movb	%al, -48(%rbp)                  ## 1-byte Spill
	addl	%edi, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%r12d, %edi
	shll	$2, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r14,8)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	incq	%r14
	movslq	24(%r13), %rax
	leaq	(%rax,%rax), %rdi
	cmpq	%rdi, %r14
	jl	LBB0_22
	jmp	LBB0_24
LBB0_26:
	leaq	L_.str(%rip), %rdi
	callq	_hb_error
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_unsharp_close
	movl	$-1, %eax
	testb	$1, -48(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_28
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	addq	$40, %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	"Unsharp calloc failed"

	.no_dead_strip	_unsharp_init_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unsharp_init_thread
_unsharp_init_thread:                   ; @unsharp_init_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	x20, [x0]
	mov	x0, x20
	bl	_unsharp_thread_close
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	str	x0, [x20, #8]
	str	w21, [x20]
	sxtw	x23, w21
	ldr	x25, [x20, #16]
	ldp	w1, w0, [x25, #4]
	mov	w2, #0
	bl	_hb_image_width
	mov	w24, w21
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x22, x0
	mov	x26, #0
	ldr	w8, [x25]
	mov	w27, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	cmp	x26, x23
	cset	w27, lt
	cmp	x26, x24
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x28, #0
	lsl	w9, w8, #1
	ldr	x8, [x20, #8]
	ldr	x19, [x8, x26, lsl #3]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w9, w22
	lsl	w0, w8, #2
	bl	_malloc
	ldr	x8, [x19]
	lsl	x9, x28, #3
	str	x0, [x8, x9]
	ldr	x8, [x19]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x25]
	lsl	x9, x8, #1
	cmp	x28, x9
	b.lt	LBB0_5
	b	LBB0_2
LBB0_7:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_unsharp_close
	tbnz	w27, #0, LBB0_24
LBB0_8:
	ldr	x25, [x20, #16]
	ldp	w1, w0, [x25, #16]
	mov	w2, #1
	bl	_hb_image_width
	cmp	w21, #1
	b.lt	LBB0_16
; %bb.9:
	mov	x22, x0
	mov	x26, #0
	ldr	w8, [x25, #12]
	mov	w27, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #1
	cmp	x26, x23
	cset	w27, lt
	cmp	x26, x24
	b.eq	LBB0_16
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x28, #0
	lsl	w9, w8, #1
	ldr	x8, [x20, #8]
	ldr	x19, [x8, x26, lsl #3]
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w9, w22
	lsl	w0, w8, #2
	bl	_malloc
	ldr	x8, [x19, #8]
	lsl	x9, x28, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	add	x28, x28, #1
	ldrsw	x8, [x25, #12]
	lsl	x9, x8, #1
	cmp	x28, x9
	b.lt	LBB0_13
	b	LBB0_10
LBB0_15:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_unsharp_close
	tbnz	w27, #0, LBB0_24
LBB0_16:
	ldr	x25, [x20, #16]
	ldp	w1, w0, [x25, #28]
	mov	w2, #2
	bl	_hb_image_width
	cmp	w21, #1
	b.lt	LBB0_25
; %bb.17:
	mov	x22, x0
	mov	x21, #0
	ldr	w8, [x25, #24]
	mov	w26, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x21, x21, #1
	cmp	x21, x23
	cset	w26, lt
	cmp	x21, x24
	b.eq	LBB0_25
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x27, #0
	lsl	w9, w8, #1
	ldr	x8, [x20, #8]
	ldr	x19, [x8, x21, lsl #3]
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w9, w22
	lsl	w0, w8, #2
	bl	_malloc
	ldr	x8, [x19, #16]
	lsl	x9, x27, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	x27, x27, #1
	ldrsw	x8, [x25, #24]
	lsl	x9, x8, #1
	cmp	x27, x9
	b.lt	LBB0_21
	b	LBB0_18
LBB0_23:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_error
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_unsharp_close
	tbz	w26, #0, LBB0_25
LBB0_24:
	mov	w0, #-1
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsharp calloc failed"

	.no_dead_strip	_unsharp_init_thread
.subsections_via_symbols
