	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fst_cpureset
_fst_cpureset:                          ## @fst_cpureset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_FST_FAMILY_TXU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	16(%r14), %edi
	movq	_PCI_INTERRUPT_LINE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-25(%rbp), %rdx
	callq	_pci_read_config_byte
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DBG_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dbg
LBB0_3:
	movq	8(%r14), %rax
	movq	_CNTRL_9054@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movl	$17423, %edi                    ## imm = 0x440F
	callq	_outw
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movl	$1039, %edi                     ## imm = 0x40F
	callq	_outw
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movl	$9231, %edi                     ## imm = 0x240F
	callq	_outw
	movl	$10, %edi
	movl	$20, %esi
	callq	_usleep_range
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rsi
	addq	$2, %rsi
	movl	$1039, %edi                     ## imm = 0x40F
	callq	_outw
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movzbl	-25(%rbp), %edx
	callq	_pci_write_config_byte
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_DBG_ASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dbg
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_CNTRL_9052@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%r14), %rdi
	callq	_inl
	movl	%eax, %ebx
	movl	%eax, %edi
	orl	$1073741824, %edi               ## imm = 0x40000000
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	callq	_outl
	andl	$-1073741825, %ebx              ## imm = 0xBFFFFFFF
	movq	(%r15), %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outl                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FST_FAMILY_TXU,8,3             ## @FST_FAMILY_TXU
	.comm	_PCI_INTERRUPT_LINE,4,2         ## @PCI_INTERRUPT_LINE
	.comm	_DBG_ASS,4,2                    ## @DBG_ASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in reading interrupt line register\n"

	.comm	_CNTRL_9054,8,3                 ## @CNTRL_9054
L_.str.1:                               ## @.str.1
	.asciz	"Error in writing interrupt line register\n"

	.comm	_CNTRL_9052,8,3                 ## @CNTRL_9052
	.no_dead_strip	_fst_cpureset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fst_cpureset
_fst_cpureset:                          ; @fst_cpureset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FST_FAMILY_TXU@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FST_FAMILY_TXU@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x21, _PCI_INTERRUPT_LINE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PCI_INTERRUPT_LINE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #15
	bl	_pci_read_config_byte
Lloh5:
	adrp	x20, _DBG_ASS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _DBG_ASS@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dbg
LBB0_3:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x22, _CNTRL_9054@GOTPAGE
Lloh10:
	ldr	x22, [x22, _CNTRL_9054@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x8, #2
	mov	w0, #17423
	bl	_outw
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x8, #2
	mov	w0, #1039
	bl	_outw
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x8, #2
	mov	w0, #9231
	bl	_outw
	mov	w0, #10
	mov	w1, #20
	bl	_usleep_range
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x1, x8, #2
	mov	w0, #1039
	bl	_outw
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	ldrb	w2, [sp, #15]
	bl	_pci_write_config_byte
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dbg
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x21, _CNTRL_9052@GOTPAGE
Lloh14:
	ldr	x21, [x21, _CNTRL_9052@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inl
	mov	x20, x0
	orr	w0, w0, #0x40000000
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outl
	and	w0, w20, #0xbfffffff
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_outl
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FST_FAMILY_TXU,8,3             ; @FST_FAMILY_TXU
	.comm	_PCI_INTERRUPT_LINE,4,2         ; @PCI_INTERRUPT_LINE
	.comm	_DBG_ASS,4,2                    ; @DBG_ASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in reading interrupt line register\n"

	.comm	_CNTRL_9054,8,3                 ; @CNTRL_9054
l_.str.1:                               ; @.str.1
	.asciz	"Error in writing interrupt line register\n"

	.comm	_CNTRL_9052,8,3                 ; @CNTRL_9052
	.no_dead_strip	_fst_cpureset
.subsections_via_symbols
