	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fme_bridge_enable_set
_fme_bridge_enable_set:                 ## @fme_bridge_enable_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.1:
	movq	16(%rbx), %rsi
	movl	4(%rsi), %edi
	movq	_dfl_fpga_check_port_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_dfl_fpga_cdev_find_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %rdi
	movq	%rax, (%rbx)
LBB0_5:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%rax), %rcx
	jmp	LBB0_11
LBB0_7:
	callq	_dfl_fpga_port_ops_get
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	%rax, 8(%rbx)
	movq	(%rbx), %rdi
LBB0_11:
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_9:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dfl_fpga_check_port_id,4,2     ## @dfl_fpga_check_port_id
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_fme_bridge_enable_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fme_bridge_enable_set
_fme_bridge_enable_set:                 ; @fme_bridge_enable_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	x2, [x8]
	b	LBB0_8
LBB0_3:
	ldr	x1, [x20, #16]
	ldr	w0, [x1, #4]
Lloh0:
	adrp	x8, _dfl_fpga_check_port_id@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dfl_fpga_check_port_id@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_dfl_fpga_cdev_find_port
	cbz	x0, LBB0_10
; %bb.4:
	str	x0, [x20]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_2
LBB0_5:
	bl	_dfl_fpga_port_ops_get
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x2, [x0]
	cbz	x2, LBB0_9
; %bb.7:
	str	x0, [x20, #8]
	ldr	x0, [x20]
LBB0_8:
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_9:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dfl_fpga_check_port_id,4,2     ; @dfl_fpga_check_port_id
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_fme_bridge_enable_set
.subsections_via_symbols
