	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_led_get_brightness
_sony_led_get_brightness:               ## @sony_led_get_brightness
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_hid_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	(%rax), %edx
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	testl	%edx, %edx
	jle	LBB0_6
## %bb.2:
	movq	16(%rax), %rdi
	shlq	$2, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdi,%rsi,2)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_3
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	addq	8(%rax), %rsi
	movq	%rsi, %rcx
LBB0_6:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No device data\n"

	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_sony_led_get_brightness
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_led_get_brightness
_sony_led_get_brightness:               ; @sony_led_get_brightness
	.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, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_hid_device
	mov	x20, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x9, #0
	ldr	x10, [x0, #16]
	lsl	x11, x8, #2
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x19
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #4
	add	x10, x10, #8
	cmp	x11, x9
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_hid_err
LBB0_6:
Lloh4:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x8, [x0, #8]
	add	x8, x8, x9
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No device data\n"

	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_sony_led_get_brightness
.subsections_via_symbols
