	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_power_supply_uevent            ## -- Begin function power_supply_uevent
	.p2align	4, 0x90
_power_supply_uevent:                   ## @power_supply_uevent
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movslq	16(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_add_uevent_var
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.6:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movq	(%r12), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%r15,8), %r14
	shlq	$2, %r14
	movq	_power_supply_attrs@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_power_supply_show_property
	movl	%eax, %r13d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_ENODATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	js	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, (%rax)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kstruprdup
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_add_uevent_var
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	testl	%r13d, %r13d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_15
	jmp	LBB0_17
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_dbg
	xorl	%r13d, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%r13d, %r13d
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_page
	jmp	LBB0_18
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No power supply yet\n"

L_.str.1:                               ## @.str.1
	.asciz	"POWER_SUPPLY_NAME=%s"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_power_supply_attrs,8,3         ## @power_supply_attrs
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENODATA,4,2                    ## @ENODATA
L_.str.2:                               ## @.str.2
	.asciz	"POWER_SUPPLY_%s=%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_power_supply_uevent            ; -- Begin function power_supply_uevent
	.p2align	2
_power_supply_uevent:                   ; @power_supply_uevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.2:
	ldrsw	x2, [x8, #16]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_add_uevent_var
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.3:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	cbz	x0, LBB0_18
; %bb.4:
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.5:
	mov	x27, #0
Lloh5:
	adrp	x28, _power_supply_attrs@GOTPAGE
Lloh6:
	ldr	x28, [x28, _power_supply_attrs@GOTPAGEOFF]
Lloh7:
	adrp	x23, _ENODEV@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ENODEV@GOTPAGEOFF]
Lloh9:
	adrp	x26, _ENODATA@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ENODATA@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x27, x27, #1
	ldr	x8, [x21]
	ldrsw	x9, [x8]
	cmp	x27, x9
	b.ge	LBB0_16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x28]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x27, lsl #3]
	add	x25, x9, x8, lsl #2
	mov	x0, x19
	mov	x1, x25
	mov	x2, x22
	bl	_power_supply_show_property
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	w8, [x26]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w24, #31, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x0]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_kstruprdup
	cbz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	str	x22, [sp]
	mov	x0, x20
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x25
	bl	_add_uevent_var
	mov	x24, x0
	mov	x0, x25
	bl	_kfree
	cbz	w24, LBB0_6
	b	LBB0_17
LBB0_14:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w24, #0
LBB0_15:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	mov	w24, #0
LBB0_17:
	mov	x0, x22
	bl	_free_page
	b	LBB0_15
LBB0_18:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_15
LBB0_19:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No power supply yet\n"

l_.str.1:                               ; @.str.1
	.asciz	"POWER_SUPPLY_NAME=%s"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_power_supply_attrs,8,3         ; @power_supply_attrs
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENODATA,4,2                    ; @ENODATA
l_.str.2:                               ; @.str.2
	.asciz	"POWER_SUPPLY_%s=%s"

.subsections_via_symbols
