	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc2731_charger_usb_get_property
_sc2731_charger_usb_get_property:       ## @sc2731_charger_usb_get_property
	.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	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_11
## %bb.3:
	cmpl	$0, 4(%r15)
	je	LBB0_13
## %bb.4:
	movq	%r15, %rdi
	callq	_sc2731_charger_get_status
	jmp	LBB0_14
LBB0_5:
	cmpl	$0, 4(%r15)
	je	LBB0_12
## %bb.6:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sc2731_charger_get_current
	jmp	LBB0_9
LBB0_7:
	cmpl	$0, 4(%r15)
	je	LBB0_12
## %bb.8:
	leaq	-28(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sc2731_charger_get_current_limit
LBB0_9:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.10:
	imull	$1000, -28(%rbp), %eax          ## imm = 0x3E8
	jmp	LBB0_14
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_12:
	movl	$0, (%r14)
	jmp	LBB0_15
LBB0_13:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	movl	%eax, (%r14)
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_sc2731_charger_usb_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc2731_charger_usb_get_property
_sc2731_charger_usb_get_property:       ; @sc2731_charger_usb_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x19, x0
	bl	_mutex_lock
	cmp	w21, #130
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_10
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_12
; %bb.4:
	mov	x0, x19
	bl	_sc2731_charger_get_status
	mov	w21, #0
	str	w0, [x20]
	b	LBB0_14
LBB0_5:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.6:
	add	x1, sp, #12
	mov	x0, x19
	bl	_sc2731_charger_get_current
	mov	x21, x0
	cbnz	w0, LBB0_14
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_11
; %bb.8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_sc2731_charger_get_current_limit
	mov	x21, x0
	cbnz	w0, LBB0_14
LBB0_9:
	ldr	w8, [sp, #12]
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_13
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_11:
	mov	w21, #0
	str	wzr, [x20]
	b	LBB0_14
LBB0_12:
	mov	w21, #0
Lloh3:
	adrp	x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
LBB0_13:
	str	w8, [x20]
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_sc2731_charger_usb_get_property
.subsections_via_symbols
