	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gb_svc_pwrmon_rail_names_get
_gb_svc_pwrmon_rail_names_get:          ## @gb_svc_pwrmon_rail_names_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r9
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	movq	_GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	callq	_gb_operation_sync
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_2:
	movl	(%r15), %edx
	movq	_GB_SVC_OP_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_4:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET,4,2 ## @GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get rail names: %d\n"

	.comm	_GB_SVC_OP_SUCCESS,4,2          ## @GB_SVC_OP_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"SVC error while getting rail names: %u\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_gb_svc_pwrmon_rail_names_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gb_svc_pwrmon_rail_names_get
_gb_svc_pwrmon_rail_names_get:          ; @gb_svc_pwrmon_rail_names_get
	.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	x5, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, x21
	bl	_gb_operation_sync
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	ldr	w2, [x21]
Lloh5:
	adrp	x8, _GB_SVC_OP_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GB_SVC_OP_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET,4,2 ; @GB_SVC_TYPE_PWRMON_RAIL_NAMES_GET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get rail names: %d\n"

	.comm	_GB_SVC_OP_SUCCESS,4,2          ; @GB_SVC_OP_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"SVC error while getting rail names: %u\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_gb_svc_pwrmon_rail_names_get
.subsections_via_symbols
