	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_charger_get_type
_gpio_charger_get_type:                 ## @gpio_charger_get_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_device_property_read_string
	movq	-32(%rbp), %r15
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_warn
LBB0_13:
	movq	_POWER_SUPPLY_TYPE_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.5(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	movq	_POWER_SUPPLY_TYPE_USB@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	leaq	L_.str.6(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	leaq	L_.str.7(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.8(%rip), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_14
LBB0_3:
	movq	_POWER_SUPPLY_TYPE_BATTERY@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_5:
	movq	_POWER_SUPPLY_TYPE_UPS@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_7:
	movq	_POWER_SUPPLY_TYPE_MAINS@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"charger-type"

L_.str.1:                               ## @.str.1
	.asciz	"unknown"

	.comm	_POWER_SUPPLY_TYPE_UNKNOWN,4,2  ## @POWER_SUPPLY_TYPE_UNKNOWN
L_.str.2:                               ## @.str.2
	.asciz	"battery"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ## @POWER_SUPPLY_TYPE_BATTERY
L_.str.3:                               ## @.str.3
	.asciz	"ups"

	.comm	_POWER_SUPPLY_TYPE_UPS,4,2      ## @POWER_SUPPLY_TYPE_UPS
L_.str.4:                               ## @.str.4
	.asciz	"mains"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ## @POWER_SUPPLY_TYPE_MAINS
L_.str.5:                               ## @.str.5
	.asciz	"usb-sdp"

	.comm	_POWER_SUPPLY_TYPE_USB,4,2      ## @POWER_SUPPLY_TYPE_USB
L_.str.6:                               ## @.str.6
	.asciz	"usb-dcp"

L_.str.7:                               ## @.str.7
	.asciz	"usb-cdp"

L_.str.8:                               ## @.str.8
	.asciz	"usb-aca"

L_.str.9:                               ## @.str.9
	.asciz	"unknown charger type %s\n"

	.no_dead_strip	_gpio_charger_get_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_charger_get_type
_gpio_charger_get_type:                 ; @gpio_charger_get_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_device_property_read_string
	ldr	x20, [sp, #8]
	cbz	w0, LBB0_4
LBB0_1:
Lloh2:
	adrp	x1, l_.str.9@PAGE
Lloh3:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_warn
LBB0_2:
Lloh4:
	adrp	x8, _POWER_SUPPLY_TYPE_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_UNKNOWN@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_2
; %bb.5:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.6:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.7:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.8:
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.9:
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.10:
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.11:
Lloh20:
	adrp	x0, l_.str.8@PAGE
Lloh21:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x20
	bl	_strcmp
	cbnz	w0, LBB0_1
LBB0_12:
Lloh22:
	adrp	x8, _POWER_SUPPLY_TYPE_USB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_USB@GOTPAGEOFF]
	b	LBB0_3
LBB0_13:
Lloh24:
	adrp	x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_BATTERY@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
Lloh26:
	adrp	x8, _POWER_SUPPLY_TYPE_UPS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_UPS@GOTPAGEOFF]
	b	LBB0_3
LBB0_15:
Lloh28:
	adrp	x8, _POWER_SUPPLY_TYPE_MAINS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _POWER_SUPPLY_TYPE_MAINS@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"charger-type"

l_.str.1:                               ; @.str.1
	.asciz	"unknown"

	.comm	_POWER_SUPPLY_TYPE_UNKNOWN,4,2  ; @POWER_SUPPLY_TYPE_UNKNOWN
l_.str.2:                               ; @.str.2
	.asciz	"battery"

	.comm	_POWER_SUPPLY_TYPE_BATTERY,4,2  ; @POWER_SUPPLY_TYPE_BATTERY
l_.str.3:                               ; @.str.3
	.asciz	"ups"

	.comm	_POWER_SUPPLY_TYPE_UPS,4,2      ; @POWER_SUPPLY_TYPE_UPS
l_.str.4:                               ; @.str.4
	.asciz	"mains"

	.comm	_POWER_SUPPLY_TYPE_MAINS,4,2    ; @POWER_SUPPLY_TYPE_MAINS
l_.str.5:                               ; @.str.5
	.asciz	"usb-sdp"

	.comm	_POWER_SUPPLY_TYPE_USB,4,2      ; @POWER_SUPPLY_TYPE_USB
l_.str.6:                               ; @.str.6
	.asciz	"usb-dcp"

l_.str.7:                               ; @.str.7
	.asciz	"usb-cdp"

l_.str.8:                               ; @.str.8
	.asciz	"usb-aca"

l_.str.9:                               ; @.str.9
	.asciz	"unknown charger type %s\n"

	.no_dead_strip	_gpio_charger_get_type
.subsections_via_symbols
