	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lego_ev3_battery_set_property
_lego_ev3_battery_set_property:         ## @lego_ev3_battery_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
	cmpl	$129, %ebx
	jne	LBB0_4
## %bb.1:
	movl	(%rax), %ecx
	movq	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.2:
	cmpl	$128, (%r14)
	jne	LBB0_4
## %bb.3:
	movabsq	$33500744908800128, %rcx        ## imm = 0x7704C000000080
	movq	%rcx, (%rax)
	movl	$5400000, 8(%rax)               ## imm = 0x5265C0
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN,4,2 ## @POWER_SUPPLY_TECHNOLOGY_UNKNOWN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lego_ev3_battery_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lego_ev3_battery_set_property
lCPI0_0:
	.long	128                             ; 0x80
	.long	7800000                         ; 0x7704c0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lego_ev3_battery_set_property:         ; @lego_ev3_battery_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
	cmp	w20, #129
	b.ne	LBB0_4
; %bb.1:
	mov	x8, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x10, _POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_4
; %bb.2:
	ldr	w9, [x19]
	cmp	w9, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x8]
	mov	w9, #26048
	movk	w9, #82, lsl #16
	str	w9, [x8, #8]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN,4,2 ; @POWER_SUPPLY_TECHNOLOGY_UNKNOWN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lego_ev3_battery_set_property
.subsections_via_symbols
