	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_register                   ## -- Begin function mei_register
	.p2align	4, 0x90
_mei_register:                          ## @mei_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	%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, %r14
	movq	%rdi, %r15
	callq	_mei_minor_get
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_mei_devt@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MAJOR
	movl	4(%r15), %esi
	movl	%eax, %edi
	callq	_MKDEV
	movl	%eax, %r12d
	movq	_mei_fops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cdev_init
	movq	(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_cdev_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_MAJOR
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_mei_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mei_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%r15), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %r9
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	%r15, %rcx
	callq	_device_create_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movl	(%r13), %edi
	callq	_MAJOR
	movl	4(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cdev_del
LBB0_6:
	movq	%r15, %rdi
	callq	_mei_minor_free
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mei_dbgfs_register
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mei_devt,4,2                   ## @mei_devt
	.comm	_mei_fops,4,2                   ## @mei_fops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to add device %d:%d\n"

	.comm	_mei_class,4,2                  ## @mei_class
	.comm	_mei_groups,4,2                 ## @mei_groups
L_.str.1:                               ## @.str.1
	.asciz	"mei%d"

L_.str.2:                               ## @.str.2
	.asciz	"unable to create device %d:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_register                   ; -- Begin function mei_register
	.p2align	2
_mei_register:                          ; @mei_register
	.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
	bl	_mei_minor_get
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _mei_devt@GOTPAGE
Lloh1:
	ldr	x23, [x23, _mei_devt@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_MAJOR
	ldr	w1, [x19, #4]
	bl	_MKDEV
	mov	x22, x0
Lloh2:
	adrp	x1, _mei_fops@GOTPAGE
Lloh3:
	ldr	x1, [x1, _mei_fops@GOTPAGEOFF]
	mov	x0, x19
	bl	_cdev_init
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_cdev_add
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x23]
	bl	_MAJOR
	mov	x2, x0
	ldr	w3, [x19, #4]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_6
LBB0_3:
	mov	x21, x0
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _mei_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mei_class@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _mei_groups@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mei_groups@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldr	w6, [x19, #4]
Lloh12:
	adrp	x5, l_.str.1@PAGE
Lloh13:
	add	x5, x5, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_device_create_with_groups
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	ldr	w0, [x23]
	bl	_MAJOR
	mov	x2, x0
	ldr	w3, [x19, #4]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	bl	_cdev_del
LBB0_6:
	mov	x0, x19
	bl	_mei_minor_free
LBB0_7:
	mov	x0, x21
	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:
	mov	x0, x21
	bl	_dev_name
	mov	x1, x0
	mov	x0, x19
	bl	_mei_dbgfs_register
	mov	w21, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_mei_devt,4,2                   ; @mei_devt
	.comm	_mei_fops,4,2                   ; @mei_fops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to add device %d:%d\n"

	.comm	_mei_class,4,2                  ; @mei_class
	.comm	_mei_groups,4,2                 ; @mei_groups
l_.str.1:                               ; @.str.1
	.asciz	"mei%d"

l_.str.2:                               ; @.str.2
	.asciz	"unable to create device %d:%d\n"

.subsections_via_symbols
