	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf_chr_drv_create
_adf_chr_drv_create:                    ## @adf_chr_drv_create
	.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	_DEVICE_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_alloc_chrdev_region
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_class_create
	movq	_adf_ctl_drv@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_9
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_MAJOR
	movl	%eax, 12(%r12)
	leaq	8(%r12), %r14
	movq	_adf_ctl_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_cdev_init
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_cdev_add
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_8
LBB0_6:
	movq	(%r12), %r15
	movl	12(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_MKDEV
	movl	(%r13), %r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	%r14, %rdi
	callq	_cdev_del
LBB0_8:
	movq	(%r12), %rdi
	callq	_class_destroy
LBB0_9:
	movl	-44(%rbp), %edi
	movl	$1, %esi
	callq	_unregister_chrdev_region
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEVICE_NAME,4,2                ## @DEVICE_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QAT: unable to allocate chrdev region\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_adf_ctl_drv,16,3               ## @adf_ctl_drv
L_.str.1:                               ## @.str.1
	.asciz	"QAT: class_create failed for adf_ctl\n"

	.comm	_adf_ctl_ops,4,2                ## @adf_ctl_ops
L_.str.2:                               ## @.str.2
	.asciz	"QAT: cdev add failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"QAT: failed to create device\n"

	.no_dead_strip	_adf_chr_drv_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf_chr_drv_create
_adf_chr_drv_create:                    ; @adf_chr_drv_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x21, _DEVICE_NAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DEVICE_NAME@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x0, sp, #12
	mov	w1, #0
	mov	w2, #1
	bl	_alloc_chrdev_region
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_2:
Lloh4:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_class_create
Lloh7:
	adrp	x20, _adf_ctl_drv@GOTPAGE
Lloh8:
	ldr	x20, [x20, _adf_ctl_drv@GOTPAGEOFF]
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_9
LBB0_4:
	ldr	w0, [sp, #12]
	bl	_MAJOR
	str	w0, [x20, #12]
	add	x19, x20, #8
Lloh11:
	adrp	x1, _adf_ctl_ops@GOTPAGE
Lloh12:
	ldr	x1, [x1, _adf_ctl_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_cdev_init
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #1
	bl	_cdev_add
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_8
LBB0_6:
	ldr	x19, [x20]
	ldr	w0, [x20, #12]
	mov	w1, #0
	bl	_MKDEV
	mov	x2, x0
	ldr	w4, [x21]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_device_create
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.7:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	add	x0, x20, #8
	bl	_cdev_del
LBB0_8:
	ldr	x0, [x20]
	bl	_class_destroy
LBB0_9:
	ldr	w0, [sp, #12]
	mov	w1, #1
	bl	_unregister_chrdev_region
LBB0_10:
Lloh17:
	adrp	x8, _EFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DEVICE_NAME,4,2                ; @DEVICE_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QAT: unable to allocate chrdev region\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_adf_ctl_drv,16,3               ; @adf_ctl_drv
l_.str.1:                               ; @.str.1
	.asciz	"QAT: class_create failed for adf_ctl\n"

	.comm	_adf_ctl_ops,4,2                ; @adf_ctl_ops
l_.str.2:                               ; @.str.2
	.asciz	"QAT: cdev add failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"QAT: failed to create device\n"

	.no_dead_strip	_adf_chr_drv_create
.subsections_via_symbols
