	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bba_tx_err
___bba_tx_err:                          ## @__bba_tx_err
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_BBA_TX_STATUS_TERR@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	je	LBB0_10
## %bb.1:
	movq	%rsi, %rbx
	incq	%rax
	movq	%rax, (%rsi)
	movq	_BBA_TX_STATUS_CCMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	je	LBB0_3
## %bb.2:
	addl	%eax, 8(%rbx)
LBB0_3:
	movq	_BBA_TX_STATUS_CRSLOST@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_5
## %bb.4:
	incl	20(%rbx)
LBB0_5:
	movq	_BBA_TX_STATUS_UF@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_7
## %bb.6:
	incl	16(%rbx)
LBB0_7:
	movq	_BBA_TX_STATUS_OWC@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_9
## %bb.8:
	incl	12(%rbx)
LBB0_9:
	movslq	%edi, %rdi
	callq	_LWIP_ERROR
	movq	(%rbx), %rax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBA_TX_STATUS_TERR,4,2         ## @BBA_TX_STATUS_TERR
	.comm	_BBA_TX_STATUS_CCMASK,4,2       ## @BBA_TX_STATUS_CCMASK
	.comm	_BBA_TX_STATUS_CRSLOST,4,2      ## @BBA_TX_STATUS_CRSLOST
	.comm	_BBA_TX_STATUS_UF,4,2           ## @BBA_TX_STATUS_UF
	.comm	_BBA_TX_STATUS_OWC,4,2          ## @BBA_TX_STATUS_OWC
	.no_dead_strip	___bba_tx_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bba_tx_err
___bba_tx_err:                          ; @__bba_tx_err
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _BBA_TX_STATUS_TERR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BBA_TX_STATUS_TERR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x1
	add	x8, x8, #1
	str	x8, [x1]
Lloh3:
	adrp	x8, _BBA_TX_STATUS_CCMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BBA_TX_STATUS_CCMASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ands	w8, w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #8]
	add	w8, w9, w8
	str	w8, [x19, #8]
LBB0_3:
Lloh6:
	adrp	x8, _BBA_TX_STATUS_CRSLOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BBA_TX_STATUS_CRSLOST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
LBB0_5:
Lloh9:
	adrp	x8, _BBA_TX_STATUS_UF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BBA_TX_STATUS_UF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
LBB0_7:
Lloh12:
	adrp	x8, _BBA_TX_STATUS_OWC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BBA_TX_STATUS_OWC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
LBB0_9:
	sxtw	x0, w0
	bl	_LWIP_ERROR
	ldr	x8, [x19]
LBB0_10:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BBA_TX_STATUS_TERR,4,2         ; @BBA_TX_STATUS_TERR
	.comm	_BBA_TX_STATUS_CCMASK,4,2       ; @BBA_TX_STATUS_CCMASK
	.comm	_BBA_TX_STATUS_CRSLOST,4,2      ; @BBA_TX_STATUS_CRSLOST
	.comm	_BBA_TX_STATUS_UF,4,2           ; @BBA_TX_STATUS_UF
	.comm	_BBA_TX_STATUS_OWC,4,2          ; @BBA_TX_STATUS_OWC
	.no_dead_strip	___bba_tx_err
.subsections_via_symbols
