	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_cdev_init                  ## -- Begin function qib_cdev_init
	.p2align	4, 0x90
_qib_cdev_init:                         ## @qib_cdev_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	_qib_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_cdev_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_kobject_set_name
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_cdev_add
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	%r13, %r9
	js	LBB0_5
## %bb.2:
	movq	_qib_class@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %r8
	xorl	%esi, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movq	%r9, %r13
	callq	_device_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	xorl	%ebx, %ebx
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_5:
	movq	%r9, %r13
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %ecx
	negl	%ecx
	xorl	%r15d, %r15d
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movq	%rbx, %rdi
	callq	_cdev_del
	xorl	%ebx, %ebx
LBB0_8:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r15, (%r12)
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qib_dev,4,2                    ## @qib_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate cdev for minor %d, %s\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.1:                               ## @.str.1
	.asciz	"Could not add cdev for minor %d, %s (err %d)\n"

	.comm	_qib_class,4,2                  ## @qib_class
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"Could not create device for minor %d, %s (err %d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qib_cdev_init                  ; -- Begin function qib_cdev_init
	.p2align	2
_qib_cdev_init:                         ; @qib_cdev_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _qib_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qib_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAJOR
	mov	x1, x23
	bl	_MKDEV
	mov	x25, x0
	bl	_cdev_alloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x24, [x21, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_kobject_set_name
	mov	x0, x21
	mov	x1, x25
	mov	w2, #1
	bl	_cdev_add
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _qib_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qib_class@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x4, l_.str.2@PAGE
Lloh10:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x2, x25
	mov	x3, #0
	mov	x5, x22
	bl	_device_create
	mov	x25, x0
	bl	_IS_ERR
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x25
	bl	_PTR_ERR
	mov	x24, x0
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_pr_err
	mov	x25, #0
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_7
LBB0_5:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	neg	w8, w24
	str	x8, [sp]
	mov	x1, x23
	mov	x2, x22
	bl	_pr_err
	mov	x0, x21
	bl	_cdev_del
	mov	x21, #0
	mov	x25, #0
LBB0_7:
	str	x21, [x20]
	str	x25, [x19]
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_qib_dev,4,2                    ; @qib_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate cdev for minor %d, %s\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.1:                               ; @.str.1
	.asciz	"Could not add cdev for minor %d, %s (err %d)\n"

	.comm	_qib_class,4,2                  ; @qib_class
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"Could not create device for minor %d, %s (err %d)\n"

.subsections_via_symbols
