	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_addr_set              ## -- Begin function cgx_lmac_addr_set
	.p2align	4, 0x90
_cgx_lmac_addr_set:                     ## @cgx_lmac_addr_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	callq	_cgx_get_pdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mac2u64
	movq	_CGXX_CMRX_RX_DMAC_CAM0@GOTPCREL(%rip), %rax
	leal	(,%r14,8), %ecx
	movslq	%ecx, %rdx
	addq	(%rax), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_cgx_write
	movq	_CGXX_CMRX_RX_DMAC_CTL0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_cgx_read
	movq	_CGX_DMAC_CTL0_CAM_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r15), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_cgx_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGXX_CMRX_RX_DMAC_CAM0,8,3     ## @CGXX_CMRX_RX_DMAC_CAM0
	.comm	_CGX_DMAC_CAM_ADDR_ENABLE,4,2   ## @CGX_DMAC_CAM_ADDR_ENABLE
	.comm	_CGXX_CMRX_RX_DMAC_CTL0,8,3     ## @CGXX_CMRX_RX_DMAC_CTL0
	.comm	_CGX_DMAC_CTL0_CAM_ENABLE,4,2   ## @CGX_DMAC_CTL0_CAM_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_addr_set              ; -- Begin function cgx_lmac_addr_set
	.p2align	2
_cgx_lmac_addr_set:                     ; @cgx_lmac_addr_set
	.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, x2
	mov	x20, x1
	bl	_cgx_get_pdata
	mov	x21, x0
	mov	x0, x19
	bl	_mac2u64
Lloh0:
	adrp	x8, _CGXX_CMRX_RX_DMAC_CAM0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGXX_CMRX_RX_DMAC_CAM0@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	w9, w20, #3
	add	x2, x8, w9, sxtw
	mov	x0, x21
	mov	w1, #0
	bl	_cgx_write
Lloh3:
	adrp	x19, _CGXX_CMRX_RX_DMAC_CTL0@GOTPAGE
Lloh4:
	ldr	x19, [x19, _CGXX_CMRX_RX_DMAC_CTL0@GOTPAGEOFF]
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_cgx_read
Lloh5:
	adrp	x8, _CGX_DMAC_CTL0_CAM_ENABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CGX_DMAC_CTL0_CAM_ENABLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_cgx_write
	mov	w0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGXX_CMRX_RX_DMAC_CAM0,8,3     ; @CGXX_CMRX_RX_DMAC_CAM0
	.comm	_CGX_DMAC_CAM_ADDR_ENABLE,4,2   ; @CGX_DMAC_CAM_ADDR_ENABLE
	.comm	_CGXX_CMRX_RX_DMAC_CTL0,8,3     ; @CGXX_CMRX_RX_DMAC_CTL0
	.comm	_CGX_DMAC_CTL0_CAM_ENABLE,4,2   ; @CGX_DMAC_CTL0_CAM_ENABLE
.subsections_via_symbols
