	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_giwpower
_prism2_ioctl_giwpower:                 ## @prism2_ioctl_giwpower
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %r15
	movq	(%r15), %rax
	movq	_HFA384X_RID_CNFPMENABLED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-40(%rbp), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	$0, (%r14)
	movq	_IW_POWER_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r14), %eax
	movq	_IW_POWER_TIMEOUT@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_7
## %bb.5:
	movq	(%r15), %rax
	movq	_HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_1
## %bb.6:
	movl	(%r12), %eax
	jmp	LBB0_9
LBB0_3:
	movl	$1, (%r14)
	jmp	LBB0_14
LBB0_7:
	movq	(%r15), %rax
	movq	_HFA384X_RID_CNFMAXSLEEPDURATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_1
## %bb.8:
	movq	_IW_POWER_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, 4(%r14)
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	shll	$10, %eax
	movl	%eax, 8(%r14)
	movq	(%r15), %rax
	movq	_HFA384X_RID_CNFMULTICASTRECEIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	testq	%rax, %rax
	js	LBB0_1
## %bb.10:
	movl	-36(%rbp), %edi
	callq	_le16_to_cpu
	testl	%eax, %eax
	jne	LBB0_11
## %bb.12:
	movq	_IW_POWER_UNICAST_R@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_11:
	movq	_IW_POWER_ALL_R@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_RID_CNFPMENABLED,4,2   ## @HFA384X_RID_CNFPMENABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_POWER_TYPE,4,2              ## @IW_POWER_TYPE
	.comm	_IW_POWER_TIMEOUT,4,2           ## @IW_POWER_TIMEOUT
	.comm	_HFA384X_RID_CNFPMHOLDOVERDURATION,4,2 ## @HFA384X_RID_CNFPMHOLDOVERDURATION
	.comm	_HFA384X_RID_CNFMAXSLEEPDURATION,4,2 ## @HFA384X_RID_CNFMAXSLEEPDURATION
	.comm	_IW_POWER_PERIOD,4,2            ## @IW_POWER_PERIOD
	.comm	_HFA384X_RID_CNFMULTICASTRECEIVE,4,2 ## @HFA384X_RID_CNFMULTICASTRECEIVE
	.comm	_IW_POWER_ALL_R,4,2             ## @IW_POWER_ALL_R
	.comm	_IW_POWER_UNICAST_R,4,2         ## @IW_POWER_UNICAST_R
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_giwpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_giwpower
_prism2_ioctl_giwpower:                 ; @prism2_ioctl_giwpower
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	bl	_netdev_priv
	ldr	x21, [x0]
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _HFA384X_RID_CNFPMENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HFA384X_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	cbz	w0, LBB0_5
; %bb.2:
	str	wzr, [x19]
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _IW_POWER_TYPE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_POWER_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x22, _IW_POWER_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IW_POWER_TIMEOUT@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_10
; %bb.4:
	ldr	w8, [x22]
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_11
LBB0_6:
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _HFA384X_RID_CNFMAXSLEEPDURATION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HFA384X_RID_CNFMAXSLEEPDURATION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _IW_POWER_PERIOD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IW_POWER_PERIOD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
LBB0_8:
	str	w8, [x19, #4]
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	lsl	w8, w0, #10
	str	w8, [x19, #8]
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #2
	mov	w4, #1
	blr	x8
	tbnz	x0, #63, LBB0_10
; %bb.9:
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x8, x0
	mov	w0, #0
Lloh20:
	adrp	x9, _IW_POWER_UNICAST_R@GOTPAGE
Lloh21:
	ldr	x9, [x9, _IW_POWER_UNICAST_R@GOTPAGEOFF]
Lloh22:
	adrp	x10, _IW_POWER_ALL_R@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IW_POWER_ALL_R@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_RID_CNFPMENABLED,4,2   ; @HFA384X_RID_CNFPMENABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_POWER_TYPE,4,2              ; @IW_POWER_TYPE
	.comm	_IW_POWER_TIMEOUT,4,2           ; @IW_POWER_TIMEOUT
	.comm	_HFA384X_RID_CNFPMHOLDOVERDURATION,4,2 ; @HFA384X_RID_CNFPMHOLDOVERDURATION
	.comm	_HFA384X_RID_CNFMAXSLEEPDURATION,4,2 ; @HFA384X_RID_CNFMAXSLEEPDURATION
	.comm	_IW_POWER_PERIOD,4,2            ; @IW_POWER_PERIOD
	.comm	_HFA384X_RID_CNFMULTICASTRECEIVE,4,2 ; @HFA384X_RID_CNFMULTICASTRECEIVE
	.comm	_IW_POWER_ALL_R,4,2             ; @IW_POWER_ALL_R
	.comm	_IW_POWER_UNICAST_R,4,2         ; @IW_POWER_UNICAST_R
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_giwpower
.subsections_via_symbols
