	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_base_vendor_id_get
_scmi_base_vendor_id_get:               ## @scmi_base_vendor_id_get
	.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	%rdi, %r12
	movq	(%rdi), %rax
	xorl	%ecx, %ecx
	testl	%esi, %esi
	sete	%cl
	movq	(%rax,%rcx,8), %r14
	jne	LBB0_1
## %bb.2:
	movq	_BASE_DISCOVER_VENDOR@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_BASE_DISCOVER_SUB_VENDOR@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %r15d
	movq	_SCMI_PROTOCOL_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %r9
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_scmi_xfer_get_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_scmi_do_xfer
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_memcpy
LBB0_6:
	movq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_scmi_xfer_put
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASE_DISCOVER_SUB_VENDOR,4,2   ## @BASE_DISCOVER_SUB_VENDOR
	.comm	_BASE_DISCOVER_VENDOR,4,2       ## @BASE_DISCOVER_VENDOR
	.comm	_SCMI_PROTOCOL_BASE,4,2         ## @SCMI_PROTOCOL_BASE
	.no_dead_strip	_scmi_base_vendor_id_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_base_vendor_id_get
_scmi_base_vendor_id_get:               ; @scmi_base_vendor_id_get
	.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
	cmp	w1, #0
	cset	w8, eq
	ldr	x9, [x0]
	ldr	x20, [x9, w8, uxtw #3]
Lloh0:
	adrp	x8, _BASE_DISCOVER_VENDOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASE_DISCOVER_VENDOR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BASE_DISCOVER_SUB_VENDOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BASE_DISCOVER_SUB_VENDOR@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh4:
	adrp	x8, _SCMI_PROTOCOL_BASE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SCMI_PROTOCOL_BASE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	x4, x21
	bl	_scmi_xfer_get_init
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_scmi_do_xfer
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_memcpy
LBB0_3:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_scmi_xfer_put
LBB0_4:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BASE_DISCOVER_SUB_VENDOR,4,2   ; @BASE_DISCOVER_SUB_VENDOR
	.comm	_BASE_DISCOVER_VENDOR,4,2       ; @BASE_DISCOVER_VENDOR
	.comm	_SCMI_PROTOCOL_BASE,4,2         ; @SCMI_PROTOCOL_BASE
	.no_dead_strip	_scmi_base_vendor_id_get
.subsections_via_symbols
