	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sx_start_board
_sx_start_board:                        ## @sx_start_board
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_IS_SX_BOARD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_SX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SX_CONF_BUSEN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edx
	movq	%rbx, %rdi
LBB0_8:
	callq	_write_sx_byte
	jmp	LBB0_9
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_EISA_BOARD
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_SI2_EISA_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SI2_EISA_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_sx_byte
	movl	(%rbx), %edi
	shll	$4, %edi
	orl	$4, %edi
	movl	$3074, %esi                     ## imm = 0xC02
	addq	8(%rbx), %rsi
	callq	_outb
LBB0_9:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_IS_SI1_BOARD
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SI1_ISA_RESET_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_sx_byte
	movq	_SI1_ISA_INTCL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_6:
	movq	_SI2_ISA_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SI2_ISA_RESET_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_write_sx_byte
	movq	_SI2_ISA_INTCLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SI2_ISA_INTCLEAR_SET@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_SX_CONFIG,4,2                  ## @SX_CONFIG
	.comm	_SX_CONF_BUSEN,4,2              ## @SX_CONF_BUSEN
	.comm	_SI2_EISA_OFF,4,2               ## @SI2_EISA_OFF
	.comm	_SI2_EISA_VAL,4,2               ## @SI2_EISA_VAL
	.comm	_SI1_ISA_RESET_CLEAR,4,2        ## @SI1_ISA_RESET_CLEAR
	.comm	_SI1_ISA_INTCL,4,2              ## @SI1_ISA_INTCL
	.comm	_SI2_ISA_RESET,4,2              ## @SI2_ISA_RESET
	.comm	_SI2_ISA_RESET_CLEAR,4,2        ## @SI2_ISA_RESET_CLEAR
	.comm	_SI2_ISA_INTCLEAR,4,2           ## @SI2_ISA_INTCLEAR
	.comm	_SI2_ISA_INTCLEAR_SET,4,2       ## @SI2_ISA_INTCLEAR_SET
	.no_dead_strip	_sx_start_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sx_start_board
_sx_start_board:                        ; @sx_start_board
	.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, x0
	bl	_IS_SX_BOARD
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _SX_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SX_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SX_CONF_BUSEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SX_CONF_BUSEN@GOTPAGEOFF]
LBB0_2:
	ldr	w2, [x8]
	mov	x0, x19
LBB0_3:
	bl	_write_sx_byte
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_IS_EISA_BOARD
	cbz	x0, LBB0_7
; %bb.5:
Lloh5:
	adrp	x8, _SI2_EISA_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SI2_EISA_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SI2_EISA_VAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI2_EISA_VAL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_sx_byte
	ldr	w8, [x19]
	mov	w0, #4
	bfi	w0, w8, #4, #28
	ldr	x8, [x19, #8]
	add	x1, x8, #3074
	bl	_outb
LBB0_6:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_IS_SI1_BOARD
	cbz	x0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _SI1_ISA_RESET_CLEAR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SI1_ISA_RESET_CLEAR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_write_sx_byte
Lloh14:
	adrp	x8, _SI1_ISA_INTCL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SI1_ISA_INTCL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_3
LBB0_9:
Lloh17:
	adrp	x8, _SI2_ISA_RESET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SI2_ISA_RESET@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SI2_ISA_RESET_CLEAR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SI2_ISA_RESET_CLEAR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_write_sx_byte
Lloh23:
	adrp	x8, _SI2_ISA_INTCLEAR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SI2_ISA_INTCLEAR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _SI2_ISA_INTCLEAR_SET@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SI2_ISA_INTCLEAR_SET@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SX_CONFIG,4,2                  ; @SX_CONFIG
	.comm	_SX_CONF_BUSEN,4,2              ; @SX_CONF_BUSEN
	.comm	_SI2_EISA_OFF,4,2               ; @SI2_EISA_OFF
	.comm	_SI2_EISA_VAL,4,2               ; @SI2_EISA_VAL
	.comm	_SI1_ISA_RESET_CLEAR,4,2        ; @SI1_ISA_RESET_CLEAR
	.comm	_SI1_ISA_INTCL,4,2              ; @SI1_ISA_INTCL
	.comm	_SI2_ISA_RESET,4,2              ; @SI2_ISA_RESET
	.comm	_SI2_ISA_RESET_CLEAR,4,2        ; @SI2_ISA_RESET_CLEAR
	.comm	_SI2_ISA_INTCLEAR,4,2           ; @SI2_ISA_INTCLEAR
	.comm	_SI2_ISA_INTCLEAR_SET,4,2       ; @SI2_ISA_INTCLEAR_SET
	.no_dead_strip	_sx_start_board
.subsections_via_symbols
