	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_sysfs_show_mode
_bq2415x_sysfs_show_mode:               ## @bq2415x_sysfs_show_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %rdi
	callq	_power_supply_get_drvdata
	movq	%rax, %rcx
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movl	$2629743, 3(%rbx)               ## imm = 0x28206F
	movl	$1869903201, (%rbx)             ## imm = 0x6F747561
	movl	$6, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
LBB0_3:
	movl	8(%rcx), %edx
	addl	$-128, %edx
	cmpl	$4, %edx
	ja	LBB0_10
## %bb.4:
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rdx
	addq	%rsi, %rdx
	jmpq	*%rdx
LBB0_5:
	movl	%eax, %edx
	movl	$6710895, (%rbx,%rdx)           ## imm = 0x66666F
	addl	$3, %eax
	cmpq	$0, (%rcx)
	jg	LBB0_11
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %edx
	movb	$0, 4(%rbx,%rdx)
	movl	$1701736302, (%rbx,%rdx)        ## imm = 0x656E6F6E
	jmp	LBB0_7
LBB0_8:
	movl	%eax, %edx
	movb	$0, 4(%rbx,%rdx)
	movl	$1953722216, (%rbx,%rdx)        ## imm = 0x74736F68
LBB0_7:
	addl	$4, %eax
	cmpq	$0, (%rcx)
	jg	LBB0_11
	jmp	LBB0_12
LBB0_9:
	movl	%eax, %edx
	movabsq	$7310575174727001444, %rsi      ## imm = 0x6574616369646564
	movq	%rsi, (%rbx,%rdx)
	movw	$100, 8(%rbx,%rdx)
	orl	$9, %eax
LBB0_10:
	cmpq	$0, (%rcx)
	jle	LBB0_12
LBB0_11:
	movl	%eax, %ecx
	movw	$41, (%rbx,%rcx)
	incl	%eax
LBB0_12:
	movl	%eax, %ecx
	movw	$10, (%rbx,%rcx)
	incl	%eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movl	%eax, %edx
	movw	$116, 4(%rbx,%rdx)
	movl	$1936682850, (%rbx,%rdx)        ## imm = 0x736F6F62
	addl	$5, %eax
	cmpq	$0, (%rcx)
	jg	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auto ("

L_.str.2:                               ## @.str.2
	.asciz	"none"

L_.str.3:                               ## @.str.3
	.asciz	"host"

L_.str.4:                               ## @.str.4
	.asciz	"dedicated"

L_.str.5:                               ## @.str.5
	.asciz	"boost"

	.no_dead_strip	_bq2415x_sysfs_show_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_sysfs_show_mode
_bq2415x_sysfs_show_mode:               ; @bq2415x_sysfs_show_mode
	.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
	bl	_dev_get_drvdata
	bl	_power_supply_get_drvdata
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w8, #8303
	movk	w8, #40, lsl #16
	stur	w8, [x19, #3]
	mov	w8, #30049
	movk	w8, #28532, lsl #16
	str	w8, [x19]
	mov	w8, #6
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
	ldr	w9, [x0, #8]
	sub	w9, w9, #128
	cmp	w9, #4
	b.hi	LBB0_11
; %bb.4:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_5
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_5:
	mov	w9, #26223
	movk	w9, #102, lsl #16
	str	w9, [x19, w8, uxtw]
	add	w8, w8, #3
	b	LBB0_11
LBB0_6:
	add	x9, x19, w8, uxtw
	strb	wzr, [x9, #4]
	mov	w10, #28526
	movk	w10, #25966, lsl #16
	b	LBB0_8
LBB0_7:
	add	x9, x19, w8, uxtw
	strb	wzr, [x9, #4]
	mov	w10, #28520
	movk	w10, #29811, lsl #16
LBB0_8:
	str	w10, [x9]
	add	w8, w8, #4
	b	LBB0_11
LBB0_9:
	add	x9, x19, w8, uxtw
Lloh2:
	adrp	x10, l_.str.4@PAGE
Lloh3:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh4:
	ldr	x10, [x10]
	str	x10, [x9]
	mov	w10, #100
	strh	w10, [x9, #8]
	mov	w9, #9
	orr	w8, w8, w9
	b	LBB0_11
LBB0_10:
	add	x9, x19, w8, uxtw
	mov	w10, #116
	strh	w10, [x9, #4]
	mov	w10, #28514
	movk	w10, #29551, lsl #16
	str	w10, [x9]
	add	w8, w8, #5
LBB0_11:
	ldr	x9, [x0]
	cmp	x9, #1
	b.lt	LBB0_13
; %bb.12:
	mov	w9, #41
	strh	w9, [x19, w8, uxtw]
	add	w8, w8, #1
LBB0_13:
	mov	w9, #10
	strh	w9, [x19, w8, uxtw]
	add	w0, w8, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAddLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auto ("

l_.str.2:                               ; @.str.2
	.asciz	"none"

l_.str.3:                               ; @.str.3
	.asciz	"host"

l_.str.4:                               ; @.str.4
	.asciz	"dedicated"

l_.str.5:                               ; @.str.5
	.asciz	"boost"

	.no_dead_strip	_bq2415x_sysfs_show_mode
.subsections_via_symbols
