	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_fpga_region_get_bridges
_of_fpga_region_get_bridges:            ## @of_fpga_region_get_bridges
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%rdi), %r13
	movq	(%r13), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_of_fpga_bridge_get_to_list
	movl	%eax, %r12d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	je	LBB0_14
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	(%r13), %rax
LBB0_4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	callq	_of_node_put
	movq	(%r15), %r13
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %r14
	movl	$1, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	callq	_of_node_put
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	callq	_of_parse_phandle
	movq	%rax, %r14
	incl	%r12d
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %r14
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_of_fpga_bridge_get_to_list
	movq	%r13, %rbx
	movq	%r15, %r13
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_of_node_put
	movq	_EBUSY@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	movq	%r13, %r15
	movq	%rbx, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_10
## %bb.13:
	movq	%rbx, %rdi
	callq	_fpga_bridges_put
	xorl	%r12d, %r12d
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_11:
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fpga-bridges"

	.no_dead_strip	_of_fpga_region_get_bridges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_fpga_region_get_bridges
_of_fpga_region_get_bridges:            ; @of_fpga_region_get_bridges
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	x20, x21, [x0, #8]
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x19
	bl	_of_fpga_bridge_get_to_list
Lloh0:
	adrp	x27, _EBUSY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EBUSY@GOTPAGEOFF]
	ldr	w8, [x27]
	cmn	w0, w8
	b.eq	LBB0_13
; %bb.1:
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, #0
	b	LBB0_4
LBB0_3:
	ldr	x22, [x21]
LBB0_4:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_6
; %bb.5:
	bl	_of_node_put
	ldr	x21, [x20]
LBB0_6:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_13
; %bb.7:
	mov	x25, x0
	mov	w23, #1
Lloh6:
	adrp	x24, l_.str@PAGE
Lloh7:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_of_node_put
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	bl	_of_parse_phandle
	mov	x25, x0
	add	w23, w23, #1
	cbz	x0, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x25, x22
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	mov	x1, x20
	mov	x2, x19
	bl	_of_fpga_bridge_get_to_list
	mov	x26, x0
	mov	x0, x25
	bl	_of_node_put
	ldr	w8, [x27]
	cmn	w26, w8
	b.ne	LBB0_9
; %bb.12:
	mov	x0, x19
	bl	_fpga_bridges_put
	ldr	w8, [x27]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fpga-bridges"

	.no_dead_strip	_of_fpga_region_get_bridges
.subsections_via_symbols
