	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmac_set_rx_mode
_bgmac_set_rx_mode:                     ## @bgmac_set_rx_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_BGMAC_CMDCFG_PROM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, (%rbx)
	je	LBB0_3
## %bb.1:
	movq	%rax, %rdi
	movl	$-1, %esi
	jmp	LBB0_2
LBB0_3:
	notl	%edx
	movq	%rax, %rdi
	movl	%edx, %esi
	xorl	%edx, %edx
LBB0_2:
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bgmac_cmdcfg_maskset           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_BGMAC_CMDCFG_PROM,4,2          ## @BGMAC_CMDCFG_PROM
	.no_dead_strip	_bgmac_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmac_set_rx_mode
_bgmac_set_rx_mode:                     ; @bgmac_set_rx_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_netdev_priv
Lloh0:
	adrp	x8, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _BGMAC_CMDCFG_PROM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BGMAC_CMDCFG_PROM@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x10]
	tst	w8, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #-1
	b	LBB0_3
LBB0_2:
	mvn	w1, w2
	mov	w2, #0
LBB0_3:
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bgmac_cmdcfg_maskset
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_BGMAC_CMDCFG_PROM,4,2          ; @BGMAC_CMDCFG_PROM
	.no_dead_strip	_bgmac_set_rx_mode
.subsections_via_symbols
