	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_initialize
_mxt_initialize:                        ## @mxt_initialize
	.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	%rdi, %r15
	movq	8(%rdi), %r14
	callq	_mxt_read_info_block
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mxt_probe_bootloader
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mxt_probe_bootloader
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
LBB0_3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mxt_send_bootloader_cmd
	movq	_MXT_FW_RESET_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%r15, %rdi
	callq	_mxt_read_info_block
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mxt_probe_bootloader
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mxt_probe_bootloader
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	$1, (%r15)
	jmp	LBB0_10
LBB0_7:
	movq	%r15, %rdi
	callq	_mxt_acquire_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MXT_CFG_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_mxt_config_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	$1, %esi
	movq	%r14, %rcx
	movq	%r15, %r9
	callq	_request_firmware_nowait
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Trying alternate bootloader address\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not recover from bootloader mode\n"

	.comm	_MXT_FW_RESET_TIME,4,2          ## @MXT_FW_RESET_TIME
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MXT_CFG_NAME,4,2               ## @MXT_CFG_NAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mxt_config_cb,4,2              ## @mxt_config_cb
L_.str.2:                               ## @.str.2
	.asciz	"Failed to invoke firmware loader: %d\n"

	.no_dead_strip	_mxt_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_initialize
_mxt_initialize:                        ; @mxt_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	bl	_mxt_read_info_block
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	w1, #0
	bl	_mxt_probe_bootloader
	cbz	w0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	mov	w1, #1
	bl	_mxt_probe_bootloader
	mov	x21, x0
	cbnz	w0, LBB0_10
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_mxt_send_bootloader_cmd
Lloh2:
	adrp	x8, _MXT_FW_RESET_TIME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MXT_FW_RESET_TIME@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_msleep
	mov	x0, x20
	bl	_mxt_read_info_block
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_mxt_probe_bootloader
	cbz	w0, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x20
	mov	w1, #1
	bl	_mxt_probe_bootloader
	mov	x21, x0
	cbnz	w0, LBB0_10
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w21, #0
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	bl	_mxt_acquire_irq
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _MXT_CFG_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MXT_CFG_NAME@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _mxt_config_cb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mxt_config_cb@GOTPAGEOFF]
Lloh20:
	ldr	w6, [x8]
	mov	w1, #1
	mov	x3, x19
	mov	x5, x20
	bl	_request_firmware_nowait
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.9:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Trying alternate bootloader address\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not recover from bootloader mode\n"

	.comm	_MXT_FW_RESET_TIME,4,2          ; @MXT_FW_RESET_TIME
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MXT_CFG_NAME,4,2               ; @MXT_CFG_NAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mxt_config_cb,4,2              ; @mxt_config_cb
l_.str.2:                               ; @.str.2
	.asciz	"Failed to invoke firmware loader: %d\n"

	.no_dead_strip	_mxt_initialize
.subsections_via_symbols
