	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_agp
_cap_agp:                               ## @cap_agp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	_AGP_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %r15d
	movq	_AGP_CAPID@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movl	%r12d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	$4, %ecx
	callq	_read_config
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_MODE_3
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_RATE
	testb	$-128, %al
	je	LBB0_3
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	callq	_printf
LBB0_3:
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_RATE
	testb	$-127, %al
	je	LBB0_12
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_11
LBB0_5:
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_RATE
	testb	$-126, %al
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
LBB0_7:
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_RATE
	testb	$-125, %al
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
LBB0_9:
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_RATE
	testb	$-124, %al
	je	LBB0_12
## %bb.10:
	leaq	L_.str.5(%rip), %rdi
LBB0_11:
	callq	_printf
LBB0_12:
	movl	%r15d, %edi
	callq	_AGP_MODE_GET_SBA
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rdi
	callq	_printf
LBB0_14:
	movl	%r14d, %edi
	callq	_AGP_MODE_GET_AGP
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.7(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	callq	_AGP_MODE_GET_MODE_3
	testq	%rax, %rax
	je	LBB0_21
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	movl	%r14d, %edi
	callq	_AGP_MODE_GET_RATE
	cmpl	$128, %eax
	je	LBB0_18
## %bb.19:
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.20:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_26
LBB0_21:
	movl	%r14d, %edi
	callq	_AGP_MODE_GET_RATE
	addl	$-130, %eax
	cmpl	$2, %eax
	ja	LBB0_24
## %bb.22:
	cltq
	leaq	l_reltable.cap_agp(%rip), %rcx
	movslq	(%rcx,%rax,4), %rdi
	addq	%rcx, %rdi
	jmp	LBB0_23
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
LBB0_23:
	callq	_printf
LBB0_24:
	movl	%r14d, %edi
	callq	_AGP_MODE_GET_SBA
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	leaq	L_.str.6(%rip), %rdi
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_27:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGP_STATUS,8,3                 ## @AGP_STATUS
	.comm	_AGP_CAPID,8,3                  ## @AGP_CAPID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"AGP "

L_.str.1:                               ## @.str.1
	.asciz	"v3 "

L_.str.2:                               ## @.str.2
	.asciz	"8x "

L_.str.3:                               ## @.str.3
	.asciz	"4x "

L_.str.4:                               ## @.str.4
	.asciz	"2x "

L_.str.5:                               ## @.str.5
	.asciz	"1x "

L_.str.6:                               ## @.str.6
	.asciz	"SBA "

L_.str.7:                               ## @.str.7
	.asciz	"enabled at "

L_.str.8:                               ## @.str.8
	.asciz	"disabled"

	.no_dead_strip	_cap_agp
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.cap_agp
l_reltable.cap_agp:
	.long	L_.str.3-l_reltable.cap_agp
	.long	L_.str.4-l_reltable.cap_agp
	.long	L_.str.5-l_reltable.cap_agp

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_agp
_cap_agp:                               ; @cap_agp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _AGP_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AGP_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x2, x8, x2
	mov	w3, #4
	bl	_read_config
	mov	x20, x0
Lloh3:
	adrp	x8, _AGP_CAPID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AGP_CAPID@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x2, x8, x19
	mov	x0, x22
	mov	x1, x21
	mov	w3, #4
	bl	_read_config
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_AGP_MODE_GET_MODE_3
	cbz	x0, LBB0_5
; %bb.1:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_AGP_MODE_GET_RATE
	tbz	w0, #7, LBB0_3
; %bb.2:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
LBB0_3:
	mov	x0, x20
	bl	_AGP_MODE_GET_RATE
	mov	w8, #129
	tst	w0, w8
	b.eq	LBB0_12
; %bb.4:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_5:
	mov	x0, x20
	bl	_AGP_MODE_GET_RATE
	mov	w8, #130
	tst	w0, w8
	b.eq	LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_7:
	mov	x0, x20
	bl	_AGP_MODE_GET_RATE
	mov	w8, #131
	tst	w0, w8
	b.eq	LBB0_9
; %bb.8:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_9:
	mov	x0, x20
	bl	_AGP_MODE_GET_RATE
	mov	w8, #132
	tst	w0, w8
	b.eq	LBB0_12
; %bb.10:
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_11:
	bl	_printf
LBB0_12:
	mov	x0, x20
	bl	_AGP_MODE_GET_SBA
	cbz	x0, LBB0_14
; %bb.13:
Lloh20:
	adrp	x0, l_.str.6@PAGE
Lloh21:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_14:
	mov	x0, x19
	bl	_AGP_MODE_GET_AGP
	cbz	x0, LBB0_19
; %bb.15:
Lloh22:
	adrp	x0, l_.str.7@PAGE
Lloh23:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_AGP_MODE_GET_MODE_3
	cbz	x0, LBB0_20
; %bb.16:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_AGP_MODE_GET_RATE
	cmp	w0, #128
	b.eq	LBB0_22
; %bb.17:
	cmp	w0, #129
	b.ne	LBB0_24
; %bb.18:
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_19:
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_26
LBB0_20:
	mov	x0, x19
	bl	_AGP_MODE_GET_RATE
	sub	w8, w0, #130
	cmp	w8, #2
	b.hi	LBB0_24
; %bb.21:
Lloh30:
	adrp	x9, l_switch.table.cap_agp@PAGE
Lloh31:
	add	x9, x9, l_switch.table.cap_agp@PAGEOFF
	ldr	x0, [x9, w8, sxtw #3]
	b	LBB0_23
LBB0_22:
Lloh32:
	adrp	x0, l_.str.2@PAGE
Lloh33:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_23:
	bl	_printf
LBB0_24:
	mov	x0, x19
	bl	_AGP_MODE_GET_SBA
	cbz	x0, LBB0_27
; %bb.25:
Lloh34:
	adrp	x0, l_.str.6@PAGE
Lloh35:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_26:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_printf
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AGP_STATUS,8,3                 ; @AGP_STATUS
	.comm	_AGP_CAPID,8,3                  ; @AGP_CAPID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"AGP "

l_.str.1:                               ; @.str.1
	.asciz	"v3 "

l_.str.2:                               ; @.str.2
	.asciz	"8x "

l_.str.3:                               ; @.str.3
	.asciz	"4x "

l_.str.4:                               ; @.str.4
	.asciz	"2x "

l_.str.5:                               ; @.str.5
	.asciz	"1x "

l_.str.6:                               ; @.str.6
	.asciz	"SBA "

l_.str.7:                               ; @.str.7
	.asciz	"enabled at "

l_.str.8:                               ; @.str.8
	.asciz	"disabled"

	.no_dead_strip	_cap_agp
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.cap_agp
l_switch.table.cap_agp:
	.quad	l_.str.3
	.quad	l_.str.4
	.quad	l_.str.5

.subsections_via_symbols
