	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpm_tis_init
_tpm_tis_init:                          ## @tpm_tis_init
	.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, %r14d
	movl	%edx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_tpm_tis@GOTPCREL(%rip), %rsi
	callq	_tpm_register_hardware
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_ioremap
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_TIS_SHORT_TIMEOUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_msecs_to_jiffies
	movq	%rax, 72(%r13)
	movq	_TIS_LONG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, 64(%r13)
	movl	(%rbx), %edi
	callq	_msecs_to_jiffies
	movq	%rax, 56(%r13)
	movl	(%rbx), %edi
	callq	_msecs_to_jiffies
	movq	%rax, 48(%r13)
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_request_locality
	movq	16(%r13), %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.39:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testq	%r12, %r12
	je	LBB0_41
## %bb.40:
	movq	%r12, %rdi
	callq	_iounmap
	jmp	LBB0_41
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_42
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_41:
	negl	%ebx
	movl	(%r13), %edi
	callq	_tpm_remove_hardware
	jmp	LBB0_42
LBB0_5:
	xorl	%edi, %edi
	callq	_TPM_DID_VID
	addq	%rax, %r12
	movq	%r12, %rdi
	callq	_ioread32
	movl	%eax, %r12d
	sarl	$16, %r12d
	movq	16(%r13), %rbx
	xorl	%edi, %edi
	callq	_TPM_RID
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread8
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_itpm@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_7:
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INTF_CAPS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread32
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_TPM_INTF_BURST_COUNT_STATIC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_9:
	movq	_TPM_INTF_CMD_READY_INT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_11:
	movq	_TPM_INTF_INT_EDGE_FALLING@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_13:
	movq	_TPM_INTF_INT_EDGE_RISING@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_15:
	movq	_TPM_INTF_INT_LEVEL_LOW@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_17
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_17:
	movq	_TPM_INTF_INT_LEVEL_HIGH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_19:
	movq	_TPM_INTF_LOCALITY_CHANGE_INT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_21
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_21:
	movq	_TPM_INTF_STS_VALID_INT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_23
## %bb.22:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_23:
	movq	_TPM_INTF_DATA_AVAIL_INT@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	movq	%rax, %r12
	je	LBB0_25
## %bb.24:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_25:
	leaq	40(%r13), %rdi
	callq	_init_waitqueue_head
	leaq	36(%r13), %rdi
	callq	_init_waitqueue_head
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_ENABLE
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread32
	movl	%eax, %r15d
	movq	_TPM_INTF_CMD_READY_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_TPM_INTF_LOCALITY_CHANGE_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	orl	(%r12), %r15d
	movq	_TPM_INTF_STS_VALID_INT@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_ENABLE
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_iowrite32
	movq	_interrupts@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_34
## %bb.26:
	movl	%r14d, 8(%r13)
	testl	%r14d, %r14d
	jne	LBB0_34
## %bb.27:
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_VECTOR
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread8
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	jne	LBB0_34
## %bb.28:
	movl	$3, %r14d
	movq	_tis_int_probe@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_VECTOR
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_iowrite8
	movl	(%r12), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	32(%r13), %ecx
	movl	%r14d, %edi
	movq	%r13, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.12(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_info
	cmpl	$15, %r14d
	jne	LBB0_33
	jmp	LBB0_34
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_STATUS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread32
	movl	%eax, %ebx
	movq	16(%r13), %r12
	movl	28(%r13), %edi
	callq	_TPM_INT_STATUS
	addq	%rax, %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_iowrite32
	movq	_TPM_GLOBAL_INT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	orl	%r15d, %r12d
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_ENABLE
	addq	%rax, %rbx
	movl	%r12d, %edi
	movq	_tis_int_probe@GOTPCREL(%rip), %r12
	movq	%rbx, %rsi
	callq	_iowrite32
	movq	%r13, %rdi
	callq	_tpm_gen_interrupt
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_ENABLE
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_iowrite32
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_free_irq
	cmpl	$15, %r14d
	je	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	incl	%r14d
	cmpl	$0, 8(%r13)
	je	LBB0_29
LBB0_34:
	movl	8(%r13), %r14d
	testl	%r14d, %r14d
	je	LBB0_38
## %bb.35:
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_VECTOR
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_iowrite8
	movq	_tis_int_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%r13), %edi
	movl	32(%r13), %ecx
	movq	%r13, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movl	(%r13), %edi
	movl	8(%r13), %edx
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$0, 8(%r13)
	jmp	LBB0_38
