	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___class_register               ## -- Begin function __class_register
	.p2align	4, 0x90
___class_register:                      ## @__class_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	16(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	36(%rax), %rdi
	movq	_klist_class_dev_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_klist_class_dev_put@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_klist_init
	leaq	32(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%r12), %rdi
	callq	_kset_init
	movq	%r12, %rdi
	addq	$24, %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	___mutex_init
	movl	16(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_kobject_set_name
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	cmpq	$0, 8(%r14)
	jne	LBB0_6
## %bb.5:
	movq	_sysfs_dev_char_kobj@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_6:
	movq	_class_kset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movq	_class_ktype@GOTPCREL(%rip), %rax
	movq	%rax, (%r12)
	movq	%r14, 16(%r12)
	movq	%r12, (%r14)
	movq	%r12, %rdi
	callq	_kset_register
	testl	%eax, %eax
	je	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	callq	_class_get
	movl	%eax, %edi
	callq	_add_class_attrs
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_class_put
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device class '%s': registering\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_klist_class_dev_get,4,2        ## @klist_class_dev_get
	.comm	_klist_class_dev_put,4,2        ## @klist_class_dev_put
L_.str.1:                               ## @.str.1
	.asciz	"struct class mutex"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_sysfs_dev_char_kobj,8,3        ## @sysfs_dev_char_kobj
	.comm	_class_kset,8,3                 ## @class_kset
	.comm	_class_ktype,4,2                ## @class_ktype
	.comm	_block_class,24,3               ## @block_class
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___class_register               ; -- Begin function __class_register
	.p2align	2
___class_register:                      ; @__class_register
	.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	x21, x1
	mov	x19, x0
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	add	x0, x0, #36
Lloh5:
	adrp	x8, _klist_class_dev_get@GOTPAGE
Lloh6:
	ldr	x8, [x8, _klist_class_dev_get@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _klist_class_dev_put@GOTPAGE
Lloh9:
	ldr	x8, [x8, _klist_class_dev_put@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_klist_init
	add	x0, x20, #32
	bl	_INIT_LIST_HEAD
	add	x0, x20, #28
	bl	_kset_init
	add	x0, x20, #24
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	___mutex_init
	ldr	w2, [x19, #16]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_kobject_set_name
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _sysfs_dev_char_kobj@GOTPAGE
Lloh16:
	ldr	x8, [x8, _sysfs_dev_char_kobj@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_4:
Lloh18:
	adrp	x8, _class_kset@GOTPAGE
Lloh19:
	ldr	x8, [x8, _class_kset@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _class_ktype@GOTPAGE
Lloh22:
	ldr	x9, [x9, _class_ktype@GOTPAGEOFF]
	stp	x9, x8, [x20]
	str	x19, [x20, #16]
	str	x20, [x19]
	mov	x0, x20
	bl	_kset_register
	cbz	w0, LBB0_7
LBB0_5:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_class_get
	bl	_add_class_attrs
	mov	x20, x0
	mov	x0, x19
	bl	_class_put
	mov	x0, x20
LBB0_8:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device class '%s': registering\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_klist_class_dev_get,4,2        ; @klist_class_dev_get
	.comm	_klist_class_dev_put,4,2        ; @klist_class_dev_put
l_.str.1:                               ; @.str.1
	.asciz	"struct class mutex"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_sysfs_dev_char_kobj,8,3        ; @sysfs_dev_char_kobj
	.comm	_class_kset,8,3                 ; @class_kset
	.comm	_class_ktype,4,2                ; @class_ktype
	.comm	_block_class,24,3               ; @block_class
.subsections_via_symbols
