	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serverworks_fetch_size
_serverworks_fetch_size:                ## @serverworks_fetch_size
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_agp_bridge@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	24(%rax), %rax
	movl	4(%rax), %edi
	callq	_A_SIZE_LVL2
	movq	%rax, %rbx
	movq	(%r14), %rax
	movl	32(%rax), %edi
	movq	_serverworks_private@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-40(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	(%r14), %rax
	movl	32(%rax), %edi
	movl	(%r15), %esi
	movq	_SVWRKS_SIZE_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_pci_write_config_dword
	movq	(%r14), %rax
	movl	32(%rax), %edi
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	callq	_pci_read_config_dword
	movq	(%r14), %rax
	movl	32(%rax), %edi
	movl	(%r15), %esi
	movl	-40(%rbp), %edx
	callq	_pci_write_config_dword
	movl	-36(%rbp), %ecx
	andl	(%r12), %ecx
	movl	%ecx, -36(%rbp)
	movq	(%r14), %rax
	movq	24(%rax), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.1:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	4(%rbx), %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	addq	$8, %rbx
	cmpq	%rsi, %rdx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, 8(%rax)
	movq	%rbx, 16(%rax)
	movl	%esi, (%rax)
	movl	(%rbx), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.comm	_serverworks_private,4,2        ## @serverworks_private
	.comm	_SVWRKS_SIZE_MASK,4,2           ## @SVWRKS_SIZE_MASK
	.no_dead_strip	_serverworks_fetch_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serverworks_fetch_size
_serverworks_fetch_size:                ; @serverworks_fetch_size
	.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
Lloh0:
	adrp	x20, _agp_bridge@GOTPAGE
Lloh1:
	ldr	x20, [x20, _agp_bridge@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x8, [x8, #24]
	ldr	w0, [x8, #4]
	bl	_A_SIZE_LVL2
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
Lloh2:
	adrp	x21, _serverworks_private@GOTPAGE
Lloh3:
	ldr	x21, [x21, _serverworks_private@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
	ldr	w1, [x21]
Lloh4:
	adrp	x22, _SVWRKS_SIZE_MASK@GOTPAGE
Lloh5:
	ldr	x22, [x22, _SVWRKS_SIZE_MASK@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_pci_read_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8, #32]
	ldr	w1, [x21]
	ldr	w2, [sp, #12]
	bl	_pci_write_config_dword
	ldr	w8, [x22]
	ldr	w9, [sp, #8]
	and	w9, w9, w8
	str	w9, [sp, #8]
	ldr	x8, [x20]
	ldr	x10, [x8, #24]
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x19, #4]
	cmp	w9, w12
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #1
	add	x19, x19, #8
	cmp	x10, x11
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	stp	x19, x19, [x8, #8]
	str	w11, [x8]
	ldr	w0, [x19]
LBB0_6:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.comm	_serverworks_private,4,2        ; @serverworks_private
	.comm	_SVWRKS_SIZE_MASK,4,2           ; @SVWRKS_SIZE_MASK
	.no_dead_strip	_serverworks_fetch_size
.subsections_via_symbols
