	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_in_config_rf_tech
_trf7970a_in_config_rf_tech:            ## @trf7970a_in_config_rf_tech
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.trf7970a_in_config_rf_tech(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.trf7970a_in_config_rf_tech.2(%rip), %rdx
	movq	(%rdx,%rax,8), %rdx
	leaq	l_switch.table.trf7970a_in_config_rf_tech.3(%rip), %rsi
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	$248, %ecx
	andl	(%rbx), %ecx
	orl	(%rdx), %ecx
	movq	(%rsi,%rax,8), %rax
	movl	%ecx, (%rbx)
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	%r14d, 4(%rbx)
	xorl	%eax, %eax
	cmpl	$255, 8(%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_TRF7970A_NFC_TARGET_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trf7970a_write                 ## TAILCALL
LBB0_1:
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rf technology: %d\n"

	.comm	_TRF7970A_ISO_CTRL_14443A_106,4,2 ## @TRF7970A_ISO_CTRL_14443A_106
	.comm	_TRF7970A_MODULATOR_DEPTH_OOK,4,2 ## @TRF7970A_MODULATOR_DEPTH_OOK
	.comm	_TRF7970A_GUARD_TIME_NFCA,8,3   ## @TRF7970A_GUARD_TIME_NFCA
	.comm	_TRF7970A_ISO_CTRL_14443B_106,4,2 ## @TRF7970A_ISO_CTRL_14443B_106
	.comm	_TRF7970A_MODULATOR_DEPTH_ASK10,4,2 ## @TRF7970A_MODULATOR_DEPTH_ASK10
	.comm	_TRF7970A_GUARD_TIME_NFCB,8,3   ## @TRF7970A_GUARD_TIME_NFCB
	.comm	_TRF7970A_ISO_CTRL_FELICA_212,4,2 ## @TRF7970A_ISO_CTRL_FELICA_212
	.comm	_TRF7970A_GUARD_TIME_NFCF,8,3   ## @TRF7970A_GUARD_TIME_NFCF
	.comm	_TRF7970A_ISO_CTRL_FELICA_424,4,2 ## @TRF7970A_ISO_CTRL_FELICA_424
	.comm	_TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648,4,2 ## @TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648
	.comm	_TRF7970A_GUARD_TIME_15693,8,3  ## @TRF7970A_GUARD_TIME_15693
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported rf technology: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TRF7970A_NFC_TARGET_LEVEL,4,2  ## @TRF7970A_NFC_TARGET_LEVEL
	.no_dead_strip	_trf7970a_in_config_rf_tech
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.trf7970a_in_config_rf_tech
l_switch.table.trf7970a_in_config_rf_tech:
	.quad	_TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648
	.quad	_TRF7970A_ISO_CTRL_FELICA_424
	.quad	_TRF7970A_ISO_CTRL_FELICA_212
	.quad	_TRF7970A_ISO_CTRL_14443B_106
	.quad	_TRF7970A_ISO_CTRL_14443A_106

	.p2align	3                               ## @switch.table.trf7970a_in_config_rf_tech.2
l_switch.table.trf7970a_in_config_rf_tech.2:
	.quad	_TRF7970A_MODULATOR_DEPTH_OOK
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_OOK

	.p2align	3                               ## @switch.table.trf7970a_in_config_rf_tech.3
l_switch.table.trf7970a_in_config_rf_tech.3:
	.quad	_TRF7970A_GUARD_TIME_15693
	.quad	_TRF7970A_GUARD_TIME_NFCF
	.quad	_TRF7970A_GUARD_TIME_NFCF
	.quad	_TRF7970A_GUARD_TIME_NFCB
	.quad	_TRF7970A_GUARD_TIME_NFCA

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_in_config_rf_tech
_trf7970a_in_config_rf_tech:            ; @trf7970a_in_config_rf_tech
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	sub	w8, w20, #128
	cmp	w8, #5
	b.hs	LBB0_3
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh2:
	adrp	x9, l_switch.table.trf7970a_in_config_rf_tech@PAGE
Lloh3:
	add	x9, x9, l_switch.table.trf7970a_in_config_rf_tech@PAGEOFF
	ldr	x9, [x9, x8]
Lloh4:
	adrp	x10, l_switch.table.trf7970a_in_config_rf_tech.2@PAGE
Lloh5:
	add	x10, x10, l_switch.table.trf7970a_in_config_rf_tech.2@PAGEOFF
	ldr	x10, [x10, x8]
Lloh6:
	adrp	x11, l_switch.table.trf7970a_in_config_rf_tech.3@PAGE
Lloh7:
	add	x11, x11, l_switch.table.trf7970a_in_config_rf_tech.3@PAGEOFF
	ldr	x8, [x11, x8]
	ldr	w9, [x9]
	str	w9, [x19, #24]
	ldr	w9, [x19]
	and	w9, w9, #0xf8
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	x8, [x8]
	str	x8, [x19, #16]
	stp	w9, w20, [x19]
	ldr	w8, [x19, #8]
	cmp	w8, #255
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _TRF7970A_NFC_TARGET_LEVEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRF7970A_NFC_TARGET_LEVEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trf7970a_write
LBB0_3:
	ldr	w0, [x19, #12]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rf technology: %d\n"

	.comm	_TRF7970A_ISO_CTRL_14443A_106,4,2 ; @TRF7970A_ISO_CTRL_14443A_106
	.comm	_TRF7970A_MODULATOR_DEPTH_OOK,4,2 ; @TRF7970A_MODULATOR_DEPTH_OOK
	.comm	_TRF7970A_GUARD_TIME_NFCA,8,3   ; @TRF7970A_GUARD_TIME_NFCA
	.comm	_TRF7970A_ISO_CTRL_14443B_106,4,2 ; @TRF7970A_ISO_CTRL_14443B_106
	.comm	_TRF7970A_MODULATOR_DEPTH_ASK10,4,2 ; @TRF7970A_MODULATOR_DEPTH_ASK10
	.comm	_TRF7970A_GUARD_TIME_NFCB,8,3   ; @TRF7970A_GUARD_TIME_NFCB
	.comm	_TRF7970A_ISO_CTRL_FELICA_212,4,2 ; @TRF7970A_ISO_CTRL_FELICA_212
	.comm	_TRF7970A_GUARD_TIME_NFCF,8,3   ; @TRF7970A_GUARD_TIME_NFCF
	.comm	_TRF7970A_ISO_CTRL_FELICA_424,4,2 ; @TRF7970A_ISO_CTRL_FELICA_424
	.comm	_TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648,4,2 ; @TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648
	.comm	_TRF7970A_GUARD_TIME_15693,8,3  ; @TRF7970A_GUARD_TIME_15693
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported rf technology: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TRF7970A_NFC_TARGET_LEVEL,4,2  ; @TRF7970A_NFC_TARGET_LEVEL
	.no_dead_strip	_trf7970a_in_config_rf_tech
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.trf7970a_in_config_rf_tech
l_switch.table.trf7970a_in_config_rf_tech:
	.quad	_TRF7970A_ISO_CTRL_15693_SGL_1OF4_2648
	.quad	_TRF7970A_ISO_CTRL_FELICA_424
	.quad	_TRF7970A_ISO_CTRL_FELICA_212
	.quad	_TRF7970A_ISO_CTRL_14443B_106
	.quad	_TRF7970A_ISO_CTRL_14443A_106

	.p2align	3                               ; @switch.table.trf7970a_in_config_rf_tech.2
l_switch.table.trf7970a_in_config_rf_tech.2:
	.quad	_TRF7970A_MODULATOR_DEPTH_OOK
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_ASK10
	.quad	_TRF7970A_MODULATOR_DEPTH_OOK

	.p2align	3                               ; @switch.table.trf7970a_in_config_rf_tech.3
l_switch.table.trf7970a_in_config_rf_tech.3:
	.quad	_TRF7970A_GUARD_TIME_15693
	.quad	_TRF7970A_GUARD_TIME_NFCF
	.quad	_TRF7970A_GUARD_TIME_NFCF
	.quad	_TRF7970A_GUARD_TIME_NFCB
	.quad	_TRF7970A_GUARD_TIME_NFCA

.subsections_via_symbols