LBB0_37:
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_STATUS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_ioread32
	movl	%eax, %r14d
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_STATUS
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_iowrite32
	movq	_TPM_GLOBAL_INT_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	16(%r13), %rbx
	movl	28(%r13), %edi
	callq	_TPM_INT_ENABLE
	addq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_iowrite32
LBB0_38:
	movq	%r13, %rbx
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	_tis_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_tis_chips@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r13, %rdi
	callq	_tpm_get_timeouts
	movq	%r13, %rdi
	callq	_tpm_continue_selftest
	xorl	%ebx, %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tpm_tis,4,2                    ## @tpm_tis
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TIS_SHORT_TIMEOUT,4,2          ## @TIS_SHORT_TIMEOUT
	.comm	_TIS_LONG_TIMEOUT,4,2           ## @TIS_LONG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1.2 TPM (device-id 0x%X, rev-id %d)\n"

	.comm	_itpm,8,3                       ## @itpm
L_.str.1:                               ## @.str.1
	.asciz	"Intel iTPM workaround enabled\n"

L_.str.2:                               ## @.str.2
	.asciz	"TPM interface capabilities (0x%x):\n"

	.comm	_TPM_INTF_BURST_COUNT_STATIC,4,2 ## @TPM_INTF_BURST_COUNT_STATIC
L_.str.3:                               ## @.str.3
	.asciz	"\tBurst Count Static\n"

	.comm	_TPM_INTF_CMD_READY_INT,4,2     ## @TPM_INTF_CMD_READY_INT
L_.str.4:                               ## @.str.4
	.asciz	"\tCommand Ready Int Support\n"

	.comm	_TPM_INTF_INT_EDGE_FALLING,4,2  ## @TPM_INTF_INT_EDGE_FALLING
L_.str.5:                               ## @.str.5
	.asciz	"\tInterrupt Edge Falling\n"

	.comm	_TPM_INTF_INT_EDGE_RISING,4,2   ## @TPM_INTF_INT_EDGE_RISING
L_.str.6:                               ## @.str.6
	.asciz	"\tInterrupt Edge Rising\n"

	.comm	_TPM_INTF_INT_LEVEL_LOW,4,2     ## @TPM_INTF_INT_LEVEL_LOW
L_.str.7:                               ## @.str.7
	.asciz	"\tInterrupt Level Low\n"

	.comm	_TPM_INTF_INT_LEVEL_HIGH,4,2    ## @TPM_INTF_INT_LEVEL_HIGH
L_.str.8:                               ## @.str.8
	.asciz	"\tInterrupt Level High\n"

	.comm	_TPM_INTF_LOCALITY_CHANGE_INT,4,2 ## @TPM_INTF_LOCALITY_CHANGE_INT
L_.str.9:                               ## @.str.9
	.asciz	"\tLocality Change Int Support\n"

	.comm	_TPM_INTF_STS_VALID_INT,4,2     ## @TPM_INTF_STS_VALID_INT
L_.str.10:                              ## @.str.10
	.asciz	"\tSts Valid Int Support\n"

	.comm	_TPM_INTF_DATA_AVAIL_INT,4,2    ## @TPM_INTF_DATA_AVAIL_INT
L_.str.11:                              ## @.str.11
	.asciz	"\tData Avail Int Support\n"

	.comm	_interrupts,8,3                 ## @interrupts
	.comm	_tis_int_probe,4,2              ## @tis_int_probe
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.12:                              ## @.str.12
	.asciz	"Unable to request irq: %d for probe\n"

	.comm	_TPM_GLOBAL_INT_ENABLE,4,2      ## @TPM_GLOBAL_INT_ENABLE
	.comm	_tis_int_handler,4,2            ## @tis_int_handler
L_.str.13:                              ## @.str.13
	.asciz	"Unable to request irq: %d for use\n"

	.comm	_tis_lock,4,2                   ## @tis_lock
	.comm	_tis_chips,4,2                  ## @tis_chips
	.no_dead_strip	_tpm_tis_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpm_tis_init
