	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_is_voltage_gpio ## -- Begin function amdgpu_atombios_is_voltage_gpio
	.p2align	4, 0x90
_amdgpu_atombios_is_voltage_gpio:       ## @amdgpu_atombios_is_voltage_gpio
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VoltageObjectInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	(%rbx), %rdi
	leaq	-48(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	leaq	-28(%rbp), %r8
	leaq	-40(%rbp), %r9
	movl	%eax, %esi
	callq	_amdgpu_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	$3, -32(%rbp)
	jne	LBB0_4
## %bb.2:
	cmpl	$1, -28(%rbp)
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	-40(%rbp), %rdi
	addq	(%rax), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_amdgpu_atombios_lookup_voltage_object_v3
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_VoltageObjectInfo,4,2          ## @VoltageObjectInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown voltage object table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_is_voltage_gpio ; -- Begin function amdgpu_atombios_is_voltage_gpio
	.p2align	2
_amdgpu_atombios_is_voltage_gpio:       ; @amdgpu_atombios_is_voltage_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _VoltageObjectInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VoltageObjectInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x1, x0
	ldr	x0, [x21]
	add	x2, sp, #8
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #16
	bl	_amdgpu_atom_parse_data_header
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #28]
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [sp, #24]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x9, [sp, #16]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_amdgpu_atombios_lookup_voltage_object_v3
	cbz	w0, LBB0_6
; %bb.4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_VoltageObjectInfo,4,2          ; @VoltageObjectInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown voltage object table\n"

.subsections_via_symbols
