	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_in_configure_hw
_trf7970a_in_configure_hw:              ## @trf7970a_in_configure_hw
	.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	%edx, %r15d
	movl	%esi, %r12d
	callq	_nfc_digital_get_drvdata
	movq	%rax, %rbx
	movl	20(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	movq	8(%rbx), %rax
	movq	_TRF7970A_ST_PWR_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_TRF7970A_ST_RF_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_trf7970a_switch_rf_on
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
LBB0_3:
	cmpl	$129, %r12d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r12d
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_trf7970a_in_config_rf_tech
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_trf7970a_in_config_framing
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_7:
	movl	20(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configure hw - type: %d, param: %d\n"

	.comm	_TRF7970A_ST_PWR_OFF,8,3        ## @TRF7970A_ST_PWR_OFF
	.comm	_TRF7970A_ST_RF_OFF,8,3         ## @TRF7970A_ST_RF_OFF
L_.str.1:                               ## @.str.1
	.asciz	"Unknown type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_trf7970a_in_configure_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_in_configure_hw
_trf7970a_in_configure_hw:              ; @trf7970a_in_configure_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	bl	_nfc_digital_get_drvdata
	mov	x22, x0
	ldr	w0, [x0, #20]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	add	x19, x22, #16
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #1
	str	w8, [x22]
	ldr	x8, [x22, #8]
Lloh2:
	adrp	x9, _TRF7970A_ST_PWR_OFF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRF7970A_ST_PWR_OFF@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _TRF7970A_ST_RF_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TRF7970A_ST_RF_OFF@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_trf7970a_switch_rf_on
	mov	x23, x0
	cbnz	w0, LBB0_7
LBB0_2:
	cmp	w21, #129
	b.eq	LBB0_5
; %bb.3:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	bl	_trf7970a_in_config_rf_tech
	mov	x23, x0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	mov	x1, x20
	bl	_trf7970a_in_config_framing
	mov	x23, x0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x22, #20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configure hw - type: %d, param: %d\n"

	.comm	_TRF7970A_ST_PWR_OFF,8,3        ; @TRF7970A_ST_PWR_OFF
	.comm	_TRF7970A_ST_RF_OFF,8,3         ; @TRF7970A_ST_RF_OFF
l_.str.1:                               ; @.str.1
	.asciz	"Unknown type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_trf7970a_in_configure_hw
.subsections_via_symbols
