	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_led_blink_set
_sony_led_blink_set:                    ## @sony_led_blink_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_to_hid_device
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_hid_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movq	(%r15), %rax
	cmpq	$2550, %rax                     ## imm = 0x9F6
	jbe	LBB0_3
## %bb.7:
	movq	$2550, (%r15)                   ## imm = 0x9F6
	movq	(%r14), %rcx
	movl	$2550, %eax                     ## imm = 0x9F6
	cmpq	$2550, %rcx                     ## imm = 0x9F6
	ja	LBB0_8
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hid_err
	jmp	LBB0_14
LBB0_3:
	movq	(%r14), %rcx
	cmpq	$2550, %rcx                     ## imm = 0x9F6
	jbe	LBB0_4
LBB0_8:
	movq	$2550, (%r14)                   ## imm = 0x9F6
	movq	(%r15), %rax
	movl	$2550, %ecx                     ## imm = 0x9F6
	jmp	LBB0_10
LBB0_4:
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.6:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movq	$500, (%r14)                    ## imm = 0x1F4
	movq	$500, (%r15)                    ## imm = 0x1F4
	movq	(%r14), %rcx
	movl	$500, %eax                      ## imm = 0x1F4
LBB0_10:
	movabsq	$-3689348814741910323, %rsi     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rsi
	movq	%rdx, %r8
	movq	%rcx, %rax
	mulq	%rsi
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.11:
	shrq	$3, %r8
	shrq	$3, %rdx
	movq	24(%rdi), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rsi,%rax,8)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_12
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	8(%rdi), %rcx
	cmpq	%r8, (%rcx,%rax,8)
	jne	LBB0_17
## %bb.16:
	movq	16(%rdi), %rsi
	cmpq	%rdx, (%rsi,%rax,8)
	je	LBB0_18
LBB0_17:
	movq	%r8, (%rcx,%rax,8)
	movq	16(%rdi), %rcx
	movq	%rdx, (%rcx,%rax,8)
	movq	_SONY_WORKER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sony_schedule_work
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No device data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SONY_WORKER_STATE,4,2          ## @SONY_WORKER_STATE
	.no_dead_strip	_sony_led_blink_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_led_blink_set
_sony_led_blink_set:                    ; @sony_led_blink_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_to_hid_device
	mov	x22, x0
	bl	_hid_get_drvdata
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x9, [x21]
	cmp	x9, #2550
	b.ls	LBB0_4
; %bb.2:
	mov	w9, #2550
	str	x9, [x21]
	ldr	x8, [x20]
	cmp	x8, #2550
	b.hi	LBB0_5
	b	LBB0_10
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_hid_err
	b	LBB0_14
LBB0_4:
	ldr	x8, [x20]
	cmp	x8, #2550
	b.ls	LBB0_6
LBB0_5:
	mov	w8, #2550
	str	x8, [x20]
	ldr	x9, [x21]
	b	LBB0_10
LBB0_6:
	cbnz	x9, LBB0_10
; %bb.7:
	cbz	x8, LBB0_9
; %bb.8:
	mov	x9, #0
	b	LBB0_10
LBB0_9:
	mov	w9, #500
	str	x9, [x20]
	str	x9, [x21]
	ldr	x8, [x20]
LBB0_10:
	ldr	w12, [x0]
	cmp	w12, #1
	b.lt	LBB0_14
; %bb.11:
	mov	x10, #0
	mov	x11, #-3689348814741910324
	movk	x11, #52429
	umulh	x9, x9, x11
	lsr	x9, x9, #3
	umulh	x8, x8, x11
	lsr	x8, x8, #3
	ldr	x11, [x0, #24]
	lsl	x12, x12, #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11, x10]
	cmp	x13, x19
	b.eq	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x10, x10, #8
	cmp	x12, x10
	b.ne	LBB0_12
LBB0_14:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	x11, [x0, #8]
	ldr	x12, [x11, x10]
	cmp	x12, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	x12, [x0, #16]
	ldr	x12, [x12, x10]
	cmp	x12, x8
	b.eq	LBB0_19
LBB0_18:
	str	x9, [x11, x10]
	ldr	x9, [x0, #16]
	str	x8, [x9, x10]
Lloh5:
	adrp	x8, _SONY_WORKER_STATE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SONY_WORKER_STATE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_sony_schedule_work
LBB0_19:
	mov	w0, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No device data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SONY_WORKER_STATE,4,2          ; @SONY_WORKER_STATE
	.no_dead_strip	_sony_led_blink_set
.subsections_via_symbols
