	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt_allocate_report_data
_mt_allocate_report_data:               ## @mt_allocate_report_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, 16(%rax)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mt_find_application
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_26
## %bb.2:
	movl	(%r15), %r10d
	testl	%r10d, %r10d
	jle	LBB0_24
## %bb.3:
	movq	8(%r15), %r9
	movq	_HID_DG_CONTACTID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%r11d, %r11d
	movq	_HID_MAIN_ITEM_VARIABLE@GOTPCREL(%rip), %r8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r11
	cmpq	%r10, %r11
	je	LBB0_24
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movq	(%r9,%r11,8), %rax
	movl	(%rax), %ecx
	testl	%ecx, (%r8)
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rcx
	leaq	-1(%rdi), %rsi
	movl	%edi, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%esi, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	(%rcx,%rsi,8), %rcx
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	je	LBB0_4
LBB0_12:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rcx,%rsi,8)
	jne	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movl	$1, (%rbx)
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	andl	$-4, %edi
	xorl	%esi, %esi
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=2
	addq	$4, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_9
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rdx, (%rcx,%rsi,8)
	jne	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, (%rbx)
	cmpq	%rdx, 8(%rcx,%rsi,8)
	je	LBB0_21
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, 16(%rcx,%rsi,8)
	jne	LBB0_19
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, (%rbx)
	cmpq	%rdx, 24(%rcx,%rsi,8)
	jne	LBB0_15
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, 8(%rcx,%rsi,8)
	jne	LBB0_18
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, (%rbx)
	cmpq	%rdx, 16(%rcx,%rsi,8)
	je	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	cmpq	%rdx, 24(%rcx,%rsi,8)
	jne	LBB0_15
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	$1, (%rbx)
	jmp	LBB0_15
LBB0_24:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	jmp	LBB0_28
LBB0_26:
	movq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_devm_kfree
LBB0_27:
	xorl	%ebx, %ebx
LBB0_28:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ## @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_DG_CONTACTID,8,3           ## @HID_DG_CONTACTID
	.no_dead_strip	_mt_allocate_report_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt_allocate_report_data
_mt_allocate_report_data:               ; @mt_allocate_report_data
	.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	x21, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_28
; %bb.1:
	str	x21, [x19, #16]
	mov	x0, x20
	mov	x1, x21
	bl	_mt_find_application
	str	w0, [x19, #8]
	cbz	w0, LBB0_27
; %bb.2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.3:
	mov	x9, #0
	ldr	x10, [x21, #8]
Lloh3:
	adrp	x11, _HID_DG_CONTACTID@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HID_DG_CONTACTID@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	add	x12, x19, #4
	dup.2d	v0, x11
Lloh6:
	adrp	x13, _HID_MAIN_ITEM_VARIABLE@GOTPAGE
Lloh7:
	ldr	x13, [x13, _HID_MAIN_ITEM_VARIABLE@GOTPAGEOFF]
	mov	w14, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_26
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
	ldr	x16, [x10, x9, lsl #3]
	ldr	w15, [x13]
	ldr	w17, [x16]
	tst	w17, w15
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w15, [x16, #4]
	cmp	w15, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x16, [x16, #8]
	cmp	w15, #8
	b.lo	LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x17, x16, x15, lsl #3
	cmp	x19, x17
	ccmp	x16, x12, #2, lo
	b.lo	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x17, x15, #0xfffffff8
	add	x0, x16, #32
	mov	x1, x17
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	str	w14, [x19]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x0, #64
	subs	x1, x1, #8
	b.eq	LBB0_25
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	q1, [x0, #-32]
	cmeq.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w2, s1
	tbnz	w2, #0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov.s	w2, v1[1]
	tbnz	w2, #0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldur	q1, [x0, #-16]
	cmeq.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w2, s1
	tbnz	w2, #0, LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=2
	mov.s	w2, v1[1]
	tbnz	w2, #0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	q1, [x0]
	cmeq.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w2, s1
	tbnz	w2, #0, LBB0_10
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=2
	mov.s	w2, v1[1]
	tbnz	w2, #0, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	q1, [x0, #16]
	cmeq.2d	v1, v1, v0
	xtn.2s	v1, v1
	fmov	w2, s1
	tbnz	w2, #0, LBB0_10
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=2
	mov.s	w2, v1[1]
	tbz	w2, #0, LBB0_11
	b	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x17, #0
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x16, x16, x17, lsl #3
	sub	x15, x15, x17
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x16, x16, #8
	subs	x15, x15, #1
	b.eq	LBB0_4
LBB0_23:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x17, [x16]
	cmp	x17, x11
	b.ne	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	str	w14, [x19]
	b	LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x17, x15
	b.eq	LBB0_4
	b	LBB0_21
LBB0_26:
	add	x0, x19, #4
	mov	x1, x20
	bl	_list_add_tail
	b	LBB0_28
LBB0_27:
	ldr	x0, [x20, #8]
	mov	x1, x19
	bl	_devm_kfree
	mov	x19, #0
LBB0_28:
	mov	x0, x19
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_HID_MAIN_ITEM_VARIABLE,4,2     ; @HID_MAIN_ITEM_VARIABLE
	.comm	_HID_DG_CONTACTID,8,3           ; @HID_DG_CONTACTID
	.no_dead_strip	_mt_allocate_report_data
.subsections_via_symbols
