	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tms380tr_chk_ssb
_tms380tr_chk_ssb:                      ## @tms380tr_chk_ssb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_STS_IRQ_TRANSMIT_STATUS@GOTPCREL(%rip), %rcx
	movq	_STS_IRQ_COMMAND_STATUS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %edx
	movq	_STS_IRQ_RING_STATUS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	cmpw	%si, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_STS_IRQ_RECEIVE_STATUS@GOTPCREL(%rip), %rcx
	cmpw	%si, (%rcx)
	je	LBB0_4
## %bb.2:
	cmpw	%si, %dx
	je	LBB0_4
## %bb.3:
	movb	$1, %cl
	cmpw	%si, %ax
	je	LBB0_4
LBB0_11:
	movzbl	%cl, %eax
	popq	%rbp
	retq
LBB0_4:
	cmpw	$-1, (%rdi)
	setne	%cl
	je	LBB0_11
## %bb.5:
	cmpw	%si, %dx
	je	LBB0_11
## %bb.6:
	movq	8(%rdi), %rdx
	cmpw	$-1, (%rdx)
	setne	%cl
	je	LBB0_11
## %bb.7:
	cmpw	%si, %ax
	je	LBB0_11
## %bb.8:
	cmpw	$-1, 2(%rdx)
	je	LBB0_9
## %bb.10:
	cmpw	$-1, 4(%rdx)
	setne	%cl
	jmp	LBB0_11
LBB0_9:
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_STS_IRQ_TRANSMIT_STATUS,2,1    ## @STS_IRQ_TRANSMIT_STATUS
	.comm	_STS_IRQ_RECEIVE_STATUS,2,1     ## @STS_IRQ_RECEIVE_STATUS
	.comm	_STS_IRQ_COMMAND_STATUS,2,1     ## @STS_IRQ_COMMAND_STATUS
	.comm	_STS_IRQ_RING_STATUS,2,1        ## @STS_IRQ_RING_STATUS
	.no_dead_strip	_tms380tr_chk_ssb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tms380tr_chk_ssb
_tms380tr_chk_ssb:                      ; @tms380tr_chk_ssb
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _STS_IRQ_TRANSMIT_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STS_IRQ_TRANSMIT_STATUS@GOTPAGEOFF]
Lloh2:
	adrp	x10, _STS_IRQ_RECEIVE_STATUS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _STS_IRQ_RECEIVE_STATUS@GOTPAGEOFF]
	ldrh	w11, [x9]
	ldrh	w12, [x10]
Lloh4:
	adrp	x9, _STS_IRQ_COMMAND_STATUS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _STS_IRQ_COMMAND_STATUS@GOTPAGEOFF]
Lloh6:
	adrp	x13, _STS_IRQ_RING_STATUS@GOTPAGE
Lloh7:
	ldr	x13, [x13, _STS_IRQ_RING_STATUS@GOTPAGEOFF]
	ldrh	w10, [x9]
	ldrh	w9, [x13]
	cmp	w11, w1
	ccmp	w12, w1, #4, ne
	ccmp	w10, w1, #4, ne
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x8, x0
	ldrh	w12, [x0]
	mov	w11, #65535
	cmp	w12, w11
	cset	w0, ne
	ccmp	w10, w1, #4, ne
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x8, #8]
	ldrh	w10, [x8]
	cmp	w10, w11
	cset	w0, ne
	ccmp	w9, w1, #4, ne
	b.eq	LBB0_5
; %bb.3:
	ldrsh	w9, [x8, #2]
	cmn	w9, #1
	b.eq	LBB0_7
; %bb.4:
	ldrsh	w8, [x8, #4]
	cmn	w8, #1
	cset	w0, ne
LBB0_5:
	ret
LBB0_6:
	mov	w0, #1
	ret
LBB0_7:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STS_IRQ_TRANSMIT_STATUS,2,1    ; @STS_IRQ_TRANSMIT_STATUS
	.comm	_STS_IRQ_RECEIVE_STATUS,2,1     ; @STS_IRQ_RECEIVE_STATUS
	.comm	_STS_IRQ_COMMAND_STATUS,2,1     ; @STS_IRQ_COMMAND_STATUS
	.comm	_STS_IRQ_RING_STATUS,2,1        ; @STS_IRQ_RING_STATUS
	.no_dead_strip	_tms380tr_chk_ssb
.subsections_via_symbols
