	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_cd1400startrxtx
_stl_cd1400startrxtx:                   ## @stl_cd1400startrxtx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_pr_debug
	cmpl	$1, %r14d
	je	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_SRER_TXDATA@GOTPCREL(%rip), %rax
	movq	_SRER_TXEMPTY@GOTPCREL(%rip), %rcx
	movb	(%rcx), %bl
	orb	(%rax), %bl
	xorl	%r13d, %r13d
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	_SRER_TXDATA@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_7:
	jle	LBB0_9
## %bb.8:
	movq	_SRER_RXDATA@GOTPCREL(%rip), %rax
	orb	(%rax), %r13b
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$2, %r14d
	movq	_SRER_TXEMPTY@GOTPCREL(%rip), %rax
	movzbl	(%rax), %r13d
	cmovll	%ebx, %r13d
	testl	%r15d, %r15d
	jne	LBB0_7
LBB0_6:
	movq	_SRER_RXDATA@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
LBB0_9:
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	callq	_BRDENABLE
	movq	_CAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	andl	$3, %edx
	movq	%r12, %rdi
	callq	_stl_cd1400setreg
	movq	_SRER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_stl_cd1400getreg
	notb	%bl
	andb	%al, %bl
	orb	%r13b, %bl
	movzbl	%bl, %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_stl_cd1400setreg
	movl	8(%r12), %edi
	callq	_BRDDISABLE
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.10:
	movq	_ASYI_TXBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	callq	_set_bit
LBB0_11:
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_cd1400startrxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_SRER_TXDATA,1,0                ## @SRER_TXDATA
	.comm	_SRER_TXEMPTY,1,0               ## @SRER_TXEMPTY
	.comm	_SRER_RXDATA,1,0                ## @SRER_RXDATA
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_CAR,4,2                        ## @CAR
	.comm	_SRER,4,2                       ## @SRER
	.comm	_ASYI_TXBUSY,4,2                ## @ASYI_TXBUSY
	.no_dead_strip	_stl_cd1400startrxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_cd1400startrxtx
_stl_cd1400startrxtx:                   ; @stl_cd1400startrxtx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_pr_debug
	cmp	w20, #1
	b.eq	LBB0_3
; %bb.1:
	cbnz	w20, LBB0_6
; %bb.2:
	mov	w23, #0
Lloh2:
	adrp	x8, _SRER_TXDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SRER_TXDATA@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh4:
	adrp	x9, _SRER_TXEMPTY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SRER_TXEMPTY@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w22, w9, w8
	cbnz	w21, LBB0_4
	b	LBB0_7
LBB0_3:
	mov	w22, #0
Lloh6:
	adrp	x8, _SRER_TXDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SRER_TXDATA@GOTPAGEOFF]
	ldrb	w23, [x8]
	cbz	w21, LBB0_7
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.5:
Lloh8:
	adrp	x8, _SRER_RXDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SRER_RXDATA@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w23, w8, w23
	b	LBB0_8
LBB0_6:
	mov	w22, #0
Lloh10:
	adrp	x8, _SRER_TXEMPTY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SRER_TXEMPTY@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w20, #1
	csel	w23, w8, wzr, gt
	cbnz	w21, LBB0_4
LBB0_7:
Lloh12:
	adrp	x8, _SRER_RXDATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SRER_RXDATA@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w22, w8, w22
LBB0_8:
Lloh14:
	adrp	x0, _brd_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19, #8]
	bl	_BRDENABLE
Lloh16:
	adrp	x8, _CAR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CAR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w8, [x19]
	and	w2, w8, #0x3
	mov	x0, x19
	bl	_stl_cd1400setreg
Lloh19:
	adrp	x8, _SRER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SRER@GOTPAGEOFF]
Lloh21:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_stl_cd1400getreg
	bic	w8, w0, w22
	orr	w8, w8, w23
	and	w2, w8, #0xff
	mov	x0, x19
	mov	x1, x21
	bl	_stl_cd1400setreg
	ldr	w0, [x19, #8]
	bl	_BRDDISABLE
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.9:
Lloh22:
	adrp	x8, _ASYI_TXBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ASYI_TXBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
LBB0_10:
Lloh25:
	adrp	x0, _brd_lock@GOTPAGE
Lloh26:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_cd1400startrxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_SRER_TXDATA,1,0                ; @SRER_TXDATA
	.comm	_SRER_TXEMPTY,1,0               ; @SRER_TXEMPTY
	.comm	_SRER_RXDATA,1,0                ; @SRER_RXDATA
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_CAR,4,2                        ; @CAR
	.comm	_SRER,4,2                       ; @SRER
	.comm	_ASYI_TXBUSY,4,2                ; @ASYI_TXBUSY
	.no_dead_strip	_stl_cd1400startrxtx
.subsections_via_symbols
