	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400enablerxtx
_stl_cd1400enablerxtx:                  ## @stl_cd1400enablerxtx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_pr_debug
	xorl	%eax, %eax
	testl	%r14d, %r14d
	movq	_CCR_TXDISABLE@GOTPCREL(%rip), %rcx
	movq	_CCR_TXENABLE@GOTPCREL(%rip), %rdx
	movzbl	(%rdx), %edx
	cmovlel	%eax, %edx
	movzbl	(%rcx), %r12d
	cmovnel	%edx, %r12d
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	jle	LBB0_5
## %bb.3:
	movq	_CCR_RXENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_CCR_RXDISABLE@GOTPCREL(%rip), %rax
LBB0_4:
	orb	(%rax), %r12b
LBB0_5:
	movq	_brd_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	callq	_BRDENABLE
	movq	_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	andl	$3, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	movq	%rbx, %rdi
	callq	_stl_cd1400ccrwait
	movq	_CCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%r12b, %edx
	movq	%rbx, %rdi
	callq	_stl_cd1400setreg
	movq	%rbx, %rdi
	callq	_stl_cd1400ccrwait
	movl	4(%rbx), %edi
	callq	_BRDDISABLE
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_cd1400enablerxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_CCR_TXDISABLE,1,0              ## @CCR_TXDISABLE
	.comm	_CCR_TXENABLE,1,0               ## @CCR_TXENABLE
	.comm	_CCR_RXDISABLE,1,0              ## @CCR_RXDISABLE
	.comm	_CCR_RXENABLE,1,0               ## @CCR_RXENABLE
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_CAR,4,2                        ## @CAR
	.comm	_CCR,4,2                        ## @CCR
	.no_dead_strip	_stl_cd1400enablerxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400enablerxtx
_stl_cd1400enablerxtx:                  ; @stl_cd1400enablerxtx
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	bl	_pr_debug
Lloh2:
	adrp	x8, _CCR_TXDISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CCR_TXDISABLE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _CCR_TXENABLE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CCR_TXENABLE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w21, #0
	csel	w9, w9, wzr, gt
	csel	w21, w8, w9, eq
	cbz	w20, LBB0_3
; %bb.1:
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _CCR_RXENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCR_RXENABLE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _CCR_RXDISABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CCR_RXDISABLE@GOTPAGEOFF]
LBB0_4:
	ldrb	w8, [x8]
	orr	w21, w8, w21
LBB0_5:
Lloh10:
	adrp	x20, _brd_lock@GOTPAGE
Lloh11:
	ldr	x20, [x20, _brd_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19, #4]
	bl	_BRDENABLE
Lloh12:
	adrp	x8, _CAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x19]
	and	w2, w8, #0x3
	mov	x0, x19
	bl	_stl_cd1400setreg
	mov	x0, x19
	bl	_stl_cd1400ccrwait
Lloh15:
	adrp	x8, _CCR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CCR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	and	w2, w21, #0xff
	mov	x0, x19
	bl	_stl_cd1400setreg
	mov	x0, x19
	bl	_stl_cd1400ccrwait
	ldr	w0, [x19, #4]
	bl	_BRDDISABLE
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400enablerxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_CCR_TXDISABLE,1,0              ; @CCR_TXDISABLE
	.comm	_CCR_TXENABLE,1,0               ; @CCR_TXENABLE
	.comm	_CCR_RXDISABLE,1,0              ; @CCR_RXDISABLE
	.comm	_CCR_RXENABLE,1,0               ; @CCR_RXENABLE
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_CAR,4,2                        ; @CAR
	.comm	_CCR,4,2                        ; @CCR
	.no_dead_strip	_stl_cd1400enablerxtx
.subsections_via_symbols
