	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_provider_register_sd           ## -- Begin function provider_register_sd
	.p2align	4, 0x90
_provider_register_sd:                  ## @provider_register_sd
	.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	%edi, %r15d
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %rbx
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	testq	%r14, %r14
	je	LBB0_2
## %bb.6:
	movq	_sd_profile_descriptor@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movl	%r15d, 4(%rbx)
	movq	_provider_next@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	_providers@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_bgd_profile_descriptor@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movl	$1, (%r14)
	movl	%r15d, 4(%rbx)
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TAILQ_INSERT_AFTER
	movq	_change_state@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	movl	$-1, %ebx
	testq	%r14, %r14
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_free
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_sd           ; -- Begin function provider_register_sd
	.p2align	2
_provider_register_sd:                  ; @provider_register_sd
	.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	x21, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x20, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x19, x0
	cbz	x20, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _sd_profile_descriptor@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sd_profile_descriptor@GOTPAGEOFF]
	str	x8, [x20, #8]
	str	w21, [x20, #4]
Lloh2:
	adrp	x23, _provider_next@GOTPAGE
Lloh3:
	ldr	x23, [x23, _provider_next@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x22, _providers@GOTPAGE
Lloh5:
	ldr	x22, [x22, _providers@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
Lloh6:
	adrp	x8, _bgd_profile_descriptor@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bgd_profile_descriptor@GOTPAGEOFF]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
	str	w21, [x20, #4]
	ldr	w3, [x23]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_TAILQ_INSERT_AFTER
	mov	w0, #0
Lloh8:
	adrp	x8, _change_state@GOTPAGE
Lloh9:
	ldr	x8, [x8, _change_state@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_free
LBB0_5:
	cbz	x19, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_providers,4,2                  ; @providers
	.comm	_provider_next,4,2              ; @provider_next
	.comm	_change_state,4,2               ; @change_state
.subsections_via_symbols
