	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dca_sysfs_add_provider         ## -- Begin function dca_sysfs_add_provider
	.p2align	4, 0x90
_dca_sysfs_add_provider:                ## @dca_sysfs_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_idr_preload
	movq	_dca_idr_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_dca_idr@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, (%r15)
LBB0_2:
	movq	_dca_idr_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_idr_preload_end
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.3:
	movq	_dca_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_MKDEV
	movl	(%r15), %r9d
	leaq	L_.str(%rip), %r8
	movl	%r12d, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_dca_idr_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	(%r15), %esi
	movq	_dca_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	%r14, 8(%r15)
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dca_idr_lock,4,2               ## @dca_idr_lock
	.comm	_dca_idr,4,2                    ## @dca_idr
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.comm	_dca_class,4,2                  ## @dca_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dca%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dca_sysfs_add_provider         ; -- Begin function dca_sysfs_add_provider
	.p2align	2
_dca_sysfs_add_provider:                ; @dca_sysfs_add_provider
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_idr_preload
Lloh3:
	adrp	x0, _dca_idr_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dca_idr_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh5:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x0, _dca_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dca_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w21, [x19]
LBB0_2:
Lloh10:
	adrp	x0, _dca_idr_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _dca_idr_lock@GOTPAGEOFF]
	bl	_spin_unlock
	bl	_idr_preload_end
	tbnz	w21, #31, LBB0_6
; %bb.3:
Lloh12:
	adrp	x8, _dca_class@GOTPAGE
Lloh13:
	ldr	x8, [x8, _dca_class@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	mov	w0, #0
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w5, [x19]
Lloh15:
	adrp	x4, l_.str@PAGE
Lloh16:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, #0
	bl	_device_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
Lloh17:
	adrp	x21, _dca_idr_lock@GOTPAGE
Lloh18:
	ldr	x21, [x21, _dca_idr_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	ldr	w1, [x19]
Lloh19:
	adrp	x0, _dca_idr@GOTPAGE
Lloh20:
	ldr	x0, [x0, _dca_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	mov	w21, #0
	str	x20, [x19, #8]
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dca_idr_lock,4,2               ; @dca_idr_lock
	.comm	_dca_idr,4,2                    ; @dca_idr
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.comm	_dca_class,4,2                  ; @dca_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dca%d"

.subsections_via_symbols
