	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_provider_register              ## -- Begin function provider_register
	.p2align	4, 0x90
_provider_register:                     ## @provider_register
	.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
	movl	%r8d, %r12d
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movl	%edi, %r14d
	movl	$1, %edi
	movl	$32, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_malloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	%r14d, 24(%rbx)
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	movq	_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	movl	$1, %edx
	cmovgel	%ecx, %edx
	incl	%edx
	movl	%edx, (%rax)
	movl	%edx, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	_provider_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_providers@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	_change_state@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_handle,4,2                     ## @handle
	.comm	_providers,4,2                  ## @providers
	.comm	_provider_next,4,2              ## @provider_next
	.comm	_change_state,4,2               ## @change_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_provider_register              ; -- Begin function provider_register
	.p2align	2
_provider_register:                     ; @provider_register
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	mov	w0, #1
	mov	w1, #32
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_malloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	str	w24, [x19, #24]
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
Lloh0:
	adrp	x8, _handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _handle@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	csinc	w9, w9, wzr, gt
	add	w9, w9, #1
	str	w9, [x8]
	str	w9, [x19]
	add	x0, x19, #8
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
	str	w20, [x19, #4]
Lloh2:
	adrp	x8, _provider_next@GOTPAGE
Lloh3:
	ldr	x8, [x8, _provider_next@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x0, _providers@GOTPAGE
Lloh6:
	ldr	x0, [x0, _providers@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_INSERT_TAIL
Lloh7:
	adrp	x8, _change_state@GOTPAGE
Lloh8:
	ldr	x8, [x8, _change_state@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_handle,4,2                     ; @handle
	.comm	_providers,4,2                  ; @providers
	.comm	_provider_next,4,2              ; @provider_next
	.comm	_change_state,4,2               ; @change_state
.subsections_via_symbols
