	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_set_idle
_tx_set_idle:                           ## @tx_set_idle
	.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
	movq	%rdi, %r14
	movq	_TCR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_rd_reg16
	movl	%eax, %ebx
	movl	(%r14), %eax
	movq	_HDLC_TXIDLE_CUSTOM_16@GOTPCREL(%rip), %r15
	movq	_BIT6@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	movq	_BIT5@GOTPCREL(%rip), %rdx
	addw	(%rdx), %cx
	notl	%ecx
	andl	%ecx, %ebx
	movq	_BIT4@GOTPCREL(%rip), %rcx
	orw	(%rcx), %bx
	movq	_TPR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%ah, %edx
	movq	%r14, %rdi
	callq	_wr_reg8
	jmp	LBB0_4
LBB0_2:
	testw	%bx, %cx
	jne	LBB0_4
## %bb.3:
	movq	_BIT5@GOTPCREL(%rip), %rax
	movq	_BIT4@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
	addw	(%rax), %cx
	notl	%ecx
	andl	%ecx, %ebx
LBB0_4:
	movl	(%r12), %esi
	movzwl	%bx, %edx
	movq	%r14, %rdi
	callq	_wr_reg16
	movl	(%r14), %ecx
	movq	_HDLC_TXIDLE_CUSTOM_8@GOTPCREL(%rip), %rax
	movl	(%r15), %edx
	orl	(%rax), %edx
	testl	%ecx, %edx
	je	LBB0_6
## %bb.5:
	movl	%ecx, %eax
	jmp	LBB0_8
LBB0_6:
	addl	$-128, %ecx
	movb	$-1, %al
	cmpl	$4, %ecx
	ja	LBB0_8
## %bb.7:
	shll	$3, %ecx
	movabsq	$733004824576, %rax             ## imm = 0xAAAA7E0000
                                        ## kill: def $cl killed $cl killed $ecx
	shrq	%cl, %rax
LBB0_8:
	movq	_TIR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wr_reg8                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TCR,4,2                        ## @TCR
	.comm	_HDLC_TXIDLE_CUSTOM_16,4,2      ## @HDLC_TXIDLE_CUSTOM_16
	.comm	_BIT6,2,1                       ## @BIT6
	.comm	_BIT5,2,1                       ## @BIT5
	.comm	_BIT4,2,1                       ## @BIT4
	.comm	_TPR,4,2                        ## @TPR
	.comm	_HDLC_TXIDLE_CUSTOM_8,4,2       ## @HDLC_TXIDLE_CUSTOM_8
	.comm	_TIR,4,2                        ## @TIR
	.no_dead_strip	_tx_set_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_set_idle
_tx_set_idle:                           ; @tx_set_idle
	.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	x22, _TCR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TCR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_rd_reg16
	mov	x20, x0
Lloh2:
	adrp	x21, _HDLC_TXIDLE_CUSTOM_16@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDLC_TXIDLE_CUSTOM_16@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w10, [x21]
Lloh4:
	adrp	x9, _BIT6@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BIT6@GOTPAGEOFF]
	ldrh	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x10, _BIT5@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BIT5@GOTPAGEOFF]
	ldrh	w10, [x10]
Lloh8:
	adrp	x11, _BIT4@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BIT4@GOTPAGEOFF]
	add	w9, w10, w9
	bic	w9, w20, w9
	ldrh	w10, [x11]
	orr	w20, w9, w10
Lloh10:
	adrp	x9, _TPR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TPR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	ubfx	w2, w8, #8, #8
	mov	x0, x19
	bl	_wr_reg8
	b	LBB0_4
LBB0_2:
	tst	w9, w20
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _BIT5@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BIT5@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh15:
	adrp	x9, _BIT4@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT4@GOTPAGEOFF]
	ldrh	w9, [x9]
	add	w8, w9, w8
	bic	w20, w20, w8
LBB0_4:
	ldr	w1, [x22]
	and	w2, w20, #0xffff
	mov	x0, x19
	bl	_wr_reg16
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _HDLC_TXIDLE_CUSTOM_8@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HDLC_TXIDLE_CUSTOM_8@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x21]
	orr	w9, w10, w9
	sub	w10, w8, #128
	lsl	x11, x10, #3
	mov	x12, #2860384256
	movk	x12, #170, lsl #32
	lsr	x11, x12, x11
	mov	w12, #255
	cmp	w10, #4
	csel	w10, w12, w11, hi
	tst	w9, w8
Lloh20:
	adrp	x9, _TIR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TIR@GOTPAGEOFF]
	csel	w8, w10, w8, eq
Lloh22:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x19
	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	_wr_reg8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TCR,4,2                        ; @TCR
	.comm	_HDLC_TXIDLE_CUSTOM_16,4,2      ; @HDLC_TXIDLE_CUSTOM_16
	.comm	_BIT6,2,1                       ; @BIT6
	.comm	_BIT5,2,1                       ; @BIT5
	.comm	_BIT4,2,1                       ; @BIT4
	.comm	_TPR,4,2                        ; @TPR
	.comm	_HDLC_TXIDLE_CUSTOM_8,4,2       ; @HDLC_TXIDLE_CUSTOM_8
	.comm	_TIR,4,2                        ; @TIR
	.no_dead_strip	_tx_set_idle
.subsections_via_symbols
