	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbsm_set_property
_sbsm_set_property:                     ## @sbsm_set_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	cmpl	$128, %ebx
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_5
## %bb.2:
	movl	(%r14), %ecx
	movq	_POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpl	(%rsi), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_SBSM_BIT_TURBO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_4:
	movl	(%rax), %edi
	movq	_SBSM_CMD_LTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sbsm_write_word                ## TAILCALL
LBB0_5:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_SBSM_BIT_TURBO,4,2             ## @SBSM_BIT_TURBO
	.comm	_SBSM_CMD_LTC,4,2               ## @SBSM_CMD_LTC
	.no_dead_strip	_sbsm_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbsm_set_property
_sbsm_set_property:                     ; @sbsm_set_property
	.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, x2
	mov	x20, x1
	bl	_power_supply_get_drvdata
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w20, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SBSM_BIT_TURBO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SBSM_BIT_TURBO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w2, w10, wzr, eq
	ldr	w0, [x0]
Lloh9:
	adrp	x8, _SBSM_CMD_LTC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SBSM_CMD_LTC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_sbsm_write_word
LBB0_3:
	neg	w0, w8
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_SBSM_BIT_TURBO,4,2             ; @SBSM_BIT_TURBO
	.comm	_SBSM_CMD_LTC,4,2               ; @SBSM_CMD_LTC
	.no_dead_strip	_sbsm_set_property
.subsections_via_symbols
