	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __fpga_bridge_get
___fpga_bridge_get:                     ## @__fpga_bridge_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_to_fpga_bridge
	movq	%rax, %rbx
	movq	%r12, 8(%rax)
	movq	%rax, %rdi
	callq	_mutex_trylock
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	addq	$4, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_4:
	negl	%r14d
	movq	%r15, %rdi
	callq	_put_device
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get\n"

	.no_dead_strip	___fpga_bridge_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __fpga_bridge_get
___fpga_bridge_get:                     ; @__fpga_bridge_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	bl	_to_fpga_bridge
	mov	x20, x0
	str	x21, [x0, #8]
	bl	_mutex_trylock
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_4
; %bb.2:
	add	x0, x20, #4
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_5:
	neg	w20, w22
	mov	x0, x19
	bl	_put_device
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get\n"

	.no_dead_strip	___fpga_bridge_get
.subsections_via_symbols
