	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpga_bridge_create             ## -- Begin function fpga_bridge_create
	.p2align	4, 0x90
_fpga_bridge_create:                    ## @fpga_bridge_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	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rsi, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_fpga_bridge_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_7
## %bb.5:
	leaq	52(%rbx), %rdi
	callq	_mutex_init
	leaq	48(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r13, (%rbx)
	movq	%r15, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_device_initialize
	movl	(%r15), %eax
	movl	%eax, 28(%rbx)
	movq	_fpga_bridge_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, 8(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_dev_set_name
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_fpga_bridge_ida@GOTPCREL(%rip), %rdi
	movl	%r14d, %esi
	callq	_ida_simple_remove
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to register with no name!\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_fpga_bridge_ida,4,2            ## @fpga_bridge_ida
	.comm	_fpga_bridge_class,4,2          ## @fpga_bridge_class
L_.str.1:                               ## @.str.1
	.asciz	"br%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fpga_bridge_create             ; -- Begin function fpga_bridge_create
	.p2align	2
_fpga_bridge_create:                    ; @fpga_bridge_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	x20, x0
	cbz	x1, LBB0_7
; %bb.1:
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x0, x1
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	w3, [x24]
Lloh2:
	adrp	x0, _fpga_bridge_ida@GOTPAGE
Lloh3:
	ldr	x0, [x0, _fpga_bridge_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x24, x0
	add	x0, x19, #52
	bl	_mutex_init
	add	x0, x19, #48
	bl	_INIT_LIST_HEAD
	str	x23, [x19]
	add	x23, x19, #8
	stp	x22, x21, [x19, #32]
	mov	x0, x23
	bl	_device_initialize
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _fpga_bridge_class@GOTPAGE
Lloh5:
	ldr	x9, [x9, _fpga_bridge_class@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	x20, [x19, #16]
	ldr	w8, [x20]
	stp	w24, w8, [x19, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_dev_set_name
	cbz	w0, LBB0_9
; %bb.5:
Lloh9:
	adrp	x0, _fpga_bridge_ida@GOTPAGE
Lloh10:
	ldr	x0, [x0, _fpga_bridge_ida@GOTPAGEOFF]
	mov	x1, x24
	bl	_ida_simple_remove
LBB0_6:
	mov	x0, x19
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to register with no name!\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_fpga_bridge_ida,4,2            ; @fpga_bridge_ida
	.comm	_fpga_bridge_class,4,2          ; @fpga_bridge_class
l_.str.1:                               ; @.str.1
	.asciz	"br%d"

.subsections_via_symbols