_tpm_tis_init:                          ; @tpm_tis_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x1, _tpm_tis@GOTPAGE
Lloh1:
	ldr	x1, [x1, _tpm_tis@GOTPAGEOFF]
	bl	_tpm_register_hardware
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x23
	mov	x1, x22
	bl	_ioremap
	str	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x22, _TIS_SHORT_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TIS_SHORT_TIMEOUT@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_msecs_to_jiffies
	str	x0, [x19, #72]
Lloh4:
	adrp	x8, _TIS_LONG_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TIS_LONG_TIMEOUT@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	str	x0, [x19, #64]
	ldr	w0, [x22]
	bl	_msecs_to_jiffies
	str	x0, [x19, #56]
	ldr	w0, [x22]
	bl	_msecs_to_jiffies
	str	x0, [x19, #48]
	mov	x0, x19
	mov	w1, #0
	bl	_request_locality
	ldr	x22, [x19, #16]
	cbz	x0, LBB0_8
; %bb.3:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	cbz	x22, LBB0_7
; %bb.4:
	mov	x0, x22
	bl	_iounmap
	b	LBB0_7
LBB0_5:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_41
LBB0_6:
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
LBB0_7:
	neg	w20, w20
	ldr	w0, [x19]
	bl	_tpm_remove_hardware
	b	LBB0_41
LBB0_8:
	bl	_TPM_DID_VID
	add	x0, x0, x22
	bl	_ioread32
	asr	w22, w0, #16
	ldr	x23, [x19, #16]
	mov	w0, #0
	bl	_TPM_RID
	add	x0, x0, x23
	bl	_ioread8
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_info
Lloh18:
	adrp	x8, _itpm@GOTPAGE
Lloh19:
	ldr	x8, [x8, _itpm@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_info
LBB0_10:
	ldr	x22, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INTF_CAPS
	add	x0, x0, x22
	bl	_ioread32
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh25:
	adrp	x8, _TPM_INTF_BURST_COUNT_STATIC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TPM_INTF_BURST_COUNT_STATIC@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_12:
Lloh30:
	adrp	x23, _TPM_INTF_CMD_READY_INT@GOTPAGE
Lloh31:
	ldr	x23, [x23, _TPM_INTF_CMD_READY_INT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_14:
Lloh34:
	adrp	x8, _TPM_INTF_INT_EDGE_FALLING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TPM_INTF_INT_EDGE_FALLING@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_16
; %bb.15:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_16:
Lloh39:
	adrp	x8, _TPM_INTF_INT_EDGE_RISING@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TPM_INTF_INT_EDGE_RISING@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.17:
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_18:
Lloh44:
	adrp	x8, _TPM_INTF_INT_LEVEL_LOW@GOTPAGE
Lloh45:
	ldr	x8, [x8, _TPM_INTF_INT_LEVEL_LOW@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_20
; %bb.19:
Lloh47:
	adrp	x1, l_.str.7@PAGE
Lloh48:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_20:
Lloh49:
	adrp	x8, _TPM_INTF_INT_LEVEL_HIGH@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TPM_INTF_INT_LEVEL_HIGH@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_22
; %bb.21:
Lloh52:
	adrp	x1, l_.str.8@PAGE
Lloh53:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_22:
Lloh54:
	adrp	x24, _TPM_INTF_LOCALITY_CHANGE_INT@GOTPAGE
Lloh55:
	ldr	x24, [x24, _TPM_INTF_LOCALITY_CHANGE_INT@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_24
; %bb.23:
Lloh56:
	adrp	x1, l_.str.9@PAGE
Lloh57:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_24:
Lloh58:
	adrp	x25, _TPM_INTF_STS_VALID_INT@GOTPAGE
Lloh59:
	ldr	x25, [x25, _TPM_INTF_STS_VALID_INT@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w22
	b.eq	LBB0_26
; %bb.25:
Lloh60:
	adrp	x1, l_.str.10@PAGE
Lloh61:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_26:
Lloh62:
	adrp	x26, _TPM_INTF_DATA_AVAIL_INT@GOTPAGE
Lloh63:
	ldr	x26, [x26, _TPM_INTF_DATA_AVAIL_INT@GOTPAGEOFF]
	ldr	w8, [x26]
	tst	w8, w22
	b.eq	LBB0_28
; %bb.27:
Lloh64:
	adrp	x1, l_.str.11@PAGE
Lloh65:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
LBB0_28:
	add	x0, x19, #40
	bl	_init_waitqueue_head
	add	x0, x19, #36
	bl	_init_waitqueue_head
	ldr	x21, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_ENABLE
	add	x0, x0, x21
	bl	_ioread32
	ldr	w8, [x23]
	ldr	w9, [x24]
	ldr	w10, [x26]
	ldr	w11, [x25]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w21, w8, w11
	ldr	x22, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_ENABLE
	add	x1, x0, x22
	mov	x0, x21
	bl	_iowrite32
Lloh66:
	adrp	x8, _interrupts@GOTPAGE
Lloh67:
	ldr	x8, [x8, _interrupts@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.29:
	str	w20, [x19, #8]
	cbnz	w20, LBB0_36
; %bb.30:
	ldr	x20, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_VECTOR
	add	x0, x0, x20
	bl	_ioread8
	str	w0, [x19, #8]
	cbnz	w0, LBB0_36
; %bb.31:
	mov	w20, #3
Lloh69:
	adrp	x24, _tis_int_probe@GOTPAGE
Lloh70:
	ldr	x24, [x24, _tis_int_probe@GOTPAGEOFF]
Lloh71:
	adrp	x25, _IRQF_SHARED@GOTPAGE
Lloh72:
	ldr	x25, [x25, _IRQF_SHARED@GOTPAGEOFF]
Lloh73:
	adrp	x26, _TPM_GLOBAL_INT_ENABLE@GOTPAGE
Lloh74:
	ldr	x26, [x26, _TPM_GLOBAL_INT_ENABLE@GOTPAGEOFF]
Lloh75:
	adrp	x22, l_.str.12@PAGE
Lloh76:
	add	x22, x22, l_.str.12@PAGEOFF
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_VECTOR
	add	x1, x0, x23
	mov	x0, x20
	bl	_iowrite8
	ldr	w1, [x24]
	ldr	w2, [x25]
	ldr	w3, [x19, #32]
	mov	x0, x20
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_34
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	w0, [x19]
	str	x20, [sp]
	mov	x1, x22
	bl	_dev_info
	cmp	w20, #15
	b.ne	LBB0_35
	b	LBB0_36
LBB0_34:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	x23, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_STATUS
	add	x0, x0, x23
	bl	_ioread32
	mov	x23, x0
	ldr	x27, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_STATUS
	add	x1, x0, x27
	mov	x0, x23
	bl	_iowrite32
	ldr	w8, [x26]
	orr	w23, w8, w21
	ldr	x27, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_ENABLE
	add	x1, x0, x27
	mov	x0, x23
	bl	_iowrite32
	mov	x0, x19
	bl	_tpm_gen_interrupt
	ldr	x23, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_ENABLE
	add	x1, x0, x23
	mov	x0, x21
	bl	_iowrite32
	mov	x0, x20
	mov	x1, x19
	bl	_free_irq
	cmp	w20, #15
	b.eq	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_32 Depth=1
	ldr	w8, [x19, #8]
	add	w20, w20, #1
	cbz	w8, LBB0_32
LBB0_36:
	ldr	w20, [x19, #8]
	cbz	w20, LBB0_40
; %bb.37:
	ldr	x22, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_VECTOR
	add	x1, x0, x22
	mov	x0, x20
	bl	_iowrite8
Lloh77:
	adrp	x8, _tis_int_handler@GOTPAGE
Lloh78:
	ldr	x8, [x8, _tis_int_handler@GOTPAGEOFF]
	ldr	w0, [x19, #8]
Lloh79:
	ldr	w1, [x8]
Lloh80:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh81:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh82:
	ldr	w2, [x8]
	ldr	w3, [x19, #32]
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_39
; %bb.38:
	ldr	w0, [x19]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh83:
	adrp	x1, l_.str.13@PAGE
Lloh84:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dev_info
	str	wzr, [x19, #8]
	b	LBB0_40
LBB0_39:
	ldr	x20, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_STATUS
	add	x0, x0, x20
	bl	_ioread32
	mov	x20, x0
	ldr	x22, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_STATUS
	add	x1, x0, x22
	mov	x0, x20
	bl	_iowrite32
Lloh85:
	adrp	x8, _TPM_GLOBAL_INT_ENABLE@GOTPAGE
Lloh86:
	ldr	x8, [x8, _TPM_GLOBAL_INT_ENABLE@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	orr	w20, w8, w21
	ldr	x21, [x19, #16]
	ldr	w0, [x19, #28]
	bl	_TPM_INT_ENABLE
	add	x1, x0, x21
	mov	x0, x20
	bl	_iowrite32
LBB0_40:
	add	x20, x19, #24
	mov	x0, x20
	bl	_INIT_LIST_HEAD
Lloh88:
	adrp	x21, _tis_lock@GOTPAGE
Lloh89:
	ldr	x21, [x21, _tis_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
Lloh90:
	adrp	x1, _tis_chips@GOTPAGE
Lloh91:
	ldr	x1, [x1, _tis_chips@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_add
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x19
	bl	_tpm_get_timeouts
	mov	x0, x19
	bl	_tpm_continue_selftest
	mov	w20, #0
LBB0_41:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_tpm_tis,4,2                    ; @tpm_tis
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TIS_SHORT_TIMEOUT,4,2          ; @TIS_SHORT_TIMEOUT
	.comm	_TIS_LONG_TIMEOUT,4,2           ; @TIS_LONG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1.2 TPM (device-id 0x%X, rev-id %d)\n"

	.comm	_itpm,8,3                       ; @itpm
l_.str.1:                               ; @.str.1
	.asciz	"Intel iTPM workaround enabled\n"

l_.str.2:                               ; @.str.2
	.asciz	"TPM interface capabilities (0x%x):\n"

	.comm	_TPM_INTF_BURST_COUNT_STATIC,4,2 ; @TPM_INTF_BURST_COUNT_STATIC
l_.str.3:                               ; @.str.3
	.asciz	"\tBurst Count Static\n"

	.comm	_TPM_INTF_CMD_READY_INT,4,2     ; @TPM_INTF_CMD_READY_INT
l_.str.4:                               ; @.str.4
	.asciz	"\tCommand Ready Int Support\n"

	.comm	_TPM_INTF_INT_EDGE_FALLING,4,2  ; @TPM_INTF_INT_EDGE_FALLING
l_.str.5:                               ; @.str.5
	.asciz	"\tInterrupt Edge Falling\n"

	.comm	_TPM_INTF_INT_EDGE_RISING,4,2   ; @TPM_INTF_INT_EDGE_RISING
l_.str.6:                               ; @.str.6
	.asciz	"\tInterrupt Edge Rising\n"

	.comm	_TPM_INTF_INT_LEVEL_LOW,4,2     ; @TPM_INTF_INT_LEVEL_LOW
l_.str.7:                               ; @.str.7
	.asciz	"\tInterrupt Level Low\n"

	.comm	_TPM_INTF_INT_LEVEL_HIGH,4,2    ; @TPM_INTF_INT_LEVEL_HIGH
l_.str.8:                               ; @.str.8
	.asciz	"\tInterrupt Level High\n"

	.comm	_TPM_INTF_LOCALITY_CHANGE_INT,4,2 ; @TPM_INTF_LOCALITY_CHANGE_INT
l_.str.9:                               ; @.str.9
	.asciz	"\tLocality Change Int Support\n"

	.comm	_TPM_INTF_STS_VALID_INT,4,2     ; @TPM_INTF_STS_VALID_INT
l_.str.10:                              ; @.str.10
	.asciz	"\tSts Valid Int Support\n"

	.comm	_TPM_INTF_DATA_AVAIL_INT,4,2    ; @TPM_INTF_DATA_AVAIL_INT
l_.str.11:                              ; @.str.11
	.asciz	"\tData Avail Int Support\n"

	.comm	_interrupts,8,3                 ; @interrupts
	.comm	_tis_int_probe,4,2              ; @tis_int_probe
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.12:                              ; @.str.12
	.asciz	"Unable to request irq: %d for probe\n"

	.comm	_TPM_GLOBAL_INT_ENABLE,4,2      ; @TPM_GLOBAL_INT_ENABLE
	.comm	_tis_int_handler,4,2            ; @tis_int_handler
l_.str.13:                              ; @.str.13
	.asciz	"Unable to request irq: %d for use\n"

	.comm	_tis_lock,4,2                   ; @tis_lock
	.comm	_tis_chips,4,2                  ; @tis_chips
	.no_dead_strip	_tpm_tis_init
.subsections_via_symbols
