	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_usb_get_power_type
_cros_ec_usb_get_power_type:            ## @cros_ec_usb_get_power_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movl	(%rdi), %eax
	movl	%eax, -16(%rbp)
	movq	_EC_CMD_USB_PD_POWER_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, (%rsp)
	leaq	-16(%rbp), %rcx
	leaq	-8(%rbp), %r9
	xorl	%edx, %edx
	movl	$4, %r8d
	callq	_cros_ec_pd_command
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-8(%rbp), %eax
LBB0_2:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_CMD_USB_PD_POWER_INFO,4,2   ## @EC_CMD_USB_PD_POWER_INFO
	.no_dead_strip	_cros_ec_usb_get_power_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_ec_usb_get_power_type
_cros_ec_usb_get_power_type:            ; @cros_ec_usb_get_power_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	str	w8, [sp, #8]
Lloh0:
	adrp	x8, _EC_CMD_USB_PD_POWER_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_CMD_USB_PD_POWER_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x5, sp
	mov	w2, #0
	mov	w4, #4
	mov	w6, #4
	bl	_cros_ec_pd_command
	ldr	w8, [sp]
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_CMD_USB_PD_POWER_INFO,4,2   ; @EC_CMD_USB_PD_POWER_INFO
	.no_dead_strip	_cros_ec_usb_get_power_type
.subsections_via_symbols
