	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_probe
_trf7970a_probe:                        ## @trf7970a_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	8(%rdi), %r12
	movq	8(%rdi), %r15
	movq	_TRF7970A_13MHZ_CLOCK_FREQUENCY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%rdi, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, %r14
	movq	_TRF7970A_ST_PWR_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r14)
	movq	%r12, 24(%r14)
	movq	%r13, 80(%r14)
	movq	_SPI_MODE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movl	$8, (%r13)
	movq	%r13, %rdi
	callq	_spi_setup
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_TRF7970A_QUIRK_IRQ_STATUS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r14)
LBB0_5:
	movq	24(%r14), %rdi
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_devm_gpiod_get_index
	movq	%rax, 72(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	72(%r14), %rdi
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_11:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%rbx), %ecx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edx
	callq	_devm_gpiod_get_index_optional
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	_TRF7970A_13MHZ_CLOCK_FREQUENCY@GOTPCREL(%rip), %rbx
	je	LBB0_17
## %bb.15:
	movq	24(%r14), %rbx
	movq	64(%r14), %rdi
	callq	_PTR_ERR
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	64(%r14), %rdi
	jmp	LBB0_7
LBB0_16:
	movq	24(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_info
	movq	_TRF7970A_13MHZ_CLOCK_FREQUENCY@GOTPCREL(%rip), %rbx
	jmp	LBB0_19
LBB0_17:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_TRF7970A_QUIRK_EN2_MUST_STAY_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 56(%r14)
LBB0_19:
	leaq	L_.str.8(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	-48(%rbp), %rdx
	movq	_TRF7970A_27MHZ_CLOCK_FREQUENCY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	LBB0_22
## %bb.20:
	cmpq	(%rbx), %rdx
	je	LBB0_22
## %bb.21:
	movq	24(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_9
LBB0_22:
	cmpq	%rax, %rdx
	jne	LBB0_24
## %bb.23:
	movq	_TRF7970A_MODULATOR_27MHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r14)
	movq	24(%r14), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_25
LBB0_24:
	movq	$0, 48(%r14)
LBB0_25:
	movq	24(%r14), %rdi
	movl	16(%r13), %esi
	movq	_trf7970a_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	%r14, (%rsp)
	leaq	L_.str.11(%rip), %r9
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	movl	16(%r13), %edx
	leaq	L_.str.12(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_27:
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	addq	$40, %rdi
	movq	_trf7970a_timeout_work_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	L_.str.13(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.14(%rip), %rsi
	jmp	LBB0_32
LBB0_30:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_35
## %bb.31:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_32
LBB0_35:
	movq	8(%r14), %rdi
	callq	_regulator_get_voltage
	cmpl	$4000001, %eax                  ## imm = 0x3D0901
	jl	LBB0_37
## %bb.36:
	movq	_TRF7970A_CHIP_STATUS_VRS5_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
LBB0_37:
	leaq	L_.str.16(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.17(%rip), %rsi
	jmp	LBB0_32
LBB0_39:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.18(%rip), %rsi
LBB0_32:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_34:
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_12
LBB0_41:
	movq	8(%r14), %rdi
	callq	_regulator_get_voltage
	cmpl	$1800000, %eax                  ## imm = 0x1B7740
	jne	LBB0_43
## %bb.42:
	movq	_TRF7970A_REG_IO_CTRL_IO_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	24(%r14), %rdi
	leaq	L_.str.19(%rip), %rsi
	callq	_dev_dbg
LBB0_43:
	movq	_TRF7970A_SUPPORTED_PROTOCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFC_DIGITAL_DRV_CAPS_IN_CRC@GOTPCREL(%rip), %rax
	movq	_NFC_DIGITAL_DRV_CAPS_TG_CRC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_trf7970a_nfc_ops@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_digital_allocate_device
	movl	%eax, 16(%r14)
	movq	24(%r14), %rsi
	testl	%eax, %eax
	je	LBB0_48
## %bb.44:
	movl	%eax, %edi
	callq	_nfc_digital_set_parent_dev
	movl	16(%r14), %edi
	movq	%r14, %rsi
	callq	_nfc_digital_set_drvdata
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r15, %rdi
	callq	_trf7970a_get_autosuspend_delay
	movq	24(%r14), %rdi
	movl	%eax, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	24(%r14), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_trf7970a_startup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_47
## %bb.45:
	movl	16(%r14), %edi
	callq	_nfc_digital_register_device
	testl	%eax, %eax
	je	LBB0_50
## %bb.46:
	movl	%eax, %ebx
	movq	24(%r14), %rdi
	leaq	L_.str.21(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_trf7970a_shutdown
LBB0_47:
	movl	16(%r14), %edi
	callq	_nfc_digital_free_device
	jmp	LBB0_49
LBB0_48:
	leaq	L_.str.20(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_49:
	movq	8(%r14), %rdi
	callq	_regulator_disable
	jmp	LBB0_34
LBB0_50:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_TRF7970A_13MHZ_CLOCK_FREQUENCY,8,3 ## @TRF7970A_13MHZ_CLOCK_FREQUENCY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Device Tree entry\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TRF7970A_ST_PWR_OFF,4,2        ## @TRF7970A_ST_PWR_OFF
	.comm	_SPI_MODE_1,4,2                 ## @SPI_MODE_1
L_.str.1:                               ## @.str.1
	.asciz	"Can't set up SPI Communication\n"

L_.str.2:                               ## @.str.2
	.asciz	"irq-status-read-quirk"

	.comm	_TRF7970A_QUIRK_IRQ_STATUS_READ,4,2 ## @TRF7970A_QUIRK_IRQ_STATUS_READ
L_.str.3:                               ## @.str.3
	.asciz	"ti,enable"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"No EN GPIO property\n"

L_.str.5:                               ## @.str.5
	.asciz	"No EN2 GPIO property\n"

L_.str.6:                               ## @.str.6
	.asciz	"Error getting EN2 GPIO property: %ld\n"

L_.str.7:                               ## @.str.7
	.asciz	"en2-rf-quirk"

	.comm	_TRF7970A_QUIRK_EN2_MUST_STAY_LOW,4,2 ## @TRF7970A_QUIRK_EN2_MUST_STAY_LOW
L_.str.8:                               ## @.str.8
	.asciz	"clock-frequency"

	.comm	_TRF7970A_27MHZ_CLOCK_FREQUENCY,8,3 ## @TRF7970A_27MHZ_CLOCK_FREQUENCY
L_.str.9:                               ## @.str.9
	.asciz	"clock-frequency (%u Hz) unsupported\n"

	.comm	_TRF7970A_MODULATOR_27MHZ,8,3   ## @TRF7970A_MODULATOR_27MHZ
L_.str.10:                              ## @.str.10
	.asciz	"trf7970a configured for 27MHz crystal\n"

	.comm	_trf7970a_irq,4,2               ## @trf7970a_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.11:                              ## @.str.11
	.asciz	"trf7970a"

L_.str.12:                              ## @.str.12
	.asciz	"Can't request IRQ#%d: %d\n"

	.comm	_trf7970a_timeout_work_handler,4,2 ## @trf7970a_timeout_work_handler
L_.str.13:                              ## @.str.13
	.asciz	"vin"

L_.str.14:                              ## @.str.14
	.asciz	"Can't get VIN regulator: %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"Can't enable VIN: %d\n"

	.comm	_TRF7970A_CHIP_STATUS_VRS5_3,4,2 ## @TRF7970A_CHIP_STATUS_VRS5_3
L_.str.16:                              ## @.str.16
	.asciz	"vdd-io"

L_.str.17:                              ## @.str.17
	.asciz	"Can't get VDD_IO regulator: %d\n"

L_.str.18:                              ## @.str.18
	.asciz	"Can't enable VDD_IO: %d\n"

	.comm	_TRF7970A_REG_IO_CTRL_IO_LOW,4,2 ## @TRF7970A_REG_IO_CTRL_IO_LOW
L_.str.19:                              ## @.str.19
	.asciz	"trf7970a config vdd_io to 1.8V\n"

	.comm	_trf7970a_nfc_ops,4,2           ## @trf7970a_nfc_ops
	.comm	_TRF7970A_SUPPORTED_PROTOCOLS,4,2 ## @TRF7970A_SUPPORTED_PROTOCOLS
	.comm	_NFC_DIGITAL_DRV_CAPS_IN_CRC,4,2 ## @NFC_DIGITAL_DRV_CAPS_IN_CRC
	.comm	_NFC_DIGITAL_DRV_CAPS_TG_CRC,4,2 ## @NFC_DIGITAL_DRV_CAPS_TG_CRC
L_.str.20:                              ## @.str.20
	.asciz	"Can't allocate NFC digital device\n"

L_.str.21:                              ## @.str.21
	.asciz	"Can't register NFC digital device: %d\n"

	.no_dead_strip	_trf7970a_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_probe
_trf7970a_probe:                        ; @trf7970a_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x0
	ldr	x21, [x22, #8]!
Lloh0:
	adrp	x24, _TRF7970A_13MHZ_CLOCK_FREQUENCY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TRF7970A_13MHZ_CLOCK_FREQUENCY@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #24]
	cbz	x21, LBB0_8
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x8, _TRF7970A_ST_PWR_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRF7970A_ST_PWR_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #88]
	str	x22, [x0, #24]
	str	x20, [x0, #80]
Lloh8:
	adrp	x8, _SPI_MODE_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPI_MODE_1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	mov	w8, #8
	str	w8, [x20]
	mov	x0, x20
	bl	_spi_setup
	tbnz	w0, #31, LBB0_13
; %bb.3:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _TRF7970A_QUIRK_IRQ_STATUS_READ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TRF7970A_QUIRK_IRQ_STATUS_READ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
LBB0_5:
	ldr	x0, [x19, #24]
Lloh16:
	adrp	x23, _GPIOD_OUT_LOW@GOTPAGE
Lloh17:
	ldr	x23, [x23, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #0
	bl	_devm_gpiod_get_index
	str	x0, [x19, #72]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_14
; %bb.6:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #72]
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_8:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
LBB0_9:
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	x23, x0
	ldr	x0, [x19, #24]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_14:
	ldr	w3, [x23]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_devm_gpiod_get_index_optional
	str	x0, [x19, #64]
	cbz	x0, LBB0_17
; %bb.15:
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
	ldr	x20, [x19, #24]
	ldr	x0, [x19, #64]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #64]
	b	LBB0_7
LBB0_17:
	ldr	x0, [x19, #24]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
	b	LBB0_20
LBB0_18:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_20
; %bb.19:
Lloh38:
	adrp	x8, _TRF7970A_QUIRK_EN2_MUST_STAY_LOW@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TRF7970A_QUIRK_EN2_MUST_STAY_LOW@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	ldr	w9, [x19, #56]
	orr	w8, w9, w8
	str	w8, [x19, #56]
LBB0_20:
Lloh41:
	adrp	x1, l_.str.8@PAGE
Lloh42:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #24
	mov	x0, x21
	bl	_of_property_read_u32
	ldr	x8, [sp, #24]
Lloh43:
	adrp	x9, _TRF7970A_27MHZ_CLOCK_FREQUENCY@GOTPAGE
Lloh44:
	ldr	x9, [x9, _TRF7970A_27MHZ_CLOCK_FREQUENCY@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_23
; %bb.21:
	ldr	x10, [x24]
	cmp	x8, x10
	b.eq	LBB0_23
; %bb.22:
	ldr	x0, [x19, #24]
	str	x8, [sp]
Lloh46:
	adrp	x1, l_.str.9@PAGE
Lloh47:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_23:
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
Lloh48:
	adrp	x8, _TRF7970A_MODULATOR_27MHZ@GOTPAGE
Lloh49:
	ldr	x8, [x8, _TRF7970A_MODULATOR_27MHZ@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
	str	x8, [x19, #48]
	ldr	x0, [x19, #24]
Lloh51:
	adrp	x1, l_.str.10@PAGE
Lloh52:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dev_dbg
	b	LBB0_26
LBB0_25:
	str	xzr, [x19, #48]
LBB0_26:
	ldr	x0, [x19, #24]
	ldr	w1, [x20, #16]
Lloh53:
	adrp	x8, _trf7970a_irq@GOTPAGE
Lloh54:
	ldr	x8, [x8, _trf7970a_irq@GOTPAGEOFF]
Lloh55:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh56:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh57:
	ldr	w3, [x8]
Lloh58:
	ldr	w8, [x9]
Lloh59:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh60:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh62:
	adrp	x5, l_.str.11@PAGE
Lloh63:
	add	x5, x5, l_.str.11@PAGEOFF
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_28
; %bb.27:
	mov	x23, x0
	ldr	x0, [x19, #24]
	ldr	w8, [x20, #16]
	stp	x8, x23, [sp]
Lloh64:
	adrp	x1, l_.str.12@PAGE
Lloh65:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_28:
	mov	x0, x19
	bl	_mutex_init
	add	x0, x19, #40
Lloh66:
	adrp	x8, _trf7970a_timeout_work_handler@GOTPAGE
Lloh67:
	ldr	x8, [x8, _trf7970a_timeout_work_handler@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
Lloh69:
	adrp	x1, l_.str.13@PAGE
Lloh70:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_30
; %bb.29:
	bl	_PTR_ERR
	mov	x23, x0
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh71:
	adrp	x1, l_.str.14@PAGE
Lloh72:
	add	x1, x1, l_.str.14@PAGEOFF
	b	LBB0_38
LBB0_30:
	bl	_regulator_enable
	cbz	w0, LBB0_32
; %bb.31:
	mov	x23, x0
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh73:
	adrp	x1, l_.str.15@PAGE
Lloh74:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_38
LBB0_32:
	ldr	x0, [x19, #8]
	bl	_regulator_get_voltage
	mov	w8, #2305
	movk	w8, #61, lsl #16
	cmp	w0, w8
	b.lt	LBB0_34
; %bb.33:
Lloh75:
	adrp	x8, _TRF7970A_CHIP_STATUS_VRS5_3@GOTPAGE
Lloh76:
	ldr	x8, [x8, _TRF7970A_CHIP_STATUS_VRS5_3@GOTPAGEOFF]
Lloh77:
	ldr	w8, [x8]
	str	w8, [x19, #36]
LBB0_34:
Lloh78:
	adrp	x1, l_.str.16@PAGE
Lloh79:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_36
; %bb.35:
	bl	_PTR_ERR
	mov	x23, x0
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh80:
	adrp	x1, l_.str.17@PAGE
Lloh81:
	add	x1, x1, l_.str.17@PAGEOFF
	b	LBB0_38
LBB0_36:
	bl	_regulator_enable
	cbz	w0, LBB0_40
; %bb.37:
	mov	x23, x0
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh82:
	adrp	x1, l_.str.18@PAGE
Lloh83:
	add	x1, x1, l_.str.18@PAGEOFF
LBB0_38:
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_39:
	mov	x0, x19
	bl	_mutex_destroy
	b	LBB0_12
LBB0_40:
	ldr	x0, [x19, #8]
	bl	_regulator_get_voltage
	sub	w8, w0, #439, lsl #12           ; =1798144
	cmp	w8, #1856
	b.ne	LBB0_42
; %bb.41:
Lloh84:
	adrp	x8, _TRF7970A_REG_IO_CTRL_IO_LOW@GOTPAGE
Lloh85:
	ldr	x8, [x8, _TRF7970A_REG_IO_CTRL_IO_LOW@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x0, [x19, #24]
Lloh87:
	adrp	x1, l_.str.19@PAGE
Lloh88:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_dev_dbg
LBB0_42:
Lloh89:
	adrp	x8, _TRF7970A_SUPPORTED_PROTOCOLS@GOTPAGE
Lloh90:
	ldr	x8, [x8, _TRF7970A_SUPPORTED_PROTOCOLS@GOTPAGEOFF]
Lloh91:
	adrp	x9, _NFC_DIGITAL_DRV_CAPS_IN_CRC@GOTPAGE
Lloh92:
	ldr	x9, [x9, _NFC_DIGITAL_DRV_CAPS_IN_CRC@GOTPAGEOFF]
Lloh93:
	ldr	w1, [x8]
Lloh94:
	ldr	w8, [x9]
Lloh95:
	adrp	x9, _NFC_DIGITAL_DRV_CAPS_TG_CRC@GOTPAGE
Lloh96:
	ldr	x9, [x9, _NFC_DIGITAL_DRV_CAPS_TG_CRC@GOTPAGEOFF]
Lloh97:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh98:
	adrp	x0, _trf7970a_nfc_ops@GOTPAGE
Lloh99:
	ldr	x0, [x0, _trf7970a_nfc_ops@GOTPAGEOFF]
	mov	w3, #0
	mov	w4, #0
	bl	_nfc_digital_allocate_device
	str	w0, [x19, #16]
	ldr	x1, [x19, #24]
	cbz	w0, LBB0_47
; %bb.43:
	bl	_nfc_digital_set_parent_dev
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_nfc_digital_set_drvdata
	mov	x0, x20
	mov	x1, x19
	bl	_spi_set_drvdata
	mov	x0, x21
	bl	_trf7970a_get_autosuspend_delay
	mov	x1, x0
	ldr	x0, [x19, #24]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x19, #24]
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_trf7970a_startup
	mov	x23, x0
	cbnz	w0, LBB0_46
; %bb.44:
	ldr	w0, [x19, #16]
	bl	_nfc_digital_register_device
	mov	x23, x0
	cbz	w0, LBB0_12
; %bb.45:
	ldr	x0, [x19, #24]
	str	x23, [sp]
Lloh100:
	adrp	x1, l_.str.21@PAGE
Lloh101:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_trf7970a_shutdown
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
LBB0_46:
	ldr	w0, [x19, #16]
	bl	_nfc_digital_free_device
	b	LBB0_48
LBB0_47:
Lloh102:
	adrp	x8, l_.str.20@PAGE
Lloh103:
	add	x8, x8, l_.str.20@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_dev_err
Lloh104:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh105:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh106:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_48:
	ldr	x0, [x19, #8]
	bl	_regulator_disable
	b	LBB0_39
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh57
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh93
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.comm	_TRF7970A_13MHZ_CLOCK_FREQUENCY,8,3 ; @TRF7970A_13MHZ_CLOCK_FREQUENCY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Device Tree entry\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TRF7970A_ST_PWR_OFF,4,2        ; @TRF7970A_ST_PWR_OFF
	.comm	_SPI_MODE_1,4,2                 ; @SPI_MODE_1
l_.str.1:                               ; @.str.1
	.asciz	"Can't set up SPI Communication\n"

l_.str.2:                               ; @.str.2
	.asciz	"irq-status-read-quirk"

	.comm	_TRF7970A_QUIRK_IRQ_STATUS_READ,4,2 ; @TRF7970A_QUIRK_IRQ_STATUS_READ
l_.str.3:                               ; @.str.3
	.asciz	"ti,enable"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"No EN GPIO property\n"

l_.str.5:                               ; @.str.5
	.asciz	"No EN2 GPIO property\n"

l_.str.6:                               ; @.str.6
	.asciz	"Error getting EN2 GPIO property: %ld\n"

l_.str.7:                               ; @.str.7
	.asciz	"en2-rf-quirk"

	.comm	_TRF7970A_QUIRK_EN2_MUST_STAY_LOW,4,2 ; @TRF7970A_QUIRK_EN2_MUST_STAY_LOW
l_.str.8:                               ; @.str.8
	.asciz	"clock-frequency"

	.comm	_TRF7970A_27MHZ_CLOCK_FREQUENCY,8,3 ; @TRF7970A_27MHZ_CLOCK_FREQUENCY
l_.str.9:                               ; @.str.9
	.asciz	"clock-frequency (%u Hz) unsupported\n"

	.comm	_TRF7970A_MODULATOR_27MHZ,8,3   ; @TRF7970A_MODULATOR_27MHZ
l_.str.10:                              ; @.str.10
	.asciz	"trf7970a configured for 27MHz crystal\n"

	.comm	_trf7970a_irq,4,2               ; @trf7970a_irq
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.11:                              ; @.str.11
	.asciz	"trf7970a"

l_.str.12:                              ; @.str.12
	.asciz	"Can't request IRQ#%d: %d\n"

	.comm	_trf7970a_timeout_work_handler,4,2 ; @trf7970a_timeout_work_handler
l_.str.13:                              ; @.str.13
	.asciz	"vin"

l_.str.14:                              ; @.str.14
	.asciz	"Can't get VIN regulator: %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"Can't enable VIN: %d\n"

	.comm	_TRF7970A_CHIP_STATUS_VRS5_3,4,2 ; @TRF7970A_CHIP_STATUS_VRS5_3
l_.str.16:                              ; @.str.16
	.asciz	"vdd-io"

l_.str.17:                              ; @.str.17
	.asciz	"Can't get VDD_IO regulator: %d\n"

l_.str.18:                              ; @.str.18
	.asciz	"Can't enable VDD_IO: %d\n"

	.comm	_TRF7970A_REG_IO_CTRL_IO_LOW,4,2 ; @TRF7970A_REG_IO_CTRL_IO_LOW
l_.str.19:                              ; @.str.19
	.asciz	"trf7970a config vdd_io to 1.8V\n"

	.comm	_trf7970a_nfc_ops,4,2           ; @trf7970a_nfc_ops
	.comm	_TRF7970A_SUPPORTED_PROTOCOLS,4,2 ; @TRF7970A_SUPPORTED_PROTOCOLS
	.comm	_NFC_DIGITAL_DRV_CAPS_IN_CRC,4,2 ; @NFC_DIGITAL_DRV_CAPS_IN_CRC
	.comm	_NFC_DIGITAL_DRV_CAPS_TG_CRC,4,2 ; @NFC_DIGITAL_DRV_CAPS_TG_CRC
l_.str.20:                              ; @.str.20
	.asciz	"Can't allocate NFC digital device\n"

l_.str.21:                              ; @.str.21
	.asciz	"Can't register NFC digital device: %d\n"

	.no_dead_strip	_trf7970a_probe
.subsections_via_symbols
