	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_chardev_init               ## -- Begin function kfd_chardev_init
	.p2align	4, 0x90
_kfd_chardev_init:                      ## @kfd_chardev_init
	.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	_kfd_dev_name@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_kfd_fops@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	callq	_register_chrdev
	movq	_kfd_char_dev_major@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_class_create
	movq	_kfd_class@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	(%r13), %r14d
	movl	(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_MKDEV
	movl	(%r15), %r8d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	_kfd_device@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_PTR_ERR
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r13), %edi
	callq	_class_destroy
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
LBB0_5:
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_unregister_chrdev
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kfd_dev_name,4,2               ## @kfd_dev_name
	.comm	_kfd_fops,4,2                   ## @kfd_fops
	.comm	_kfd_char_dev_major,4,2         ## @kfd_char_dev_major
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_kfd_class,4,2                  ## @kfd_class
	.comm	_kfd_device,4,2                 ## @kfd_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_chardev_init               ; -- Begin function kfd_chardev_init
	.p2align	2
_kfd_chardev_init:                      ; @kfd_chardev_init
	.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
Lloh0:
	adrp	x20, _kfd_dev_name@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kfd_dev_name@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x2, _kfd_fops@GOTPAGE
Lloh3:
	ldr	x2, [x2, _kfd_fops@GOTPAGEOFF]
	mov	w0, #0
	bl	_register_chrdev
Lloh4:
	adrp	x21, _kfd_char_dev_major@GOTPAGE
Lloh5:
	ldr	x21, [x21, _kfd_char_dev_major@GOTPAGEOFF]
	str	w0, [x21]
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_class_create
Lloh9:
	adrp	x22, _kfd_class@GOTPAGE
Lloh10:
	ldr	x22, [x22, _kfd_class@GOTPAGEOFF]
	str	w0, [x22]
	bl	_PTR_ERR
	mov	x19, x0
	ldr	w0, [x22]
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	w19, [x22]
	ldr	w0, [x21]
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w4, [x20]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_device_create
Lloh11:
	adrp	x23, _kfd_device@GOTPAGE
Lloh12:
	ldr	x23, [x23, _kfd_device@GOTPAGEOFF]
	str	w0, [x23]
	bl	_PTR_ERR
	mov	x19, x0
	ldr	w0, [x23]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x22]
	bl	_class_destroy
LBB0_4:
	ldr	w0, [x21]
	ldr	w1, [x20]
	bl	_unregister_chrdev
	b	LBB0_7
LBB0_5:
	mov	x19, x0
	b	LBB0_7
LBB0_6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_kfd_dev_name,4,2               ; @kfd_dev_name
	.comm	_kfd_fops,4,2                   ; @kfd_fops
	.comm	_kfd_char_dev_major,4,2         ; @kfd_char_dev_major
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_kfd_class,4,2                  ; @kfd_class
	.comm	_kfd_device,4,2                 ; @kfd_device
.subsections_via_symbols
