	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_promisc_config        ## -- Begin function cgx_lmac_promisc_config
	.p2align	4, 0x90
_cgx_lmac_promisc_config:               ## @cgx_lmac_promisc_config
	.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
	movl	%edx, %r15d
	movl	%esi, %ebx
	callq	_cgx_get_pdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	_CGXX_CMRX_RX_DMAC_CTL0@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_cgx_read
	movq	_CGX_DMAC_CAM_ACCEPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_CGX_DMAC_MCAST_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	orl	%ecx, %edx
	notl	%edx
	andl	%edx, %eax
	movq	_CGX_DMAC_BCAST_MODE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_cgx_write
	movq	_CGXX_CMRX_RX_DMAC_CAM0@GOTPCREL(%rip), %rax
	shll	$3, %ebx
	movslq	%ebx, %rbx
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cgx_read
	movq	_CGX_DMAC_CAM_ADDR_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	orl	%eax, %ecx
	orl	%edx, %ecx
	movq	(%r12), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_cgx_write
	movq	_CGXX_CMRX_RX_DMAC_CAM0@GOTPCREL(%rip), %rax
	shll	$3, %ebx
	movslq	%ebx, %rbx
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_cgx_read
	movl	%eax, %ecx
	movq	_CGX_DMAC_CAM_ADDR_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
LBB0_4:
	movq	_CGXX_CMRX_RX_DMAC_CAM0@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cgx_write                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CGXX_CMRX_RX_DMAC_CTL0,8,3     ## @CGXX_CMRX_RX_DMAC_CTL0
	.comm	_CGX_DMAC_CAM_ACCEPT,4,2        ## @CGX_DMAC_CAM_ACCEPT
	.comm	_CGX_DMAC_MCAST_MODE,4,2        ## @CGX_DMAC_MCAST_MODE
	.comm	_CGX_DMAC_BCAST_MODE,4,2        ## @CGX_DMAC_BCAST_MODE
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgx_lmac_promisc_config        ; -- Begin function cgx_lmac_promisc_config
	.p2align	2
_cgx_lmac_promisc_config:               ; @cgx_lmac_promisc_config
	.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	x21, x2
	mov	x20, x1
	bl	_cgx_get_pdata
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, _CGXX_CMRX_RX_DMAC_CTL0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CGXX_CMRX_RX_DMAC_CTL0@GOTPAGEOFF]
	ldr	x2, [x23]
	mov	x1, x20
	bl	_cgx_read
Lloh2:
	adrp	x8, _CGX_DMAC_CAM_ACCEPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CGX_DMAC_CAM_ACCEPT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _CGX_DMAC_MCAST_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CGX_DMAC_MCAST_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x22, _CGXX_CMRX_RX_DMAC_CAM0@GOTPAGE
Lloh9:
	ldr	x22, [x22, _CGXX_CMRX_RX_DMAC_CAM0@GOTPAGEOFF]
	cbz	w21, LBB0_4
; %bb.2:
	orr	w8, w9, w8
	bic	w8, w0, w8
Lloh10:
	adrp	x9, _CGX_DMAC_BCAST_MODE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CGX_DMAC_BCAST_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_cgx_write
	ldr	x8, [x22]
	lsl	w9, w20, #3
	sxtw	x20, w9
	add	x2, x8, x20
	mov	x0, x19
	mov	w1, #0
	bl	_cgx_read
Lloh13:
	adrp	x8, _CGX_DMAC_CAM_ADDR_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CGX_DMAC_CAM_ADDR_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w3, w0, w8
	b	LBB0_5
LBB0_3:
	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_4:
	orr	w8, w8, w0
	orr	w3, w8, w9
	ldr	x2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_cgx_write
	ldr	x8, [x22]
	lsl	w9, w20, #3
	sxtw	x20, w9
	add	x2, x8, x20
	mov	x0, x19
	mov	w1, #0
	bl	_cgx_read
Lloh16:
	adrp	x8, _CGX_DMAC_CAM_ADDR_ENABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CGX_DMAC_CAM_ADDR_ENABLE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	orr	w3, w8, w0
LBB0_5:
	ldr	x8, [x22]
	add	x2, x8, x20
	mov	x0, x19
	mov	w1, #0
	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	_cgx_write
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CGXX_CMRX_RX_DMAC_CTL0,8,3     ; @CGXX_CMRX_RX_DMAC_CTL0
	.comm	_CGX_DMAC_CAM_ACCEPT,4,2        ; @CGX_DMAC_CAM_ACCEPT
	.comm	_CGX_DMAC_MCAST_MODE,4,2        ; @CGX_DMAC_MCAST_MODE
	.comm	_CGX_DMAC_BCAST_MODE,4,2        ; @CGX_DMAC_BCAST_MODE
	.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
.subsections_via_symbols
