	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stl_sc26198datastate
_stl_sc26198datastate:                  ## @stl_sc26198datastate
	.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
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	_ASYI_TXBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movq	_brd_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	callq	_BRDENABLE
	movq	_SR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_stl_sc26198getreg
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_BRDDISABLE
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_SR_TXEMPTY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testb	%r15b, (%rcx)
	sete	%al
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stl_sc26198datastate(portp=%p)\n"

	.comm	_ASYI_TXBUSY,4,2                ## @ASYI_TXBUSY
	.comm	_brd_lock,4,2                   ## @brd_lock
	.comm	_SR,4,2                         ## @SR
	.comm	_SR_TXEMPTY,1,0                 ## @SR_TXEMPTY
	.no_dead_strip	_stl_sc26198datastate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stl_sc26198datastate
_stl_sc26198datastate:                  ; @stl_sc26198datastate
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_debug
	cbz	x19, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _ASYI_TXBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASYI_TXBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x20, _brd_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _brd_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	w0, w1, [x19]
	bl	_BRDENABLE
Lloh7:
	adrp	x8, _SR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stl_sc26198getreg
	mov	x21, x0
	ldr	w0, [x19]
	bl	_BRDDISABLE
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _SR_TXEMPTY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SR_TXEMPTY@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w21
	cset	w0, eq
LBB0_5:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stl_sc26198datastate(portp=%p)\n"

	.comm	_ASYI_TXBUSY,4,2                ; @ASYI_TXBUSY
	.comm	_brd_lock,4,2                   ; @brd_lock
	.comm	_SR,4,2                         ; @SR
	.comm	_SR_TXEMPTY,1,0                 ; @SR_TXEMPTY
	.no_dead_strip	_stl_sc26198datastate
.subsections_via_symbols
