	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198startrxtx
_stl_sc26198startrxtx:                  ## @stl_sc26198startrxtx
	.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, %r12
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_pr_debug
	movb	(%r12), %bl
	cmpl	$1, %r14d
	je	LBB0_3
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.2:
	movq	_IR_TXRDY@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	notb	%al
	andb	%al, %bl
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_5
LBB0_6:
	jle	LBB0_8
## %bb.7:
	movq	_IR_RXRDY@GOTPCREL(%rip), %rax
	movq	_IR_RXBREAK@GOTPCREL(%rip), %rcx
	movq	_IR_RXWATCHDOG@GOTPCREL(%rip), %rdx
	orb	(%rax), %bl
	orb	(%rcx), %bl
	orb	(%rdx), %bl
	jmp	LBB0_8
LBB0_3:
	movq	_IR_TXRDY@GOTPCREL(%rip), %rax
	orb	(%rax), %bl
	testl	%r15d, %r15d
	jne	LBB0_6
LBB0_5:
	movq	_IR_RXRDY@GOTPCREL(%rip), %rax
	movq	_IR_RXBREAK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movq	_IR_RXWATCHDOG@GOTPCREL(%rip), %rax
	orb	(%rax), %cl
	notb	%cl
	andb	%cl, %bl
LBB0_8:
	movq	_brd_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	callq	_BRDENABLE
	movq	_IMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %ebx
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stl_sc26198setreg
	movl	8(%r12), %edi
	callq	_BRDDISABLE
	movb	%bl, (%r12)
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.9:
	movq	_ASYI_TXBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	callq	_set_bit
LBB0_10:
	movq	_brd_lock@GOTPCREL(%rip), %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_sc26198startrxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_IR_TXRDY,1,0                   ## @IR_TXRDY
	.comm	_IR_RXRDY,1,0                   ## @IR_RXRDY
	.comm	_IR_RXBREAK,1,0                 ## @IR_RXBREAK
	.comm	_IR_RXWATCHDOG,1,0              ## @IR_RXWATCHDOG
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_IMR,4,2                        ## @IMR
	.comm	_ASYI_TXBUSY,4,2                ## @ASYI_TXBUSY
	.no_dead_strip	_stl_sc26198startrxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198startrxtx
_stl_sc26198startrxtx:                  ; @stl_sc26198startrxtx
	.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, 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
	ldrb	w22, [x19]
	cmp	w20, #1
	b.eq	LBB0_6
; %bb.1:
	cbnz	w20, LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _IR_TXRDY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IR_TXRDY@GOTPAGEOFF]
	ldrb	w8, [x8]
	bic	w22, w22, w8
LBB0_3:
	cbz	w21, LBB0_7
LBB0_4:
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.5:
Lloh4:
	adrp	x8, _IR_RXRDY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IR_RXRDY@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh6:
	adrp	x9, _IR_RXBREAK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IR_RXBREAK@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh8:
	adrp	x10, _IR_RXWATCHDOG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IR_RXWATCHDOG@GOTPAGEOFF]
	ldrb	w10, [x10]
	orr	w8, w8, w22
	orr	w8, w8, w9
	orr	w22, w8, w10
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _IR_TXRDY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IR_TXRDY@GOTPAGEOFF]
	ldrb	w8, [x8]
	orr	w22, w8, w22
	cbnz	w21, LBB0_4
LBB0_7:
Lloh12:
	adrp	x8, _IR_RXRDY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IR_RXRDY@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh14:
	adrp	x9, _IR_RXBREAK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IR_RXBREAK@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
Lloh16:
	adrp	x9, _IR_RXWATCHDOG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IR_RXWATCHDOG@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	bic	w22, w22, w8
LBB0_8:
Lloh18:
	adrp	x0, _brd_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19, #8]
	bl	_BRDENABLE
Lloh20:
	adrp	x8, _IMR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IMR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_stl_sc26198setreg
	ldr	w0, [x19, #8]
	bl	_BRDDISABLE
	strb	w22, [x19]
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _ASYI_TXBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ASYI_TXBUSY@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_set_bit
LBB0_10:
Lloh26:
	adrp	x0, _brd_lock@GOTPAGE
Lloh27:
	ldr	x0, [x0, _brd_lock@GOTPAGEOFF]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_sc26198startrxtx(portp=%p,rx=%d,tx=%d)\n"

	.comm	_IR_TXRDY,1,0                   ; @IR_TXRDY
	.comm	_IR_RXRDY,1,0                   ; @IR_RXRDY
	.comm	_IR_RXBREAK,1,0                 ; @IR_RXBREAK
	.comm	_IR_RXWATCHDOG,1,0              ; @IR_RXWATCHDOG
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_IMR,4,2                        ; @IMR
	.comm	_ASYI_TXBUSY,4,2                ; @ASYI_TXBUSY
	.no_dead_strip	_stl_sc26198startrxtx
.subsections_via_symbols
