	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxt6000_set_transmission_mode
_nxt6000_set_transmission_mode:         ## @nxt6000_set_transmission_mode
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r15
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.5:
	movq	_EN_DMD_RACQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nxt6000_readreg
                                        ## kill: def $eax killed $eax def $rax
	andl	$-4, %eax
	leal	2(%rax), %edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nxt6000_writereg
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	_OFDM_COR_MODEGUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_nxt6000_readreg
	orl	$4, %eax
	movq	%r15, %rdi
	movl	%ebx, %esi
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %esi
	jne	LBB0_7
## %bb.2:
	movq	_EN_DMD_RACQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nxt6000_readreg
	andl	$-4, %eax
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_nxt6000_writereg
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movq	_OFDM_COR_MODEGUARD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nxt6000_readreg
	andl	$-5, %eax
	movq	%r15, %rdi
	movl	%r14d, %esi
LBB0_4:
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nxt6000_writereg               ## TAILCALL
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EN_DMD_RACQ,4,2                ## @EN_DMD_RACQ
	.comm	_OFDM_COR_MODEGUARD,4,2         ## @OFDM_COR_MODEGUARD
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nxt6000_set_transmission_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxt6000_set_transmission_mode
_nxt6000_set_transmission_mode:         ; @nxt6000_set_transmission_mode
	.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	x19, x0
	sub	w8, w1, #128
	cmp	w8, #2
	b.hs	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EN_DMD_RACQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EN_DMD_RACQ@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_readreg
	and	w8, w0, #0xfffffffc
	orr	w2, w8, #0x2
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_writereg
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh3:
	adrp	x8, _OFDM_COR_MODEGUARD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OFDM_COR_MODEGUARD@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_readreg
	orr	w2, w0, #0x4
	b	LBB0_6
LBB0_3:
	cmp	w1, #130
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _EN_DMD_RACQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EN_DMD_RACQ@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_readreg
	and	w2, w0, #0xfffffffc
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_writereg
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _OFDM_COR_MODEGUARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OFDM_COR_MODEGUARD@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_nxt6000_readreg
	and	w2, w0, #0xfffffffb
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nxt6000_writereg
LBB0_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EN_DMD_RACQ,4,2                ; @EN_DMD_RACQ
	.comm	_OFDM_COR_MODEGUARD,4,2         ; @OFDM_COR_MODEGUARD
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nxt6000_set_transmission_mode
.subsections_via_symbols
