	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_dca_provider          ## -- Begin function register_dca_provider
	.p2align	4, 0x90
_register_dca_provider:                 ## @register_dca_provider
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_dca_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_raw_spin_lock_irqsave
	movq	_dca_providers_blocked@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	movq	%r13, %rdi
	callq	_raw_spin_unlock_irqrestore
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dca_sysfs_add_provider
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_dca_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_dca_get_domain
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_list_add
	movq	_dca_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_unlock_irqrestore
	movq	_DCA_PROVIDER_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dca_provider_chain@GOTPCREL(%rip), %rdi
	xorl	%edx, %edx
	callq	_blocking_notifier_call_chain
	movq	%r12, %rdi
	callq	_kfree
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %r12
	movq	_dca_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_unlock_irqrestore
	testq	%r12, %r12
	je	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	callq	_dca_sysfs_remove_provider
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_unregister_dca_providers
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	%r15, %rdi
	callq	_dca_pci_rc_from_dev
	movq	%rax, %rdi
	callq	_dca_allocate_domain
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%rax, %r12
	movq	_dca_lock@GOTPCREL(%rip), %rdi
	callq	_raw_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_dca_get_domain
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	%r12, %rdi
	addq	$4, %rdi
	movq	_dca_domains@GOTPCREL(%rip), %rsi
	callq	_list_add
	movq	%r12, %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_dca_lock,4,2                   ## @dca_lock
	.comm	_dca_providers_blocked,8,3      ## @dca_providers_blocked
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_dca_domains,4,2                ## @dca_domains
	.comm	_dca_provider_chain,4,2         ## @dca_provider_chain
	.comm	_DCA_PROVIDER_ADD,4,2           ## @DCA_PROVIDER_ADD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_register_dca_provider          ; -- Begin function register_dca_provider
	.p2align	2
_register_dca_provider:                 ; @register_dca_provider
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _dca_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dca_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_raw_spin_lock_irqsave
Lloh2:
	adrp	x22, _dca_providers_blocked@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dca_providers_blocked@GOTPAGEOFF]
	ldr	x23, [x22]
	mov	x0, x21
	bl	_raw_spin_unlock_irqrestore
	cbz	x23, LBB0_2
LBB0_1:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_dca_sysfs_add_provider
	cbnz	w0, LBB0_7
; %bb.3:
Lloh7:
	adrp	x0, _dca_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _dca_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	mov	x0, x20
	bl	_dca_get_domain
	cbz	x0, LBB0_8
; %bb.4:
	mov	x1, x0
LBB0_5:
	mov	x21, #0
LBB0_6:
	mov	x0, x19
	bl	_list_add
Lloh9:
	adrp	x0, _dca_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dca_lock@GOTPAGEOFF]
	bl	_raw_spin_unlock_irqrestore
Lloh11:
	adrp	x8, _DCA_PROVIDER_ADD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DCA_PROVIDER_ADD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, _dca_provider_chain@GOTPAGE
Lloh15:
	ldr	x0, [x0, _dca_provider_chain@GOTPAGEOFF]
	mov	x2, #0
	bl	_blocking_notifier_call_chain
	mov	x0, x21
	bl	_kfree
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
	ldr	x21, [x22]
Lloh16:
	adrp	x0, _dca_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _dca_lock@GOTPAGEOFF]
	bl	_raw_spin_unlock_irqrestore
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_dca_sysfs_remove_provider
	bl	_unregister_dca_providers
	b	LBB0_1
LBB0_10:
	mov	x0, x20
	bl	_dca_pci_rc_from_dev
	bl	_dca_allocate_domain
	cbz	x0, LBB0_1
; %bb.11:
	mov	x21, x0
Lloh18:
	adrp	x0, _dca_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _dca_lock@GOTPAGEOFF]
	bl	_raw_spin_lock_irqsave
	mov	x0, x20
	bl	_dca_get_domain
	cbz	x0, LBB0_13
; %bb.12:
	mov	x1, x0
	b	LBB0_6
LBB0_13:
	add	x0, x21, #4
Lloh20:
	adrp	x1, _dca_domains@GOTPAGE
Lloh21:
	ldr	x1, [x1, _dca_domains@GOTPAGEOFF]
	bl	_list_add
	mov	x1, x21
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_dca_lock,4,2                   ; @dca_lock
	.comm	_dca_providers_blocked,8,3      ; @dca_providers_blocked
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dca_domains,4,2                ; @dca_domains
	.comm	_dca_provider_chain,4,2         ; @dca_provider_chain
	.comm	_DCA_PROVIDER_ADD,4,2           ; @DCA_PROVIDER_ADD
.subsections_via_symbols
