	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_cdev_init                 ## -- Begin function hfi1_cdev_init
	.p2align	4, 0x90
_hfi1_cdev_init:                        ## @hfi1_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	16(%rbp), %r13
	movq	_hfi1_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_MKDEV
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %ebx
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cdev_set_parent
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_kobject_set_name
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_cdev_add
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.4:
	movq	_class@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	%r13d, %ecx
	negl	%ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_pr_err
	jmp	LBB0_7
LBB0_3:
	movq	_user_class@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %r8
	xorl	%esi, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_device_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %r13d
	movl	%eax, %ecx
	negl	%ecx
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_pr_err
	movq	%r12, %rdi
	callq	_cdev_del
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hfi1_dev,4,2                   ## @hfi1_dev
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not add cdev for minor %d, %s (err %d)\n"

	.comm	_user_class,4,2                 ## @user_class
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_class,4,2                      ## @class
L_.str.2:                               ## @.str.2
	.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	_hfi1_cdev_init                 ; -- Begin function hfi1_cdev_init
	.p2align	2
_hfi1_cdev_init:                        ; @hfi1_cdev_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x6
	mov	x24, x5
	mov	x19, x4
	mov	x21, x3
	mov	x26, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _hfi1_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hfi1_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MAJOR
	mov	x1, x22
	bl	_MKDEV
	mov	x25, x0
	mov	x0, x21
	mov	x1, x26
	bl	_cdev_init
Lloh3:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_cdev_set_parent
	mov	x0, x21
	mov	x1, x20
	bl	_kobject_set_name
	mov	x0, x21
	mov	x1, x25
	mov	w2, #1
	bl	_cdev_add
	mov	x23, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _class@GOTPAGEOFF]
Lloh8:
	adrp	x9, _user_class@GOTPAGE
Lloh9:
	ldr	x9, [x9, _user_class@GOTPAGEOFF]
	cmp	w24, #0
	csel	x8, x8, x9, eq
	ldr	w0, [x8]
Lloh10:
	adrp	x4, l_.str.1@PAGE
Lloh11:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x2, x25
	mov	x3, #0
	mov	x5, x20
	bl	_device_create
	mov	x24, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x24
	bl	_PTR_ERR
	mov	x23, x0
	neg	w3, w0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_pr_err
	mov	x0, x21
	bl	_cdev_del
	b	LBB0_4
LBB0_3:
	neg	w3, w23
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x20
	bl	_pr_err
LBB0_4:
	mov	x24, #0
LBB0_5:
	str	x24, [x19]
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hfi1_dev,4,2                   ; @hfi1_dev
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not add cdev for minor %d, %s (err %d)\n"

	.comm	_user_class,4,2                 ; @user_class
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_class,4,2                      ; @class
l_.str.2:                               ; @.str.2
	.asciz	"Could not create device for minor %d, %s (err %d)\n"

.subsections_via_symbols
