	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_supply_create_bat_triggers
_power_supply_create_bat_triggers:      ## @power_supply_create_bat_triggers
	.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	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_kasprintf
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	(%r14), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_kasprintf
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%r14), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_kasprintf
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	(%r14), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_kasprintf
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	leaq	48(%rbx), %rsi
	callq	_led_trigger_register_simple
	movq	8(%rbx), %rdi
	leaq	44(%rbx), %rsi
	callq	_led_trigger_register_simple
	movq	16(%rbx), %rdi
	leaq	40(%rbx), %rsi
	callq	_led_trigger_register_simple
	movq	32(%rbx), %rdi
	addq	$24, %rbx
	movq	%rbx, %rsi
	callq	_led_trigger_register_simple
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_5:
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_6:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_7:
	movq	(%rbx), %rdi
	callq	_kfree
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-charging-or-full"

L_.str.1:                               ## @.str.1
	.asciz	"%s-charging"

L_.str.2:                               ## @.str.2
	.asciz	"%s-full"

L_.str.3:                               ## @.str.3
	.asciz	"%s-charging-blink-full-solid"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_power_supply_create_bat_triggers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_supply_create_bat_triggers
_power_supply_create_bat_triggers:      ; @power_supply_create_bat_triggers
	.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, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x8, [x19, #56]
	ldr	w2, [x8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_kasprintf
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w0, [x20]
	ldr	x8, [x19, #56]
	ldr	w2, [x8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_kasprintf
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x20]
	ldr	x8, [x19, #56]
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_kasprintf
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [x20]
	ldr	x8, [x19, #56]
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_kasprintf
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
	add	x1, x19, #48
	bl	_led_trigger_register_simple
	ldr	x0, [x19, #8]
	add	x1, x19, #44
	bl	_led_trigger_register_simple
	ldr	x0, [x19, #16]
	add	x1, x19, #40
	bl	_led_trigger_register_simple
	ldr	x0, [x19, #32]
	add	x1, x19, #24
	bl	_led_trigger_register_simple
	mov	w0, #0
	b	LBB0_9
LBB0_5:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_7:
	ldr	x0, [x19]
	bl	_kfree
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-charging-or-full"

l_.str.1:                               ; @.str.1
	.asciz	"%s-charging"

l_.str.2:                               ; @.str.2
	.asciz	"%s-full"

l_.str.3:                               ; @.str.3
	.asciz	"%s-charging-blink-full-solid"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_power_supply_create_bat_triggers
.subsections_via_symbols
