	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_mac_remove_vendor_ie
_ath10k_mac_remove_vendor_ie:           ## @ath10k_mac_remove_vendor_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	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	xorl	%edi, %edi
	cmpq	%rcx, (%r13)
	setb	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	(,%rbx,4), %rdx
	addq	8(%r13), %rdx
	movq	(%r13), %rcx
	subq	%rbx, %rcx
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_cfg80211_find_vendor_ie
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movslq	4(%rax), %rbx
	movq	(%r13), %r15
	shlq	$2, %r15
	addq	8(%r13), %r15
	leaq	(%rax,%rbx,4), %r12
	addq	$8, %r12
	xorl	%edi, %edi
	cmpq	%r15, %r12
	seta	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_1
## %bb.6:
	addq	$2, %rbx
	subq	%r12, %r15
	shrq	$2, %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memmove
	movq	(%r13), %rsi
	subq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_skb_trim
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ath10k_mac_remove_vendor_ie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_mac_remove_vendor_ie
_ath10k_mac_remove_vendor_ie:           ; @ath10k_mac_remove_vendor_ie
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x3
	cset	w0, lo
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
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
LBB0_4:
	ldp	x9, x8, [x19]
	add	x2, x8, x22, lsl #2
	sub	x3, x9, x22
	mov	x0, x21
	mov	x1, x20
	bl	_cfg80211_find_vendor_ie
	cbz	x0, LBB0_7
; %bb.5:
	mov	x20, x0
	ldrsw	x8, [x0, #4]
	add	x22, x8, #2
	ldp	x9, x8, [x19]
	add	x23, x8, x9, lsl #2
	add	x21, x0, x22, lsl #2
	cmp	x21, x23
	cset	w0, hi
	bl	_WARN_ON
	cbnz	x0, LBB0_1
; %bb.6:
	sub	x8, x23, x21
	lsr	x2, x8, #2
	mov	x0, x20
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memmove
	ldr	x8, [x19]
	sub	x1, x8, x22
	mov	x0, x19
	bl	_skb_trim
	mov	w0, #0
	b	LBB0_3
LBB0_7:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ath10k_mac_remove_vendor_ie
.subsections_via_symbols
