	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_tlv_has_ie
_brcmf_tlv_has_ie:                      ## @brcmf_tlv_has_ie
	.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
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_TLV_LEN_OFF@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	cmpl	%r8d, (%rdi,%rax,4)
	jle	LBB0_3
## %bb.1:
	movl	%r8d, %r13d
	movq	_TLV_BODY_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rbx,%rax,4), %rdi
	movq	%rcx, %rsi
	movl	%r8d, %edx
	movl	%r9d, %r14d
	callq	_memcmp
	movq	_TLV_LEN_OFF@GOTPCREL(%rip), %rsi
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movslq	%r13d, %rcx
	movq	_TLV_BODY_OFF@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movl	$1, %eax
	cmpl	%r14d, (%rbx,%rcx,4)
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	(%rsi), %rcx
	movslq	(%rbx,%rcx,4), %rcx
	movq	_TLV_HDR_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	addq	%rcx, %rdx
	leaq	(%rbx,%rdx,4), %rcx
	movq	%rcx, %rdx
	subq	(%r15), %rdx
	shrq	$2, %rdx
	subl	%edx, (%r12)
	movq	%rcx, (%r15)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLV_LEN_OFF,8,3                ## @TLV_LEN_OFF
	.comm	_TLV_BODY_OFF,8,3               ## @TLV_BODY_OFF
	.comm	_TLV_HDR_LEN,4,2                ## @TLV_HDR_LEN
	.no_dead_strip	_brcmf_tlv_has_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_tlv_has_ie
_brcmf_tlv_has_ie:                      ; @brcmf_tlv_has_ie
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x24, _TLV_LEN_OFF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _TLV_LEN_OFF@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x0, x8, lsl #2]
	cmp	w8, w4
	b.le	LBB0_4
; %bb.1:
	mov	x22, x5
	mov	x23, x4
Lloh2:
	adrp	x25, _TLV_BODY_OFF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TLV_BODY_OFF@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x21, x8, lsl #2
	mov	x1, x3
	mov	x2, x4
	bl	_memcmp
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x25]
	add	x8, x8, w23, sxtw
	ldr	w8, [x21, x8, lsl #2]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	cbz	x19, LBB0_6
; %bb.5:
	ldr	x8, [x24]
	ldr	w8, [x21, x8, lsl #2]
Lloh4:
	adrp	x9, _TLV_HDR_LEN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _TLV_HDR_LEN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	add	w8, w9, w8
	add	x8, x21, w8, sxtw #2
	ldr	x9, [x19]
	sub	x9, x8, x9
	lsr	x9, x9, #2
	ldr	w10, [x20]
	sub	w9, w10, w9
	str	w9, [x20]
	str	x8, [x19]
LBB0_6:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TLV_LEN_OFF,8,3                ; @TLV_LEN_OFF
	.comm	_TLV_BODY_OFF,8,3               ; @TLV_BODY_OFF
	.comm	_TLV_HDR_LEN,4,2                ; @TLV_HDR_LEN
	.no_dead_strip	_brcmf_tlv_has_ie
.subsections_via_symbols
