	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_disable_tx_engine
_jme_disable_tx_engine:                 ## @jme_disable_tx_engine
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_JME_TXCS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_TXCS_SELECT_QUEUE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rdi), %edx
	callq	_jwrite32
	xorl	%eax, %eax
	callq	_wmb
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_jread32
	movq	_JME_TX_DISABLE_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_TXCS_ENABLE@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_jread32
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_rmb
	leal	-1(%rbx), %eax
	testl	%r12d, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$1, %ebx
	movl	%eax, %ebx
	ja	LBB0_4
	jmp	LBB0_6
LBB0_1:
	movl	%ebx, %eax
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, %eax
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_jeprintk                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JME_TXCS,4,2                   ## @JME_TXCS
	.comm	_TXCS_SELECT_QUEUE0,4,2         ## @TXCS_SELECT_QUEUE0
	.comm	_JME_TX_DISABLE_TIMEOUT,4,2     ## @JME_TX_DISABLE_TIMEOUT
	.comm	_TXCS_ENABLE,4,2                ## @TXCS_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disable TX engine timeout.\n"

	.no_dead_strip	_jme_disable_tx_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_disable_tx_engine
_jme_disable_tx_engine:                 ; @jme_disable_tx_engine
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x21, _JME_TXCS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _JME_TXCS@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _TXCS_SELECT_QUEUE0@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TXCS_SELECT_QUEUE0@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_jwrite32
	bl	_wmb
	ldr	w1, [x21]
	mov	x0, x19
	bl	_jread32
Lloh5:
	adrp	x8, _JME_TX_DISABLE_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JME_TX_DISABLE_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
Lloh8:
	adrp	x23, _TXCS_ENABLE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TXCS_ENABLE@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w22, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	x8, x22
	b	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x21]
	mov	x0, x19
	bl	_jread32
	mov	x20, x0
	bl	_rmb
	sub	w8, w22, #1
	ldr	w9, [x23]
	and	w9, w9, w20
	cmp	w9, #0
	ccmp	w22, #1, #0, ne
	mov	x22, x8
	b.hi	LBB0_2
LBB0_3:
	cbz	w8, LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_jeprintk
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_JME_TXCS,4,2                   ; @JME_TXCS
	.comm	_TXCS_SELECT_QUEUE0,4,2         ; @TXCS_SELECT_QUEUE0
	.comm	_JME_TX_DISABLE_TIMEOUT,4,2     ; @JME_TX_DISABLE_TIMEOUT
	.comm	_TXCS_ENABLE,4,2                ; @TXCS_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disable TX engine timeout.\n"

	.no_dead_strip	_jme_disable_tx_engine
.subsections_via_symbols
