	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_update_ft_ies              ## -- Begin function wmi_update_ft_ies
	.p2align	4, 0x90
_wmi_update_ft_ies:                     ## @wmi_update_ft_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_vif_to_wil
	xorl	%r15d, %r15d
	testq	%r13, %r13
	cmovel	%r15d, %ebx
	cmpl	$2147483640, %ebx               ## imm = 0x7FFFFFF8
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_wil_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	8(%rbx), %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, 4(%r14)
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_WMI_UPDATE_FT_IES_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_wmi_send
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_kfree
	testl	%r15d, %r15d
	je	LBB0_6
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_wil_err
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	testl	%r15d, %r15d
	jne	LBB0_7
LBB0_6:
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wraparound. ie len %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WMI_UPDATE_FT_IES_CMDID,4,2    ## @WMI_UPDATE_FT_IES_CMDID
L_.str.1:                               ## @.str.1
	.asciz	"update ft ies failed : %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_update_ft_ies              ; -- Begin function wmi_update_ft_ies
	.p2align	2
_wmi_update_ft_ies:                     ; @wmi_update_ft_ies
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_vif_to_wil
	mov	x19, x0
	cmp	x21, #0
	csel	w22, wzr, w22, eq
	mov	w8, #2147483640
	cmp	w22, w8
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_wil_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
	add	w23, w22, #8
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.3:
	mov	x24, x0
	mov	x0, x22
	bl	_cpu_to_le16
	str	w0, [x24, #4]
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
Lloh8:
	adrp	x8, _WMI_UPDATE_FT_IES_CMDID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WMI_UPDATE_FT_IES_CMDID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	x3, x24
	mov	x4, x23
	bl	_wmi_send
	mov	x20, x0
	mov	x0, x24
	bl	_kfree
	cbz	w20, LBB0_5
LBB0_4:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_wil_err
LBB0_5:
	mov	x0, x20
	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_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w20, LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wraparound. ie len %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WMI_UPDATE_FT_IES_CMDID,4,2    ; @WMI_UPDATE_FT_IES_CMDID
l_.str.1:                               ; @.str.1
	.asciz	"update ft ies failed : %d\n"

.subsections_via_symbols
