	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_in_config_framing
_trf7970a_in_config_framing:            ## @trf7970a_in_config_framing
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	$0, -28(%rbp)
	movl	48(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	leal	-128(%r15), %eax
	cmpl	$12, %eax
	ja	LBB0_6
## %bb.1:
	movl	$7359, %ecx                     ## imm = 0x1CBF
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.7:
	movq	_TRF7970A_CMD_TRANSMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_TRF7970A_ISO_CTRL_RX_CRC_N@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %r14
	jmp	LBB0_8
LBB0_2:
	movl	$768, %ecx                      ## imm = 0x300
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.3:
	movq	_TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movl	48(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_5:
	movq	_TRF7970A_CMD_TRANSMIT@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	_TRF7970A_ISO_CTRL_RX_CRC_N@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
LBB0_8:
	movl	%r15d, 8(%rbx)
	movq	_TRF7970A_CHIP_STATUS_RF_ON@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, 16(%rbx)
	je	LBB0_9
LBB0_13:
	cmpq	24(%rbx), %r14
	jne	LBB0_14
LBB0_16:
	movq	16(%rbx), %rcx
	movq	(%r15), %rdx
	xorl	%eax, %eax
	testq	%rcx, %rdx
	jne	LBB0_19
## %bb.17:
	movq	_TRF7970A_CHIP_STATUS_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orq	%rcx, %rdx
	movq	%rbx, %rdi
	callq	_trf7970a_write
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	(%r15), %rax
	orq	%rax, 16(%rbx)
	movq	40(%rbx), %rdi
	leaq	1000(%rdi), %rsi
	callq	_usleep_range
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_9:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_trf7970a_is_rf_field
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:
	cmpl	$0, -28(%rbp)
	je	LBB0_13
## %bb.11:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_14:
	movq	_TRF7970A_ISO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_trf7970a_write
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:
	movq	%r14, 24(%rbx)
	movq	_TRF7970A_MODULATOR_SYS_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_trf7970a_write
	testl	%eax, %eax
	je	LBB0_16
LBB0_19:
	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	"framing: %d\n"

	.comm	_TRF7970A_CMD_TRANSMIT_NO_CRC,8,3 ## @TRF7970A_CMD_TRANSMIT_NO_CRC
	.comm	_TRF7970A_ISO_CTRL_RX_CRC_N,8,3 ## @TRF7970A_ISO_CTRL_RX_CRC_N
	.comm	_TRF7970A_CMD_TRANSMIT,8,3      ## @TRF7970A_CMD_TRANSMIT
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported Framing: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TRF7970A_CHIP_STATUS_RF_ON,8,3 ## @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TRF7970A_ISO_CTRL,4,2          ## @TRF7970A_ISO_CTRL
	.comm	_TRF7970A_MODULATOR_SYS_CLK_CTRL,4,2 ## @TRF7970A_MODULATOR_SYS_CLK_CTRL
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ## @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_in_config_framing
.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_framing
_trf7970a_in_config_framing:            ; @trf7970a_in_config_framing
	.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, x1
	mov	x19, x0
	ldr	x21, [x0]
	str	wzr, [sp, #12]
	ldr	w0, [x0, #48]
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, #12
	b.hi	LBB0_5
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #7359
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _TRF7970A_CMD_TRANSMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRF7970A_CMD_TRANSMIT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #56]
Lloh5:
	adrp	x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	bic	x21, x21, x8
	b	LBB0_8
LBB0_3:
	tst	w8, #0x300
	b.eq	LBB0_6
; %bb.4:
Lloh8:
	adrp	x8, _TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #48]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_6:
Lloh14:
	adrp	x8, _TRF7970A_CMD_TRANSMIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRF7970A_CMD_TRANSMIT@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19, #56]
Lloh16:
	adrp	x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	orr	x21, x8, x21
LBB0_8:
	str	w20, [x19, #8]
	ldr	x8, [x19, #16]
Lloh19:
	adrp	x20, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGE
Lloh20:
	ldr	x20, [x20, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGEOFF]
	ldr	x9, [x20]
	tst	x9, x8
	b.eq	LBB0_12
LBB0_9:
	ldr	x8, [x19, #24]
	cmp	x21, x8
	b.ne	LBB0_16
LBB0_10:
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	tst	x9, x8
	b.eq	LBB0_18
LBB0_11:
	mov	w0, #0
	b	LBB0_19
LBB0_12:
	add	x1, sp, #12
	mov	x0, x19
	bl	_trf7970a_is_rf_field
	cbnz	w0, LBB0_19
; %bb.13:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.14:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_16:
Lloh23:
	adrp	x8, _TRF7970A_ISO_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TRF7970A_ISO_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_trf7970a_write
	cbnz	w0, LBB0_19
; %bb.17:
	str	x21, [x19, #24]
Lloh26:
	adrp	x8, _TRF7970A_MODULATOR_SYS_CLK_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TRF7970A_MODULATOR_SYS_CLK_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	mov	x0, x19
	bl	_trf7970a_write
	cbnz	w0, LBB0_19
	b	LBB0_10
LBB0_18:
Lloh29:
	adrp	x10, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGE
Lloh30:
	ldr	x10, [x10, _TRF7970A_CHIP_STATUS_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x10]
	orr	x2, x9, x8
	mov	x0, x19
	bl	_trf7970a_write
	cbz	w0, LBB0_20
LBB0_19:
	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
LBB0_20:
	ldr	x8, [x20]
	ldr	x9, [x19, #16]
	orr	x8, x9, x8
	str	x8, [x19, #16]
	ldr	x0, [x19, #40]
	add	x1, x0, #1000
	bl	_usleep_range
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"framing: %d\n"

	.comm	_TRF7970A_CMD_TRANSMIT_NO_CRC,8,3 ; @TRF7970A_CMD_TRANSMIT_NO_CRC
	.comm	_TRF7970A_ISO_CTRL_RX_CRC_N,8,3 ; @TRF7970A_ISO_CTRL_RX_CRC_N
	.comm	_TRF7970A_CMD_TRANSMIT,8,3      ; @TRF7970A_CMD_TRANSMIT
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported Framing: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TRF7970A_CHIP_STATUS_RF_ON,8,3 ; @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TRF7970A_ISO_CTRL,4,2          ; @TRF7970A_ISO_CTRL
	.comm	_TRF7970A_MODULATOR_SYS_CLK_CTRL,4,2 ; @TRF7970A_MODULATOR_SYS_CLK_CTRL
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ; @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_in_config_framing
.subsections_via_symbols
