	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lg4ff_alternate_modes_show
_lg4ff_alternate_modes_show:            ## @lg4ff_alternate_modes_show
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	callq	_to_hid_device
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_5
## %bb.6:
	cmpl	$0, 24(%r14)
	je	LBB0_7
## %bb.8:
	movq	_LG4FF_MODE_MAX_IDX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.9:
	leaq	24(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$8, %r15d
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.5(%rip), %rdx
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%ebx, %rdi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	subl	%ebx, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_scnprintf
	movl	%eax, %r13d
	addl	%ebx, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, %r13d
	jge	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	movq	_LG4FF_MODE_MAX_IDX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r15
	cmpq	%rax, %r12
	jge	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ebx
	movl	%r12d, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r13d, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	subl	%r13d, %esi
	movq	_lg4ff_alternate_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r15), %rdx
	cmpq	$0, -8(%rax,%r15)
	movl	4(%rax,%r15), %ecx
	cmoveq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	movl	(%rdx), %r8d
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_scnprintf
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	-1(%rsi), %eax
	cmpl	%eax, %ebx
	jge	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_lg4ff_alternate_modes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%r15), %rcx
	movq	8(%r14), %rax
	leaq	L_.str.4(%rip), %rdx
	cmpq	%rax, %rcx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%rcx, %rcx
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	L_.str.4(%rip), %rdx
	cmpq	16(%r14), %rax
	jne	LBB0_16
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movq	%rbx, %rdi
	callq	_hid_err
LBB0_3:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%ebx, %r13d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Private driver data not found!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Device properties not found!\n"

L_.str.2:                               ## @.str.2
	.asciz	"NULL pointer to string\n"

	.comm	_LG4FF_MODE_MAX_IDX,4,2         ## @LG4FF_MODE_MAX_IDX
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.3:                               ## @.str.3
	.asciz	"%s: %s"

	.comm	_lg4ff_alternate_modes,8,3      ## @lg4ff_alternate_modes
L_.str.4:                               ## @.str.4
	.asciz	" *\n"

L_.str.5:                               ## @.str.5
	.asciz	"\n"

	.no_dead_strip	_lg4ff_alternate_modes_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lg4ff_alternate_modes_show
_lg4ff_alternate_modes_show:            ; @lg4ff_alternate_modes_show
	.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	x19, x2
	bl	_to_hid_device
	mov	x20, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_13
; %bb.1:
	ldr	x23, [x0]
	cbz	x23, LBB0_14
; %bb.2:
	mov	x24, x23
	ldr	w8, [x24, #24]!
	cbz	w8, LBB0_15
; %bb.3:
Lloh0:
	adrp	x25, _LG4FF_MODE_MAX_IDX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LG4FF_MODE_MAX_IDX@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.4:
	mov	x26, #0
	mov	x20, #0
	mov	w22, #0
Lloh2:
	adrp	x27, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _lg4ff_alternate_modes@GOTPAGE
Lloh5:
	ldr	x28, [x28, _lg4ff_alternate_modes@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
Lloh6:
	adrp	x2, l_.str.5@PAGE
Lloh7:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x0, x19, x22
	sub	w1, w8, w22
	bl	_scnprintf
	ldr	w8, [x27]
	sub	w8, w8, #1
	add	w22, w0, w22
	cmp	w22, w8
	b.ge	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x25]
	add	x26, x26, #16
	cmp	x20, x8
	b.ge	LBB0_18
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x23]
	mov	x0, x20
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x21, w22
	add	x0, x19, x21
	ldr	w8, [x27]
	sub	w1, w8, w22
	ldr	x8, [x28]
	add	x8, x8, x26
	ldr	x9, [x8]
	add	x10, x8, #8
	cmp	x9, #0
	csel	x9, x24, x10, eq
	ldr	w9, [x9]
	ldr	w8, [x8, #12]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_scnprintf
	add	x22, x21, w0, sxtw
	ldr	w8, [x27]
	sub	w9, w8, #1
	cmp	w22, w9
	b.ge	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x28]
	ldr	x10, [x9, x26]
	ldr	x9, [x23, #8]
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	cmp	x10, x9
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x10, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x23, #16]
Lloh12:
	adrp	x2, l_.str.4@PAGE
Lloh13:
	add	x2, x2, l_.str.4@PAGEOFF
	cmp	x9, x10
	b.ne	LBB0_5
	b	LBB0_6
LBB0_13:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_hid_err
LBB0_17:
	mov	w22, #0
LBB0_18:
	mov	x0, x22
	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_19:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Private driver data not found!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Device properties not found!\n"

l_.str.2:                               ; @.str.2
	.asciz	"NULL pointer to string\n"

	.comm	_LG4FF_MODE_MAX_IDX,4,2         ; @LG4FF_MODE_MAX_IDX
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.3:                               ; @.str.3
	.asciz	"%s: %s"

	.comm	_lg4ff_alternate_modes,8,3      ; @lg4ff_alternate_modes
l_.str.4:                               ; @.str.4
	.asciz	" *\n"

l_.str.5:                               ; @.str.5
	.asciz	"\n"

	.no_dead_strip	_lg4ff_alternate_modes_show
.subsections_via_symbols
