	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_usbpd_charger_get_port_status
_cros_usbpd_charger_get_port_status:    ## @cros_usbpd_charger_get_port_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_CHARGER_CACHE_UPDATE_DELAY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_time_is_after_jiffies
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_cros_usbpd_charger_get_power_info
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_cros_usbpd_charger_port_is_dedicated
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_cros_usbpd_charger_get_discovery_info
	movl	%eax, %ebx
LBB0_5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CHARGER_CACHE_UPDATE_DELAY,8,3 ## @CHARGER_CACHE_UPDATE_DELAY
	.comm	_jiffies,8,3                    ## @jiffies
	.no_dead_strip	_cros_usbpd_charger_get_port_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_usbpd_charger_get_port_status
_cros_usbpd_charger_get_port_status:    ; @cros_usbpd_charger_get_port_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _CHARGER_CACHE_UPDATE_DELAY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CHARGER_CACHE_UPDATE_DELAY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_time_is_after_jiffies
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_cros_usbpd_charger_get_power_info
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_cros_usbpd_charger_port_is_dedicated
	cbnz	w0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_cros_usbpd_charger_get_discovery_info
	mov	x20, x0
LBB0_6:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CHARGER_CACHE_UPDATE_DELAY,8,3 ; @CHARGER_CACHE_UPDATE_DELAY
	.comm	_jiffies,8,3                    ; @jiffies
	.no_dead_strip	_cros_usbpd_charger_get_port_status
.subsections_via_symbols
