	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_usbin_get_property
_smbb_usbin_get_property:               ## @smbb_usbin_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
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	(%r15), %eax
	movq	_STATUS_CHG_GONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%cl
	movq	_STATUS_USBIN_VALID@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	8(%r15), %rax
	movq	_ATTR_USBIN_IMAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	movl	$2500000, (%r14)                ## imm = 0x2625A0
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_CHG_GONE,4,2            ## @STATUS_CHG_GONE
	.comm	_STATUS_USBIN_VALID,4,2         ## @STATUS_USBIN_VALID
	.comm	_ATTR_USBIN_IMAX,8,3            ## @ATTR_USBIN_IMAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smbb_usbin_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbb_usbin_get_property
_smbb_usbin_get_property:               ; @smbb_usbin_get_property
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x20, x0
	cmp	w21, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.3:
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _STATUS_CHG_GONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_CHG_GONE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
Lloh3:
	adrp	x9, _STATUS_USBIN_VALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_USBIN_VALID@GOTPAGEOFF]
	cset	w10, eq
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	and	w8, w10, w8
	str	w8, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _ATTR_USBIN_IMAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ATTR_USBIN_IMAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	mov	w8, #9632
	movk	w8, #38, lsl #16
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_CHG_GONE,4,2            ; @STATUS_CHG_GONE
	.comm	_STATUS_USBIN_VALID,4,2         ; @STATUS_USBIN_VALID
	.comm	_ATTR_USBIN_IMAX,8,3            ; @ATTR_USBIN_IMAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smbb_usbin_get_property
.subsections_via_symbols
