	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_vendor_extension
_check_vendor_extension:                ## @check_vendor_extension
	.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, %rax
	movslq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	addq	%rax, %rdi
	movl	$16, %esi
	callq	_acpi_os_map_memory
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_vendor_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %r9d
	movl	4(%rbx), %r10d
	movl	%r9d, %edx
	sarl	$24, %edx
	movl	%r9d, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movl	%r9d, %r8d
	shrl	$11, %r8d
	andl	$31, %r8d
	shrl	$8, %r9d
	andl	$7, %r9d
	movl	8(%rbx), %r11d
	movl	12(%rbx), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_sprintf
	addq	$32, %rsp
	movq	%rbx, %rdi
	movl	$16, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_acpi_os_unmap_memory           ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vendor_dev,4,2                 ## @vendor_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x:%x:%x.%x vendor_id=%x device_id=%x rev_id=%x\n"

	.no_dead_strip	_check_vendor_extension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_vendor_extension
_check_vendor_extension:                ; @check_vendor_extension
	.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
	ldrsw	x8, [x1]
	cbz	w8, LBB0_3
; %bb.1:
	add	x0, x8, x0
	mov	w1, #16
	bl	_acpi_os_map_memory
	cbz	x0, LBB0_3
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _vendor_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vendor_dev@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w8, w6, [x19]
	asr	w2, w8, #24
	ubfx	w3, w8, #16, #8
	ubfx	w4, w8, #11, #5
	ubfx	w5, w8, #8, #3
	ldp	w7, w8, [x19, #8]
	str	w8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	x0, x19
	mov	w1, #16
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_acpi_os_unmap_memory
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vendor_dev,4,2                 ; @vendor_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x:%x:%x.%x vendor_id=%x device_id=%x rev_id=%x\n"

	.no_dead_strip	_check_vendor_extension
.subsections_via_symbols
