	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_set_usb_connected
_ab8500_charger_set_usb_connected:      ## @ab8500_charger_set_usb_connected
	.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
	cmpl	%esi, 28(%rdi)
	jne	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	32(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movl	%ebx, 28(%r14)
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	12(%r14), %edi
	callq	_is_ab8500
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	8(%r14), %edi
	addq	$4, %r14
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_delayed_work             ## TAILCALL
LBB0_4:
	movl	$0, 24(%r14)
	movq	16(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	callq	_sysfs_notify
	leaq	4(%r14), %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB connected:%i\n"

L_.str.1:                               ## @.str.1
	.asciz	"present"

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_ab8500_charger_set_usb_connected
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_charger_set_usb_connected
_ab8500_charger_set_usb_connected:      ; @ab8500_charger_set_usb_connected
	.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
	ldr	w8, [x0, #28]
	cmp	w8, w1
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	str	w20, [x19, #28]
	cbz	w20, LBB0_5
; %bb.3:
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w0, [x19, #12]
	bl	_is_ab8500
	cbz	x0, LBB0_1
; %bb.4:
	ldr	w0, [x19, #8]
	add	x1, x19, #4
Lloh4:
	adrp	x8, _HZ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_delayed_work
LBB0_5:
	str	wzr, [x19, #24]
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, #0
	bl	_sysfs_notify
	add	x0, x19, #4
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB connected:%i\n"

l_.str.1:                               ; @.str.1
	.asciz	"present"

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_ab8500_charger_set_usb_connected
.subsections_via_symbols
