	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt_allocate_application
_mt_allocate_application:               ## @mt_allocate_application
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movq	16(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	%r12d, (%rbx)
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	_HID_DG_TOUCHSCREEN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_3
## %bb.2:
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
LBB0_3:
	movq	_HID_DG_TOUCHPAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%rbx)
	movq	_MT_INPUTMODE_TOUCHPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_5:
	movq	_DEFAULT_ZERO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movl	4(%r15), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_HID_DG_TOUCHSCREEN,4,2         ## @HID_DG_TOUCHSCREEN
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
	.comm	_HID_DG_TOUCHPAD,4,2            ## @HID_DG_TOUCHPAD
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_MT_INPUTMODE_TOUCHPAD,4,2      ## @MT_INPUTMODE_TOUCHPAD
	.comm	_DEFAULT_ZERO,8,3               ## @DEFAULT_ZERO
	.no_dead_strip	_mt_allocate_application
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt_allocate_application
_mt_allocate_application:               ; @mt_allocate_application
	.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, x1
	mov	x19, x0
	ldr	w22, [x1]
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	mov	x21, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	str	w22, [x0], #36
	bl	_INIT_LIST_HEAD
Lloh3:
	adrp	x8, _HID_DG_TOUCHSCREEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HID_DG_TOUCHSCREEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _INPUT_MT_DIRECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21, #32]
	orr	w8, w9, w8
	str	w8, [x21, #32]
LBB0_3:
Lloh9:
	adrp	x8, _HID_DG_TOUCHPAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_DG_TOUCHPAD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _INPUT_MT_POINTER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INPUT_MT_POINTER@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x21, #32]
	orr	w8, w9, w8
	str	w8, [x21, #32]
Lloh15:
	adrp	x8, _MT_INPUTMODE_TOUCHPAD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MT_INPUTMODE_TOUCHPAD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_5:
Lloh18:
	adrp	x8, _DEFAULT_ZERO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEFAULT_ZERO@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	stp	x8, x8, [x21, #16]
	ldr	w8, [x19, #4]
	ldr	w9, [x20, #4]
	stp	w9, w8, [x21, #8]
	add	x0, x21, #4
	mov	x1, x19
	bl	_list_add_tail
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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_HID_DG_TOUCHSCREEN,4,2         ; @HID_DG_TOUCHSCREEN
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
	.comm	_HID_DG_TOUCHPAD,4,2            ; @HID_DG_TOUCHPAD
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_MT_INPUTMODE_TOUCHPAD,4,2      ; @MT_INPUTMODE_TOUCHPAD
	.comm	_DEFAULT_ZERO,8,3               ; @DEFAULT_ZERO
	.no_dead_strip	_mt_allocate_application
.subsections_via_symbols
