	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dj_get_receiver_dev
_dj_get_receiver_dev:                   ## @dj_get_receiver_dev
	.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	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	_dj_hdev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_dj_find_receiver_dev
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_9
LBB0_1:
	movq	_HID_GD_KEYBOARD@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r14, 24(%rbx)
LBB0_3:
	movq	_HID_GD_MOUSE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r14, 16(%rbx)
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	%r14, 8(%rbx)
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hid_set_drvdata
	jmp	LBB0_8
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rbx
	leaq	52(%rax), %rdi
	movq	_delayedwork_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	48(%rbx), %rdi
	callq	_spin_lock_init
	leaq	44(%rbx), %rdi
	movq	_DJ_MAX_NUMBER_NOTIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kfifo_alloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_12:
	xorl	%ebx, %ebx
LBB0_8:
	movq	_dj_hdev_list_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	40(%rbx), %rdi
	callq	_kref_init
	movq	%rbx, %rdi
	addq	$36, %rdi
	movq	_dj_hdev_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	%r13d, (%rbx)
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_dj_hdev_list_lock,4,2          ## @dj_hdev_list_lock
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_delayedwork_callback,4,2       ## @delayedwork_callback
	.comm	_DJ_MAX_NUMBER_NOTIFS,4,2       ## @DJ_MAX_NUMBER_NOTIFS
	.comm	_dj_hdev_list,4,2               ## @dj_hdev_list
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HID_GD_KEYBOARD,4,2            ## @HID_GD_KEYBOARD
	.comm	_HID_GD_MOUSE,4,2               ## @HID_GD_MOUSE
	.no_dead_strip	_dj_get_receiver_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dj_get_receiver_dev
_dj_get_receiver_dev:                   ; @dj_get_receiver_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _dj_hdev_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dj_hdev_list_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x23
	bl	_dj_find_receiver_dev
	mov	x20, x0
	cbz	x0, LBB0_9
LBB0_1:
Lloh2:
	adrp	x8, _HID_GD_KEYBOARD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HID_GD_KEYBOARD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_3
; %bb.2:
	str	x19, [x20, #24]
LBB0_3:
Lloh5:
	adrp	x8, _HID_GD_MOUSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HID_GD_MOUSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.4:
	str	x19, [x20, #16]
LBB0_5:
	cbz	w21, LBB0_7
; %bb.6:
	str	x19, [x20, #8]
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_hid_set_drvdata
LBB0_8:
Lloh8:
	adrp	x0, _dj_hdev_list_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dj_hdev_list_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh10:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #56
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.10:
	add	x0, x20, #52
Lloh12:
	adrp	x8, _delayedwork_callback@GOTPAGE
Lloh13:
	ldr	x8, [x8, _delayedwork_callback@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x20, #48
	bl	_spin_lock_init
	add	x0, x20, #44
Lloh15:
	adrp	x8, _DJ_MAX_NUMBER_NOTIFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DJ_MAX_NUMBER_NOTIFS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	lsl	w1, w8, #2
	ldr	w2, [x24]
	bl	_kfifo_alloc
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
	b	LBB0_8
LBB0_12:
	add	x0, x20, #40
	bl	_kref_init
	add	x0, x20, #36
Lloh18:
	adrp	x1, _dj_hdev_list@GOTPAGE
Lloh19:
	ldr	x1, [x1, _dj_hdev_list@GOTPAGEOFF]
	bl	_list_add_tail
Lloh20:
	adrp	x8, _jiffies@GOTPAGE
Lloh21:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	w23, [x20]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_dj_hdev_list_lock,4,2          ; @dj_hdev_list_lock
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_delayedwork_callback,4,2       ; @delayedwork_callback
	.comm	_DJ_MAX_NUMBER_NOTIFS,4,2       ; @DJ_MAX_NUMBER_NOTIFS
	.comm	_dj_hdev_list,4,2               ; @dj_hdev_list
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HID_GD_KEYBOARD,4,2            ; @HID_GD_KEYBOARD
	.comm	_HID_GD_MOUSE,4,2               ; @HID_GD_MOUSE
	.no_dead_strip	_dj_get_receiver_dev
.subsections_via_symbols
