	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpga_mgr_create                ## -- Begin function fpga_mgr_create
	.p2align	4, 0x90
_fpga_mgr_create:                       ## @fpga_mgr_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	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movq	%rdx, %rbx
	cmpl	$0, 32(%rdx)
	je	LBB0_10
## %bb.2:
	cmpl	$0, 28(%rbx)
	je	LBB0_10
## %bb.3:
	cmpl	$0, 24(%rbx)
	je	LBB0_10
## %bb.4:
	movq	%rcx, %r12
	movq	%rsi, %r13
	cmpq	$0, 16(%rbx)
	movq	8(%rbx), %rax
	je	LBB0_5
## %bb.9:
	testq	%rax, %rax
	je	LBB0_6
LBB0_10:
	leaq	L_.str(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_fpga_mgr_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:
	leaq	48(%r15), %rdi
	callq	_mutex_init
	movq	%r13, (%r15)
	movq	%rbx, 40(%r15)
	movq	%r12, 32(%r15)
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_device_initialize
	movq	_fpga_mgr_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	%r14, 16(%r15)
	movl	(%r14), %eax
	movl	%eax, 12(%r15)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 8(%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_set_name
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	_fpga_mgr_ida@GOTPCREL(%rip), %rdi
	movl	%ebx, %esi
	callq	_ida_simple_remove
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_17
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to register without fpga_manager_ops\n"

L_.str.1:                               ## @.str.1
	.asciz	"Attempt to register with no name!\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_fpga_mgr_ida,4,2               ## @fpga_mgr_ida
	.comm	_fpga_mgr_class,4,2             ## @fpga_mgr_class
L_.str.2:                               ## @.str.2
	.asciz	"fpga%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpga_mgr_create                ; -- Begin function fpga_mgr_create
	.p2align	2
_fpga_mgr_create:                       ; @fpga_mgr_create
	.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	x19, x0
	cbz	x2, LBB0_6
; %bb.1:
	mov	x20, x2
	ldr	w8, [x2, #32]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_6
; %bb.4:
	mov	x21, x3
	mov	x22, x1
	ldp	x8, x9, [x20, #8]
	cbz	x9, LBB0_10
; %bb.5:
	cbz	x8, LBB0_11
LBB0_6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
LBB0_8:
	mov	x23, #0
LBB0_9:
	mov	x0, x23
	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_10:
	cbz	x8, LBB0_6
LBB0_11:
	cbz	x22, LBB0_18
; %bb.12:
	mov	x0, x22
	bl	_strlen
	cbz	w0, LBB0_18
; %bb.13:
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.14:
	ldr	w3, [x24]
Lloh4:
	adrp	x0, _fpga_mgr_ida@GOTPAGE
Lloh5:
	ldr	x0, [x0, _fpga_mgr_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_17
; %bb.15:
	mov	x24, x0
	add	x0, x23, #48
	bl	_mutex_init
	str	x22, [x23]
	add	x22, x23, #8
	stp	x21, x20, [x23, #32]
	mov	x0, x22
	bl	_device_initialize
Lloh6:
	adrp	x8, _fpga_mgr_class@GOTPAGE
Lloh7:
	ldr	x8, [x8, _fpga_mgr_class@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	stp	w9, w8, [x23, #24]
	str	x19, [x23, #16]
	ldr	w8, [x19]
	stp	w24, w8, [x23, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x24
	bl	_dev_set_name
	cbz	w0, LBB0_9
; %bb.16:
Lloh11:
	adrp	x0, _fpga_mgr_ida@GOTPAGE
Lloh12:
	ldr	x0, [x0, _fpga_mgr_ida@GOTPAGEOFF]
	mov	x1, x24
	bl	_ida_simple_remove
LBB0_17:
	mov	x0, x23
	bl	_kfree
	b	LBB0_8
LBB0_18:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to register without fpga_manager_ops\n"

l_.str.1:                               ; @.str.1
	.asciz	"Attempt to register with no name!\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_fpga_mgr_ida,4,2               ; @fpga_mgr_ida
	.comm	_fpga_mgr_class,4,2             ; @fpga_mgr_class
l_.str.2:                               ; @.str.2
	.asciz	"fpga%d"

.subsections_via_symbols
