	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_rx_tx_enable          ## -- Begin function cgx_lmac_rx_tx_enable
	.p2align	4, 0x90
_cgx_lmac_rx_tx_enable:                 ## @cgx_lmac_rx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	%esi, (%rdi)
	jle	LBB0_2
## %bb.3:
	movl	%edx, %r15d
	movq	_CGXX_CMRX_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cgx_read
	movq	_CMR_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DATA_PKT_RX_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	movq	_DATA_PKT_TX_EN@GOTPCREL(%rip), %rsi
	orl	%eax, %ecx
	orl	%edx, %ecx
	orl	(%rsi), %ecx
	jmp	LBB0_6
LBB0_2:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	orl	%ecx, %edx
	movq	_DATA_PKT_TX_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, %ecx
LBB0_6:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cgx_write
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CGXX_CMRX_CFG,4,2              ## @CGXX_CMRX_CFG
	.comm	_CMR_EN,4,2                     ## @CMR_EN
	.comm	_DATA_PKT_RX_EN,4,2             ## @DATA_PKT_RX_EN
	.comm	_DATA_PKT_TX_EN,4,2             ## @DATA_PKT_TX_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_rx_tx_enable          ; -- Begin function cgx_lmac_rx_tx_enable
	.p2align	2
_cgx_lmac_rx_tx_enable:                 ; @cgx_lmac_rx_tx_enable
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_4
; %bb.2:
	mov	x21, x2
Lloh0:
	adrp	x22, _CGXX_CMRX_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CGXX_CMRX_CFG@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_cgx_read
Lloh2:
	adrp	x8, _CMR_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMR_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DATA_PKT_RX_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DATA_PKT_RX_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cbz	w21, LBB0_5
; %bb.3:
Lloh8:
	adrp	x10, _DATA_PKT_TX_EN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _DATA_PKT_TX_EN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	orr	w8, w8, w0
	orr	w8, w8, w9
	orr	w3, w8, w10
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _DATA_PKT_TX_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DATA_PKT_TX_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w3, w0, w8
LBB0_6:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_cgx_write
	mov	w0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CGXX_CMRX_CFG,4,2              ; @CGXX_CMRX_CFG
	.comm	_CMR_EN,4,2                     ; @CMR_EN
	.comm	_DATA_PKT_RX_EN,4,2             ; @DATA_PKT_RX_EN
	.comm	_DATA_PKT_TX_EN,4,2             ; @DATA_PKT_TX_EN
.subsections_via_symbols
