	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wil_cfg80211_merge_extra_ies
__wil_cfg80211_merge_extra_ies:         ## @_wil_cfg80211_merge_extra_ies
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rsi, %rbx
	testq	%rdi, %rdi
	cmoveq	%rdi, %rbx
	testq	%rdx, %rdx
	cmoveq	%rdx, %r14
	movq	%r14, %rax
	orq	%rbx, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%rax, %r15
	callq	_memcpy
	movq	%r15, %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_6:
	leaq	(%rax,%rbx,8), %r15
	testq	%r12, %r12
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.7:
	cmpq	$2, %r14
	jl	LBB0_16
## %bb.8:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r14,8), %r13
	leaq	8(%r12), %rax
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%r15,%rbx,8), %r15
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_WLAN_EID_VENDOR_SPECIFIC@GOTPCREL(%rip), %rcx
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	8(%r12), %rax
	cmpq	%r13, %rax
	jae	LBB0_16
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %r14
	movq	(%rax), %rbx
	leaq	(%r12,%rbx,8), %r12
	addq	$16, %r12
	cmpq	%r13, %r12
	ja	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$2, %rbx
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	__wil_cfg80211_find_ie
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_13
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	subq	%rcx, %r15
	sarq	$3, %r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	jmp	LBB0_17
LBB0_1:
	movq	$0, (%r13)
	movq	$0, (%r15)
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ## @WLAN_EID_VENDOR_SPECIFIC
	.no_dead_strip	__wil_cfg80211_merge_extra_ies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _wil_cfg80211_merge_extra_ies
__wil_cfg80211_merge_extra_ies:         ; @_wil_cfg80211_merge_extra_ies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x5
	mov	x20, x4
	cmp	x0, #0
	csel	x22, xzr, x1, eq
	cmp	x2, #0
	csel	x24, xzr, x3, eq
	orr	x8, x24, x22
	cbz	x8, LBB0_14
; %bb.1:
	mov	x19, x2
	mov	x21, x0
	add	x0, x24, x22
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x23, x0
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
LBB0_4:
	add	x25, x23, x22, lsl #3
	cbz	x19, LBB0_13
; %bb.5:
	cmp	x24, #2
	b.lt	LBB0_13
; %bb.6:
	add	x27, x19, x24, lsl #3
Lloh3:
	adrp	x28, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGE
Lloh4:
	ldr	x28, [x28, _WLAN_EID_VENDOR_SPECIFIC@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	mov	x1, x19
	mov	x2, x26
	bl	_memcpy
	add	x25, x25, x26, lsl #3
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x24, #8
	mov	x19, x24
	cmp	x8, x27
	b.hs	LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x26, x8, #2
	add	x24, x19, x26, lsl #3
	cmp	x24, x27
	b.hi	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x21, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x26
	bl	__wil_cfg80211_find_ie
	cbnz	w0, LBB0_8
	b	LBB0_7
LBB0_13:
	mov	w0, #0
	str	x23, [x20]
	sub	x8, x25, x23
	asr	x8, x8, #3
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_16
LBB0_14:
	mov	w0, #0
	str	xzr, [x20]
	str	xzr, [x25]
	b	LBB0_16
LBB0_15:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLAN_EID_VENDOR_SPECIFIC,8,3   ; @WLAN_EID_VENDOR_SPECIFIC
	.no_dead_strip	__wil_cfg80211_merge_extra_ies
.subsections_via_symbols
