	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_compare_update_same_bss
_brcmf_compare_update_same_bss:         ## @brcmf_compare_update_same_bss
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	28(%rsi), %edi
	callq	_le16_to_cpu
	movq	%rax, -56(%rbp)
	leaq	-64(%rbp), %rdi
	callq	*(%rbx)
	movl	28(%r12), %edi
	callq	_le16_to_cpu
	movq	%rax, -40(%rbp)
	leaq	-48(%rbp), %rdi
	callq	*(%rbx)
	leaq	24(%r12), %rdi
	leaq	24(%r14), %rsi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_memcmp
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	-64(%rbp), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.2:
	movq	(%r12), %rdx
	cmpq	(%r14), %rdx
	jne	LBB0_10
## %bb.3:
	movq	16(%r12), %rdi
	movq	16(%r14), %rsi
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_4
LBB0_10:
	movl	%r15d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r14), %eax
	movq	_BRCMF_BSS_RSSI_ON_CHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	andl	%eax, %esi
	movl	8(%r12), %edx
	andl	%ecx, %edx
	cmpl	%edx, %esi
	jne	LBB0_7
## %bb.5:
	movl	12(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	movl	12(%r12), %edi
	callq	_le16_to_cpu
	movl	$1, %r15d
	cmpq	%rbx, %rax
	jle	LBB0_10
## %bb.6:
	movl	12(%r12), %eax
	movl	%eax, 12(%r14)
	jmp	LBB0_10
LBB0_7:
	movl	$1, %r15d
	testl	%esi, %esi
	je	LBB0_10
## %bb.8:
	testl	%edx, %edx
	jne	LBB0_10
## %bb.9:
	movl	12(%r12), %edx
	movl	%edx, 12(%r14)
	orl	%eax, %ecx
	movl	%ecx, 8(%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_BRCMF_BSS_RSSI_ON_CHANNEL,4,2  ## @BRCMF_BSS_RSSI_ON_CHANNEL
	.no_dead_strip	_brcmf_compare_update_same_bss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_compare_update_same_bss
_brcmf_compare_update_same_bss:         ; @brcmf_compare_update_same_bss
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1, #28]
	bl	_le16_to_cpu
	str	x0, [sp, #24]
	ldr	x8, [x21]
	add	x0, sp, #16
	blr	x8
	ldr	w0, [x20, #28]
	bl	_le16_to_cpu
	str	x0, [sp, #8]
	ldr	x8, [x21]
	mov	x0, sp
	blr	x8
	add	x0, x20, #24
	add	x1, x19, #24
Lloh0:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh2:
	ldr	x2, [x8]
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #16]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	ldr	x2, [x20]
	ldr	x8, [x19]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x20, #16]
	ldr	x1, [x19, #16]
	bl	_memcmp
	cbz	w0, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh3:
	adrp	x9, _BRCMF_BSS_RSSI_ON_CHANNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRCMF_BSS_RSSI_ON_CHANNEL@GOTPAGEOFF]
	ldr	w8, [x19, #8]
Lloh5:
	ldr	w9, [x9]
	and	w10, w9, w8
	ldr	w11, [x20, #8]
	and	w11, w11, w9
	cmp	w10, w11
	b.ne	LBB0_9
; %bb.7:
	ldr	w0, [x19, #12]
	bl	_le16_to_cpu
	mov	x21, x0
	ldr	w0, [x20, #12]
	bl	_le16_to_cpu
	cmp	x0, x21
	b.le	LBB0_11
; %bb.8:
	ldr	w8, [x20, #12]
	str	w8, [x19, #12]
	b	LBB0_11
LBB0_9:
	cmp	w10, #0
	ccmp	w11, #0, #0, ne
	b.ne	LBB0_11
; %bb.10:
	ldr	w10, [x20, #12]
	orr	w8, w9, w8
	stp	w8, w10, [x19, #8]
LBB0_11:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_BRCMF_BSS_RSSI_ON_CHANNEL,4,2  ; @BRCMF_BSS_RSSI_ON_CHANNEL
	.no_dead_strip	_brcmf_compare_update_same_bss
.subsections_via_symbols
