	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asus_battery_probe
_asus_battery_probe:                    ## @asus_battery_probe
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movq	%rax, -40(%rbp)
	movq	$0, 56(%rax)
	movq	_POWER_SUPPLY_STATUS_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	$0, (%rbx)
	movq	_asus_battery_props@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %r15
	movl	%edi, 44(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, 40(%rbx)
	movq	_asus_battery_get_property@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_POWER_SUPPLY_TYPE_BATTERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	4(%r14), %edi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %ecx
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, %ecx
LBB0_3:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_devm_kasprintf
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_power_supply_register
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	callq	_PTR_ERR
	movl	%eax, %r15d
	movq	$0, 8(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rsi
	callq	_power_supply_powers
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,4,2 ## @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_asus_battery_props,4,2         ## @asus_battery_props
	.comm	_asus_battery_get_property,4,2  ## @asus_battery_get_property
	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ## @POWER_SUPPLY_TYPE_BATTERY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asus-keyboard-%s-battery"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_jiffies,4,2                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"Unable to register battery device\n"

	.no_dead_strip	_asus_battery_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asus_battery_probe
_asus_battery_probe:                    ; @asus_battery_probe
	.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	x19, x0
	bl	_hid_get_drvdata
	mov	x20, x0
	str	x0, [sp, #8]
	str	xzr, [x0, #56]
Lloh0:
	adrp	x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #52]
	str	wzr, [x0]
Lloh3:
	adrp	x8, _asus_battery_props@GOTPAGE
Lloh4:
	ldr	x8, [x8, _asus_battery_props@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x21, x20, #16
	str	w0, [x20, #44]
	bl	_ARRAY_SIZE
Lloh6:
	adrp	x8, _asus_battery_get_property@GOTPAGE
Lloh7:
	ldr	x8, [x8, _asus_battery_get_property@GOTPAGEOFF]
	str	w0, [x20, #40]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
	str	xzr, [x20, #24]
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	ldr	w0, [x19, #4]
	bl	_strlen
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w3, [x19, #4]
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
LBB0_3:
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_devm_kasprintf
	str	w0, [x21]
	cbz	w0, LBB0_6
; %bb.4:
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x20, #48]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	bl	_devm_power_supply_register
	str	x0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_7
; %bb.5:
	bl	_PTR_ERR
	mov	x21, x0
	str	xzr, [x20, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_hid_err
	b	LBB0_8
LBB0_6:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_7:
	mov	x1, x19
	bl	_power_supply_powers
	mov	w21, #0
LBB0_8:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_UNKNOWN,4,2 ; @POWER_SUPPLY_STATUS_UNKNOWN
	.comm	_asus_battery_props,4,2         ; @asus_battery_props
	.comm	_asus_battery_get_property,4,2  ; @asus_battery_get_property
	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ; @POWER_SUPPLY_TYPE_BATTERY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asus-keyboard-%s-battery"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_jiffies,4,2                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"Unable to register battery device\n"

	.no_dead_strip	_asus_battery_probe
.subsections_via_symbols
