	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_tg_config_framing
_trf7970a_tg_config_framing:            ## @trf7970a_tg_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	40(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_4
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	8(%rbx), %r14
	jmp	LBB0_6
LBB0_3:
	movq	_TRF7970A_CMD_TRANSMIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	_TRF7970A_ISO_CTRL_RX_CRC_N@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %r14
	jmp	LBB0_6
LBB0_4:
	movl	40(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	_TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%rbx)
	movq	_TRF7970A_ISO_CTRL_RX_CRC_N@GOTPCREL(%rip), %rax
	orq	(%rax), %r14
LBB0_6:
	movl	%r15d, 16(%rbx)
	cmpq	8(%rbx), %r14
	jne	LBB0_7
LBB0_9:
	movq	32(%rbx), %rcx
	movq	_TRF7970A_CHIP_STATUS_RF_ON@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	xorl	%eax, %eax
	testq	%rcx, %rdx
	jne	LBB0_12
## %bb.10:
	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_12
## %bb.11:
	movq	(%r14), %rax
	orq	%rax, 32(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_TRF7970A_ISO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_trf7970a_write
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r14, 8(%rbx)
	movq	_TRF7970A_MODULATOR_SYS_CLK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_trf7970a_write
	testl	%eax, %eax
	je	LBB0_9
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- 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_ISO_CTRL,4,2          ## @TRF7970A_ISO_CTRL
	.comm	_TRF7970A_MODULATOR_SYS_CLK_CTRL,4,2 ## @TRF7970A_MODULATOR_SYS_CLK_CTRL
	.comm	_TRF7970A_CHIP_STATUS_RF_ON,8,3 ## @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ## @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_tg_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_tg_config_framing
_trf7970a_tg_config_framing:            ; @trf7970a_tg_config_framing
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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]
	ldr	w0, [x0, #40]
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.hi	LBB0_4
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x21, [x19, #8]
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _TRF7970A_CMD_TRANSMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TRF7970A_CMD_TRANSMIT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x19, #48]
Lloh7:
	adrp	x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	bic	x21, x21, x8
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #40]
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]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
Lloh15:
	adrp	x8, _TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRF7970A_CMD_TRANSMIT_NO_CRC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #48]
Lloh18:
	adrp	x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TRF7970A_ISO_CTRL_RX_CRC_N@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	orr	x21, x8, x21
LBB0_6:
	str	w20, [x19, #16]
	ldr	x8, [x19, #8]
	cmp	x21, x8
	b.ne	LBB0_9
LBB0_7:
	ldr	x8, [x19, #32]
Lloh21:
	adrp	x20, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGE
Lloh22:
	ldr	x20, [x20, _TRF7970A_CHIP_STATUS_RF_ON@GOTPAGEOFF]
	ldr	x9, [x20]
	tst	x9, x8
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #0
	b	LBB0_13
LBB0_9:
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_13
; %bb.10:
	str	x21, [x19, #8]
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, #24]
	mov	x0, x19
	bl	_trf7970a_write
	cbnz	w0, LBB0_13
	b	LBB0_7
LBB0_11:
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
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldr	x9, [x19, #32]
	orr	x8, x9, x8
	str	x8, [x19, #32]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- 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_ISO_CTRL,4,2          ; @TRF7970A_ISO_CTRL
	.comm	_TRF7970A_MODULATOR_SYS_CLK_CTRL,4,2 ; @TRF7970A_MODULATOR_SYS_CLK_CTRL
	.comm	_TRF7970A_CHIP_STATUS_RF_ON,8,3 ; @TRF7970A_CHIP_STATUS_RF_ON
	.comm	_TRF7970A_CHIP_STATUS_CTRL,4,2  ; @TRF7970A_CHIP_STATUS_CTRL
	.no_dead_strip	_trf7970a_tg_config_framing
.subsections_via_symbols
