	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_find_free_board
_sx_find_free_board:                    ## @sx_find_free_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SX_NBOARDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_SX_BOARD_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, (%rdx,%rax,4)
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_2
## %bb.4:
	movl	%ecx, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SX_NBOARDS,4,2                 ## @SX_NBOARDS
	.comm	_boards,8,3                     ## @boards
	.comm	_SX_BOARD_PRESENT,4,2           ## @SX_BOARD_PRESENT
	.no_dead_strip	_sx_find_free_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_find_free_board
_sx_find_free_board:                    ; @sx_find_free_board
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SX_NBOARDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SX_NBOARDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x0, #0
Lloh3:
	adrp	x9, _boards@GOTPAGE
Lloh4:
	ldr	x9, [x9, _boards@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SX_BOARD_PRESENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SX_BOARD_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x0, lsl #2]
	tst	w10, w11
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.4:
	mov	x0, x8
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SX_NBOARDS,4,2                 ; @SX_NBOARDS
	.comm	_boards,8,3                     ; @boards
	.comm	_SX_BOARD_PRESENT,4,2           ; @SX_BOARD_PRESENT
	.no_dead_strip	_sx_find_free_board
.subsections_via_symbols
