	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_init                        ## -- Begin function hb_init
	.p2align	4, 0x90
_hb_init:                               ## @hb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movl	$80, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_hb_log_level_set
	movq	_hb_instance_counter@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 72(%rbx)
	xorl	%eax, %eax
	callq	_hb_system_sleep_opaque_init
	movl	%eax, 64(%rbx)
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_hb_list_init
	movq	%rax, 48(%rbx)
	xorl	%eax, %eax
	callq	_hb_lock_init
	movq	%rax, 40(%rbx)
	movq	_HB_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	xorl	%eax, %eax
	callq	_hb_lock_init
	movq	%rax, 24(%rbx)
	movl	$-1, (%rbx)
	movl	$4, %edi
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 16(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_hb_log
	movq	$0, 8(%rbx)
	movq	_thread_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HB_NORMAL_PRIORITY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rdx
	callq	_hb_thread_init
	movl	%eax, 4(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hb_instance_counter,4,2        ## @hb_instance_counter
	.comm	_HB_STATE_IDLE,4,2              ## @HB_STATE_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hb_init: starting libhb thread"

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

	.comm	_thread_func,4,2                ## @thread_func
	.comm	_HB_NORMAL_PRIORITY,4,2         ## @HB_NORMAL_PRIORITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_init                        ; -- Begin function hb_init
	.p2align	2
_hb_init:                               ; @hb_init
	.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	x20, x0
	mov	w0, #80
	mov	w1, #1
	bl	_calloc
	mov	x19, x0
	mov	x1, x20
	bl	_hb_log_level_set
Lloh0:
	adrp	x8, _hb_instance_counter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hb_instance_counter@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [x19, #72]
	bl	_hb_system_sleep_opaque_init
	str	w0, [x19, #64]
	bl	_hb_list_init
	str	x0, [x19, #56]
	bl	_hb_list_init
	str	x0, [x19, #48]
	bl	_hb_lock_init
	str	x0, [x19, #40]
Lloh2:
	adrp	x8, _HB_STATE_IDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HB_STATE_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	bl	_hb_lock_init
	str	x0, [x19, #24]
	mov	w8, #-1
	str	w8, [x19]
	mov	w0, #4
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #16]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hb_log
	str	xzr, [x19, #8]
Lloh7:
	adrp	x8, _thread_func@GOTPAGE
Lloh8:
	ldr	x8, [x8, _thread_func@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _HB_NORMAL_PRIORITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HB_NORMAL_PRIORITY@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_hb_thread_init
	str	w0, [x19, #4]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hb_instance_counter,4,2        ; @hb_instance_counter
	.comm	_HB_STATE_IDLE,4,2              ; @HB_STATE_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hb_init: starting libhb thread"

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

	.comm	_thread_func,4,2                ; @thread_func
	.comm	_HB_NORMAL_PRIORITY,4,2         ; @HB_NORMAL_PRIORITY
.subsections_via_symbols
