	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_vbus_draw         ## -- Begin function tps65010_set_vbus_draw
	.p2align	4, 0x90
_tps65010_set_vbus_draw:                ## @tps65010_set_vbus_draw
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_the_tps@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	callq	_local_irq_save
	xorl	%r14d, %r14d
	cmpl	$100, %ebx
	movl	$100, %eax
	cmovbl	%r14d, %eax
	cmpl	$500, %ebx                      ## imm = 0x1F4
	movl	$500, %ecx                      ## imm = 0x1F4
	cmovbl	%eax, %ecx
	movq	(%r15), %rsi
	movl	%ecx, (%rsi)
	movq	_TPS_CHG_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rsi)
	je	LBB0_5
## %bb.3:
	movq	_FLAG_VBUS_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$12, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_system_power_efficient_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rsi
	addq	$8, %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
LBB0_5:
	callq	_local_irq_restore
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_the_tps,8,3                    ## @the_tps
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TPS_CHG_USB,4,2                ## @TPS_CHG_USB
	.comm	_FLAG_VBUS_CHANGED,4,2          ## @FLAG_VBUS_CHANGED
	.comm	_system_power_efficient_wq,4,2  ## @system_power_efficient_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tps65010_set_vbus_draw         ; -- Begin function tps65010_set_vbus_draw
	.p2align	2
_tps65010_set_vbus_draw:                ; @tps65010_set_vbus_draw
	.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
Lloh0:
	adrp	x20, _the_tps@GOTPAGE
Lloh1:
	ldr	x20, [x20, _the_tps@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_local_irq_save
	mov	w8, #100
	cmp	w19, #100
	csel	w8, wzr, w8, lo
	mov	w9, #500
	cmp	w19, #500
	csel	w9, w8, w9, lo
	ldr	x8, [x20]
	str	w9, [x8]
	ldr	w9, [x8, #4]
Lloh2:
	adrp	x10, _TPS_CHG_USB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TPS_CHG_USB@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, _FLAG_VBUS_CHANGED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FLAG_VBUS_CHANGED@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	add	x1, x8, #12
	bl	_test_and_set_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _system_power_efficient_wq@GOTPAGE
Lloh9:
	ldr	x8, [x8, _system_power_efficient_wq@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, #8
	mov	w2, #0
	bl	_queue_delayed_work
LBB0_4:
	bl	_local_irq_restore
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_the_tps,8,3                    ; @the_tps
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TPS_CHG_USB,4,2                ; @TPS_CHG_USB
	.comm	_FLAG_VBUS_CHANGED,4,2          ; @FLAG_VBUS_CHANGED
	.comm	_system_power_efficient_wq,4,2  ; @system_power_efficient_wq
.subsections_via_symbols
