	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgx_set_dmac_cam_filter_mac
_bgx_set_dmac_cam_filter_mac:           ## @bgx_set_dmac_cam_filter_mac
	.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
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movl	%ecx, %r15d
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movslq	%esi, %r13
	movq	_LMAC_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r13d, %edi
	callq	_RX_DMACX_CAM_LMACID
	movq	_RX_DMACX_CAM_EN@GOTPCREL(%rip), %rcx
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	movq	_BGX_CMR_RX_DMACX_CAM@GOTPCREL(%rip), %rax
	movl	(%r12,%r13,4), %ecx
	imull	%r13d, %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rdx
	shlq	$2, %rdx
	addq	(%rax), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %ecx
	callq	_bgx_reg_write
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LMAC_ID_MASK,4,2               ## @LMAC_ID_MASK
	.comm	_RX_DMACX_CAM_EN,4,2            ## @RX_DMACX_CAM_EN
	.comm	_BGX_CMR_RX_DMACX_CAM,8,3       ## @BGX_CMR_RX_DMACX_CAM
	.no_dead_strip	_bgx_set_dmac_cam_filter_mac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgx_set_dmac_cam_filter_mac
_bgx_set_dmac_cam_filter_mac:           ; @bgx_set_dmac_cam_filter_mac
	.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
	mov	w0, #-1
	cbz	x19, LBB0_3
; %bb.1:
	mov	x22, x2
	cbz	w2, LBB0_3
; %bb.2:
	mov	x20, x3
	mov	x21, x1
	ldr	x23, [x19]
Lloh0:
	adrp	x8, _LMAC_ID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LMAC_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w1
	bl	_RX_DMACX_CAM_LMACID
Lloh3:
	adrp	x8, _RX_DMACX_CAM_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_DMACX_CAM_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w9, w0, w22
Lloh6:
	adrp	x10, _BGX_CMR_RX_DMACX_CAM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BGX_CMR_RX_DMACX_CAM@GOTPAGEOFF]
	orr	w3, w9, w8
Lloh8:
	ldr	x8, [x10]
	ldr	w9, [x23, w21, sxtw #2]
	madd	w9, w9, w21, w20
	add	x2, x8, w9, sxtw #2
	mov	x0, x19
	mov	w1, #0
	bl	_bgx_reg_write
	mov	w0, #0
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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LMAC_ID_MASK,4,2               ; @LMAC_ID_MASK
	.comm	_RX_DMACX_CAM_EN,4,2            ; @RX_DMACX_CAM_EN
	.comm	_BGX_CMR_RX_DMACX_CAM,8,3       ; @BGX_CMR_RX_DMACX_CAM
	.no_dead_strip	_bgx_set_dmac_cam_filter_mac
.subsections_via_symbols
