	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function logi_dj_recv_switch_to_dj_mode
LCPI0_0:
	.long	255                             ## 0xff
	.long	128                             ## 0x80
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_logi_dj_recv_switch_to_dj_mode:        ## @logi_dj_recv_switch_to_dj_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%r12), %rax
	movq	_recvr_type_dj@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_REPORT_ID_DJ_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$255, (%rbx)
	movq	_REPORT_TYPE_CMD_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	8(%rbx), %rax
	movq	_CMD_SWITCH_PARAM_DEVBITFIELD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$63, (%rax,%rcx,4)
	movq	_CMD_SWITCH_PARAM_TIMEOUT_SECONDS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, (%rax,%rcx,4)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_logi_dj_recv_send_report
	movl	%eax, %r15d
	movl	$50, %edi
	callq	_msleep
LBB0_4:
	movq	_HIDPP_REPORT_SHORT_LENGTH@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_REPORT_ID_HIDPP_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,128,0,0]
	movups	%xmm0, 4(%rbx)
	movq	$9, 20(%rbx)
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movq	_HID_OUTPUT_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_hid_hw_raw_request
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_recvr_type_dj,8,3              ## @recvr_type_dj
	.comm	_REPORT_ID_DJ_SHORT,4,2         ## @REPORT_ID_DJ_SHORT
	.comm	_REPORT_TYPE_CMD_SWITCH,4,2     ## @REPORT_TYPE_CMD_SWITCH
	.comm	_CMD_SWITCH_PARAM_DEVBITFIELD,8,3 ## @CMD_SWITCH_PARAM_DEVBITFIELD
	.comm	_CMD_SWITCH_PARAM_TIMEOUT_SECONDS,8,3 ## @CMD_SWITCH_PARAM_TIMEOUT_SECONDS
	.comm	_HIDPP_REPORT_SHORT_LENGTH,4,2  ## @HIDPP_REPORT_SHORT_LENGTH
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ## @REPORT_ID_HIDPP_SHORT
	.comm	_HID_OUTPUT_REPORT,4,2          ## @HID_OUTPUT_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.no_dead_strip	_logi_dj_recv_switch_to_dj_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function logi_dj_recv_switch_to_dj_mode
lCPI0_0:
	.long	255                             ; 0xff
	.long	128                             ; 0x80
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	9                               ; 0x9
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_logi_dj_recv_switch_to_dj_mode:        ; @logi_dj_recv_switch_to_dj_mode
	.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	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _recvr_type_dj@GOTPAGE
Lloh4:
	ldr	x9, [x9, _recvr_type_dj@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _REPORT_ID_DJ_SHORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REPORT_ID_DJ_SHORT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #255
	str	w9, [x20]
Lloh9:
	adrp	x9, _REPORT_TYPE_CMD_SWITCH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _REPORT_TYPE_CMD_SWITCH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _CMD_SWITCH_PARAM_DEVBITFIELD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CMD_SWITCH_PARAM_DEVBITFIELD@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	mov	w10, #63
	str	w10, [x8, x9, lsl #2]
Lloh15:
	adrp	x9, _CMD_SWITCH_PARAM_TIMEOUT_SECONDS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMD_SWITCH_PARAM_TIMEOUT_SECONDS@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	w22, [x8, x9, lsl #2]
	mov	x0, x21
	mov	x1, x20
	bl	_logi_dj_recv_send_report
	mov	x21, x0
	mov	w0, #50
	bl	_msleep
	b	LBB0_5
LBB0_3:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	mov	w21, #0
LBB0_5:
Lloh21:
	adrp	x22, _HIDPP_REPORT_SHORT_LENGTH@GOTPAGE
Lloh22:
	ldr	x22, [x22, _HIDPP_REPORT_SHORT_LENGTH@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh23:
	adrp	x8, _REPORT_ID_HIDPP_SHORT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _REPORT_ID_HIDPP_SHORT@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x20]
Lloh25:
	adrp	x9, lCPI0_0@PAGE
Lloh26:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x20, #4]
Lloh27:
	adrp	x9, lCPI0_1@PAGE
Lloh28:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	stur	d0, [x20, #20]
	ldr	w1, [x8]
	ldr	w3, [x22]
Lloh29:
	adrp	x8, _HID_OUTPUT_REPORT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HID_OUTPUT_REPORT@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
Lloh32:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh34:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_hid_hw_raw_request
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpAdrp	Lloh25, Lloh27
	.loh AdrpLdr	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_recvr_type_dj,8,3              ; @recvr_type_dj
	.comm	_REPORT_ID_DJ_SHORT,4,2         ; @REPORT_ID_DJ_SHORT
	.comm	_REPORT_TYPE_CMD_SWITCH,4,2     ; @REPORT_TYPE_CMD_SWITCH
	.comm	_CMD_SWITCH_PARAM_DEVBITFIELD,8,3 ; @CMD_SWITCH_PARAM_DEVBITFIELD
	.comm	_CMD_SWITCH_PARAM_TIMEOUT_SECONDS,8,3 ; @CMD_SWITCH_PARAM_TIMEOUT_SECONDS
	.comm	_HIDPP_REPORT_SHORT_LENGTH,4,2  ; @HIDPP_REPORT_SHORT_LENGTH
	.comm	_REPORT_ID_HIDPP_SHORT,4,2      ; @REPORT_ID_HIDPP_SHORT
	.comm	_HID_OUTPUT_REPORT,4,2          ; @HID_OUTPUT_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.no_dead_strip	_logi_dj_recv_switch_to_dj_mode
.subsections_via_symbols
