	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_broadcast_reg_helper
_ehea_broadcast_reg_helper:             ## @ehea_broadcast_reg_helper
	.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	%esi, %r15d
	movq	%rdi, %rbx
	movq	_EHEA_BCMC_BROADCAST@GOTPCREL(%rip), %r12
	movq	_EHEA_BCMC_UNTAGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	xorl	%r14d, %r14d
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_ehea_h_reg_dereg_bcmc
	movq	_H_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.2:
	movq	_EHEA_BCMC_VLANID_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r12), %edx
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_ehea_h_reg_dereg_bcmc
	cmpq	(%r13), %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movq	_H_REG_BCMC@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_BCMC_BROADCAST,4,2        ## @EHEA_BCMC_BROADCAST
	.comm	_EHEA_BCMC_UNTAGGED,4,2         ## @EHEA_BCMC_UNTAGGED
	.comm	_H_SUCCESS,8,3                  ## @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%sregistering bc address failed (tagged)\n"

	.comm	_H_REG_BCMC,4,2                 ## @H_REG_BCMC
L_.str.1:                               ## @.str.1
	.space	1

L_.str.2:                               ## @.str.2
	.asciz	"de"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_EHEA_BCMC_VLANID_ALL,4,2       ## @EHEA_BCMC_VLANID_ALL
L_.str.3:                               ## @.str.3
	.asciz	"%sregistering bc address failed (vlan)\n"

	.no_dead_strip	_ehea_broadcast_reg_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_broadcast_reg_helper
_ehea_broadcast_reg_helper:             ; @ehea_broadcast_reg_helper
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _EHEA_BCMC_BROADCAST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EHEA_BCMC_BROADCAST@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _EHEA_BCMC_UNTAGGED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EHEA_BCMC_UNTAGGED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
	ldp	w3, w1, [x20]
	mov	w4, #0
	mov	x5, x19
	bl	_ehea_h_reg_dereg_bcmc
Lloh5:
	adrp	x22, _H_SUCCESS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _H_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _EHEA_BCMC_VLANID_ALL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EHEA_BCMC_VLANID_ALL@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldp	w3, w1, [x20]
	mov	w4, #0
	mov	x5, x19
	bl	_ehea_h_reg_dereg_bcmc
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.2:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
Lloh14:
	adrp	x8, _H_REG_BCMC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H_REG_BCMC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, l_.str.2@PAGE
Lloh18:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh19:
	adrp	x10, l_.str.1@PAGE
Lloh20:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w19
	csel	x1, x10, x9, eq
	bl	_pr_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_BCMC_BROADCAST,4,2        ; @EHEA_BCMC_BROADCAST
	.comm	_EHEA_BCMC_UNTAGGED,4,2         ; @EHEA_BCMC_UNTAGGED
	.comm	_H_SUCCESS,8,3                  ; @H_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%sregistering bc address failed (tagged)\n"

	.comm	_H_REG_BCMC,4,2                 ; @H_REG_BCMC
l_.str.1:                               ; @.str.1
	.space	1

l_.str.2:                               ; @.str.2
	.asciz	"de"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_EHEA_BCMC_VLANID_ALL,4,2       ; @EHEA_BCMC_VLANID_ALL
l_.str.3:                               ; @.str.3
	.asciz	"%sregistering bc address failed (vlan)\n"

	.no_dead_strip	_ehea_broadcast_reg_helper
.subsections_via_symbols
