	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_class_interface_register       ## -- Begin function class_interface_register
	.p2align	4, 0x90
_class_interface_register:              ## @class_interface_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	callq	_class_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	(%rax), %rdi
	callq	_mutex_lock
	leaq	8(%rbx), %rdi
	movq	(%r14), %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.7:
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_class_dev_iter_init
	movq	%r15, %rdi
	callq	_class_dev_iter_next
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	-32(%rbp), %r15
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	*(%rbx)
	movq	%r15, %rdi
	callq	_class_dev_iter_next
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:
	leaq	-32(%rbp), %rdi
	callq	_class_dev_iter_exit
LBB0_11:
	movq	(%r14), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_class_interface_register       ; -- Begin function class_interface_register
	.p2align	2
_class_interface_register:              ; @class_interface_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	cbz	w0, LBB0_7
; %bb.2:
	bl	_class_get
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	ldr	x0, [x0]
	bl	_mutex_lock
	add	x0, x19, #8
	ldr	x8, [x20]
	add	x1, x8, #4
	bl	_list_add_tail
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.4:
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	bl	_class_dev_iter_init
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_class_dev_iter_next
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	mov	x1, x19
	blr	x8
	b	LBB0_5
LBB0_7:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	add	x0, sp, #8
	bl	_class_dev_iter_exit
LBB0_11:
	ldr	x0, [x20]
	bl	_mutex_unlock
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
