	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_ioctl_siwpower
_prism2_ioctl_siwpower:                 ## @prism2_ioctl_siwpower
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpq	$0, 8(%rdx)
	je	LBB0_1
## %bb.18:
	movq	_HFA384X_RID_CNFPMENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hostap_set_word                ## TAILCALL
LBB0_1:
	movq	%rdx, %rbx
	movq	_IW_POWER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdx), %eax
	cmpl	$130, %eax
	je	LBB0_15
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.4:
	movq	_HFA384X_RID_CNFMULTICASTRECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_15:
	movq	_HFA384X_RID_CNFMULTICASTRECEIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
LBB0_5:
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	_HFA384X_RID_CNFPMENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
LBB0_7:
	movl	(%rbx), %eax
	movq	_IW_POWER_TIMEOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movq	_HFA384X_RID_CNFPMENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	_HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	movq	%r14, %rdi
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
## %bb.10:
	movl	(%rbx), %eax
LBB0_11:
	movq	_IW_POWER_PERIOD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_HFA384X_RID_CNFPMENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	_HFA384X_RID_CNFMAXSLEEPDURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	movq	%r14, %rdi
	callq	_hostap_set_word
	testl	%eax, %eax
	jne	LBB0_17
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFA384X_RID_CNFPMENABLED,4,2   ## @HFA384X_RID_CNFPMENABLED
	.comm	_IW_POWER_MODE,4,2              ## @IW_POWER_MODE
	.comm	_HFA384X_RID_CNFMULTICASTRECEIVE,4,2 ## @HFA384X_RID_CNFMULTICASTRECEIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_POWER_TIMEOUT,4,2           ## @IW_POWER_TIMEOUT
	.comm	_HFA384X_RID_CNFPMHOLDOVERDURATION,4,2 ## @HFA384X_RID_CNFPMHOLDOVERDURATION
	.comm	_IW_POWER_PERIOD,4,2            ## @IW_POWER_PERIOD
	.comm	_HFA384X_RID_CNFMAXSLEEPDURATION,4,2 ## @HFA384X_RID_CNFMAXSLEEPDURATION
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_siwpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_ioctl_siwpower
_prism2_ioctl_siwpower:                 ; @prism2_ioctl_siwpower
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _HFA384X_RID_CNFPMENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HFA384X_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hostap_set_word
LBB0_2:
	mov	x20, x2
	ldr	w8, [x2]
Lloh3:
	adrp	x9, _IW_POWER_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_POWER_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_16
; %bb.5:
Lloh6:
	adrp	x8, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HFA384X_RID_CNFMULTICASTRECEIVE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
LBB0_7:
Lloh12:
	adrp	x8, _HFA384X_RID_CNFPMENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HFA384X_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
LBB0_8:
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _IW_POWER_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IW_POWER_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
Lloh18:
	adrp	x8, _HFA384X_RID_CNFPMENABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HFA384X_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
; %bb.10:
Lloh21:
	adrp	x8, _HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HFA384X_RID_CNFPMHOLDOVERDURATION@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #10
	mov	x0, x19
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	w8, [x20]
LBB0_12:
Lloh24:
	adrp	x9, _IW_POWER_PERIOD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IW_POWER_PERIOD@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.13:
Lloh27:
	adrp	x8, _HFA384X_RID_CNFPMENABLED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HFA384X_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
; %bb.14:
Lloh30:
	adrp	x8, _HFA384X_RID_CNFMAXSLEEPDURATION@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HFA384X_RID_CNFMAXSLEEPDURATION@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w8, [x20, #4]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w2, w8, #10
	mov	x0, x19
	bl	_hostap_set_word
	cbnz	w0, LBB0_17
LBB0_15:
	mov	w0, #0
	b	LBB0_17
LBB0_16:
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HFA384X_RID_CNFPMENABLED,4,2   ; @HFA384X_RID_CNFPMENABLED
	.comm	_IW_POWER_MODE,4,2              ; @IW_POWER_MODE
	.comm	_HFA384X_RID_CNFMULTICASTRECEIVE,4,2 ; @HFA384X_RID_CNFMULTICASTRECEIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_POWER_TIMEOUT,4,2           ; @IW_POWER_TIMEOUT
	.comm	_HFA384X_RID_CNFPMHOLDOVERDURATION,4,2 ; @HFA384X_RID_CNFPMHOLDOVERDURATION
	.comm	_IW_POWER_PERIOD,4,2            ; @IW_POWER_PERIOD
	.comm	_HFA384X_RID_CNFMAXSLEEPDURATION,4,2 ; @HFA384X_RID_CNFMAXSLEEPDURATION
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_prism2_ioctl_siwpower
.subsections_via_symbols
