	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt683r_led_probe
_gt683r_led_probe:                      ## @gt683r_led_probe
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	24(%rax), %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	addq	$20, %rdi
	movq	_gt683r_led_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_GT683R_LED_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	%r14, 8(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hid_set_drvdata
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_5:
	movq	_HID_CONNECT_HIDRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_hid_err
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_GT683R_LED_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_gt683r_panel_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %r13d
	addl	$3, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_name
	movq	_gt683r_panel_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %r8
	movq	%rbx, %rdi
	movl	%r13d, %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rcx
	callq	_snprintf
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	leaq	(%rax,%r12), %rsi
	movq	%rbx, (%rax,%r12)
	movl	$1, 8(%rax,%r12)
	movq	_gt683r_brightness_set@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax,%r12)
	movq	_gt683r_led_groups@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax,%r12)
	movq	%r15, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	jne	LBB0_13
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movq	_GT683R_LED_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r12
	xorl	%ebx, %ebx
	cmpq	%rax, %r14
	jl	LBB0_10
	jmp	LBB0_18
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hid_err
LBB0_14:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.15:
	addq	$-24, %r12
	incq	%r14
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%r12, %rdi
	callq	_led_classdev_unregister
	decq	%r14
	addq	$-24, %r12
	cmpq	$1, %r14
	ja	LBB0_16
LBB0_17:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_hid_hw_stop
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_gt683r_led_work,4,2            ## @gt683r_led_work
	.comm	_GT683R_LED_NORMAL,4,2          ## @GT683R_LED_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hid parsing failed\n"

	.comm	_HID_CONNECT_HIDRAW,4,2         ## @HID_CONNECT_HIDRAW
L_.str.1:                               ## @.str.1
	.asciz	"hw start failed\n"

	.comm	_GT683R_LED_COUNT,4,2           ## @GT683R_LED_COUNT
	.comm	_gt683r_panel_names,8,3         ## @gt683r_panel_names
L_.str.2:                               ## @.str.2
	.asciz	"%s::%s"

	.comm	_gt683r_brightness_set,4,2      ## @gt683r_brightness_set
	.comm	_gt683r_led_groups,4,2          ## @gt683r_led_groups
L_.str.3:                               ## @.str.3
	.asciz	"could not register led device\n"

	.no_dead_strip	_gt683r_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt683r_led_probe
_gt683r_led_probe:                      ; @gt683r_led_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #24
	bl	_mutex_init
	add	x0, x20, #20
Lloh2:
	adrp	x8, _gt683r_led_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gt683r_led_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh5:
	adrp	x8, _GT683R_LED_NORMAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GT683R_LED_NORMAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_hid_set_drvdata
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh13:
	adrp	x8, _HID_CONNECT_HIDRAW@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HID_CONNECT_HIDRAW@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_hid_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x27, _GT683R_LED_COUNT@GOTPAGE
Lloh19:
	ldr	x27, [x27, _GT683R_LED_COUNT@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.9:
	mov	x26, #0
	mov	x25, #-24
Lloh20:
	adrp	x28, _gt683r_panel_names@GOTPAGE
Lloh21:
	ldr	x28, [x28, _gt683r_panel_names@GOTPAGEOFF]
Lloh22:
	adrp	x22, l_.str.2@PAGE
Lloh23:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_dev_name
	bl	_strlen
	mov	x21, x0
	ldr	x8, [x28]
	ldr	x0, [x8, x26, lsl #3]
	bl	_strlen
	add	w8, w21, w0
	add	w23, w8, #3
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x23
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x0
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
	ldr	x8, [x28]
	ldr	x4, [x8, x26, lsl #3]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_snprintf
	ldr	x8, [x20]
	add	x1, x8, x25
	str	x21, [x1, #24]!
	mov	w8, #1
	str	w8, [x1, #8]
Lloh24:
	adrp	x8, _gt683r_brightness_set@GOTPAGE
Lloh25:
	ldr	x8, [x8, _gt683r_brightness_set@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x1, #16]
Lloh27:
	adrp	x8, _gt683r_led_groups@GOTPAGE
Lloh28:
	ldr	x8, [x8, _gt683r_led_groups@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	mov	x0, x19
	bl	_led_classdev_register
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x27]
	add	x25, x25, #24
	cmp	x26, x8
	b.lt	LBB0_10
	b	LBB0_7
LBB0_13:
	mov	w21, #0
	b	LBB0_7
LBB0_14:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_15:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_hid_err
LBB0_16:
	cbz	w26, LBB0_19
; %bb.17:
	add	x22, x26, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x25
	bl	_led_classdev_unregister
	sub	x22, x22, #1
	sub	x25, x25, #24
	cmp	x22, #1
	b.hi	LBB0_18
LBB0_19:
	mov	x0, x19
	bl	_hid_hw_stop
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_gt683r_led_work,4,2            ; @gt683r_led_work
	.comm	_GT683R_LED_NORMAL,4,2          ; @GT683R_LED_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hid parsing failed\n"

	.comm	_HID_CONNECT_HIDRAW,4,2         ; @HID_CONNECT_HIDRAW
l_.str.1:                               ; @.str.1
	.asciz	"hw start failed\n"

	.comm	_GT683R_LED_COUNT,4,2           ; @GT683R_LED_COUNT
	.comm	_gt683r_panel_names,8,3         ; @gt683r_panel_names
l_.str.2:                               ; @.str.2
	.asciz	"%s::%s"

	.comm	_gt683r_brightness_set,4,2      ; @gt683r_brightness_set
	.comm	_gt683r_led_groups,4,2          ; @gt683r_led_groups
l_.str.3:                               ; @.str.3
	.asciz	"could not register led device\n"

	.no_dead_strip	_gt683r_led_probe
.subsections_via_symbols
