	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_agp_version                ## -- Begin function get_agp_version
	.p2align	4, 0x90
_get_agp_version:                       ## @get_agp_version
	.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
	cmpl	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %esi
	movl	12(%rdi), %edi
	leaq	-12(%rbp), %rdx
	callq	_pci_read_config_dword
	movl	-12(%rbp), %eax
	movq	_AGP_MAJOR_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	andl	$15, %edx
	movl	%edx, (%rbx)
	movq	_AGP_MINOR_VERSION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	andl	$15, %eax
	movl	%eax, 4(%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGP_MAJOR_VERSION_SHIFT,4,2    ## @AGP_MAJOR_VERSION_SHIFT
	.comm	_AGP_MINOR_VERSION_SHIFT,4,2    ## @AGP_MINOR_VERSION_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_agp_version                ; -- Begin function get_agp_version
	.p2align	2
_get_agp_version:                       ; @get_agp_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _AGP_MAJOR_VERSION_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AGP_MAJOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	asr	w9, w8, w9
	and	w9, w9, #0xf
	str	w9, [x19]
Lloh3:
	adrp	x9, _AGP_MINOR_VERSION_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AGP_MINOR_VERSION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w8, w8, w9
	and	w8, w8, #0xf
	str	w8, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AGP_MAJOR_VERSION_SHIFT,4,2    ; @AGP_MAJOR_VERSION_SHIFT
	.comm	_AGP_MINOR_VERSION_SHIFT,4,2    ; @AGP_MINOR_VERSION_SHIFT
.subsections_via_symbols
