	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ene_tx_enable
_ene_tx_enable:                         ## @ene_tx_enable
	.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, %r15
	movq	_ENE_CIRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ene_read_reg
	movl	%eax, %r14d
	movq	_ENE_FW2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ene_read_reg
	movl	%eax, %ebx
	movl	%r14d, (%r15)
	movq	_ENE_FW2_EMMITER1_CONN@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_dbg
LBB0_2:
	movq	_ENE_FW2_EMMITER2_CONN@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg
	movl	(%r12), %eax
LBB0_4:
	orl	(%r13), %eax
	testl	%ebx, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_warn
LBB0_6:
	movq	8(%r15), %rax
	movq	_ENE_HW_C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_ENE_CIRCFG_RX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	$-1, %ecx
	cmovel	%eax, %ecx
	andl	%r14d, %ecx
	movq	_ENE_CIRCFG_TX_EN@GOTPCREL(%rip), %rax
	movq	_ENE_CIRCFG_TX_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	orl	%ecx, %edx
	movq	_ENE_CIRCFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ene_write_reg                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENE_CIRCFG,4,2                 ## @ENE_CIRCFG
	.comm	_ENE_FW2,4,2                    ## @ENE_FW2
	.comm	_ENE_FW2_EMMITER1_CONN,4,2      ## @ENE_FW2_EMMITER1_CONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX: Transmitter #1 is connected"

	.comm	_ENE_FW2_EMMITER2_CONN,4,2      ## @ENE_FW2_EMMITER2_CONN
L_.str.1:                               ## @.str.1
	.asciz	"TX: Transmitter #2 is connected"

L_.str.2:                               ## @.str.2
	.asciz	"TX: transmitter cable isn't connected!\n"

	.comm	_ENE_HW_C,8,3                   ## @ENE_HW_C
	.comm	_ENE_CIRCFG_RX_EN,4,2           ## @ENE_CIRCFG_RX_EN
	.comm	_ENE_CIRCFG_TX_EN,4,2           ## @ENE_CIRCFG_TX_EN
	.comm	_ENE_CIRCFG_TX_IRQ,4,2          ## @ENE_CIRCFG_TX_IRQ
	.no_dead_strip	_ene_tx_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ene_tx_enable
_ene_tx_enable:                         ; @ene_tx_enable
	.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	x22, _ENE_CIRCFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ENE_CIRCFG@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ene_read_reg
	mov	x20, x0
Lloh2:
	adrp	x8, _ENE_FW2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENE_FW2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ene_read_reg
	mov	x21, x0
	str	w20, [x19]
Lloh5:
	adrp	x23, _ENE_FW2_EMMITER1_CONN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ENE_FW2_EMMITER1_CONN@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
LBB0_2:
Lloh9:
	adrp	x24, _ENE_FW2_EMMITER2_CONN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ENE_FW2_EMMITER2_CONN@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	ldr	w8, [x24]
LBB0_4:
	ldr	w9, [x23]
	orr	w8, w8, w9
	tst	w8, w21
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warn
LBB0_6:
	ldr	x8, [x19, #8]
Lloh15:
	adrp	x9, _ENE_HW_C@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ENE_HW_C@GOTPAGEOFF]
Lloh17:
	adrp	x10, _ENE_CIRCFG_RX_EN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ENE_CIRCFG_RX_EN@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	ldr	w10, [x10]
	cmp	x8, x9
	mov	w8, #-1
	csinv	w8, w8, w10, ne
	and	w8, w8, w20
Lloh21:
	adrp	x9, _ENE_CIRCFG_TX_EN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ENE_CIRCFG_TX_EN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _ENE_CIRCFG_TX_IRQ@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ENE_CIRCFG_TX_IRQ@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w2, w9, w8
	ldr	w1, [x22]
	mov	x0, x19
	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	_ene_write_reg
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENE_CIRCFG,4,2                 ; @ENE_CIRCFG
	.comm	_ENE_FW2,4,2                    ; @ENE_FW2
	.comm	_ENE_FW2_EMMITER1_CONN,4,2      ; @ENE_FW2_EMMITER1_CONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX: Transmitter #1 is connected"

	.comm	_ENE_FW2_EMMITER2_CONN,4,2      ; @ENE_FW2_EMMITER2_CONN
l_.str.1:                               ; @.str.1
	.asciz	"TX: Transmitter #2 is connected"

l_.str.2:                               ; @.str.2
	.asciz	"TX: transmitter cable isn't connected!\n"

	.comm	_ENE_HW_C,8,3                   ; @ENE_HW_C
	.comm	_ENE_CIRCFG_RX_EN,4,2           ; @ENE_CIRCFG_RX_EN
	.comm	_ENE_CIRCFG_TX_EN,4,2           ; @ENE_CIRCFG_TX_EN
	.comm	_ENE_CIRCFG_TX_IRQ,4,2          ; @ENE_CIRCFG_TX_IRQ
	.no_dead_strip	_ene_tx_enable
.subsections_via_symbols
