	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_wext_siwpower
_cfg80211_wext_siwpower:                ## @cfg80211_wext_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	%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, %r15
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movl	16(%rbx), %edi
	callq	_wiphy_to_dev
	movq	8(%rbx), %rcx
	movq	_NL80211_IFTYPE_STATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.3:
	movq	(%rax), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_4
## %bb.5:
	movl	4(%rbx), %r14d
	xorl	%r12d, %r12d
	cmpq	$0, 8(%r15)
	je	LBB0_6
LBB0_10:
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_rdev_set_power_mgmt
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	%r12d, (%rbx)
	movl	%r14d, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movl	(%r15), %ecx
	testb	$-128, %cl
	je	LBB0_1
## %bb.7:
	movq	_IW_POWER_TIMEOUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%ecx, %esi
	testl	$-130, %esi
	je	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, %r12d
	testl	%ecx, %edx
	je	LBB0_10
## %bb.9:
	movslq	4(%r15), %rcx
	imulq	$274877907, %rcx, %r14          ## imm = 0x10624DD3
	movq	%r14, %rcx
	shrq	$63, %rcx
	sarq	$38, %r14
	addl	%ecx, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ## @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_IW_POWER_TIMEOUT,4,2           ## @IW_POWER_TIMEOUT
	.no_dead_strip	_cfg80211_wext_siwpower
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_wext_siwpower
_cfg80211_wext_siwpower:                ; @cfg80211_wext_siwpower
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x22, #16]
	bl	_wiphy_to_dev
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_STATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_STATION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w20, [x22, #4]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	w21, #0
LBB0_4:
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_rdev_set_power_mgmt
	cbnz	w0, LBB0_11
; %bb.5:
	stp	w21, w20, [x22]
	b	LBB0_11
LBB0_6:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x21]
	tbz	w8, #7, LBB0_9
; %bb.8:
Lloh5:
	adrp	x9, _IW_POWER_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IW_POWER_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	bic	w10, w8, w9
	mov	w11, #-130
	tst	w10, w11
	b.eq	LBB0_12
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldrsw	x8, [x21, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w20, w8, w9
LBB0_14:
	mov	w21, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_STATION,8,3     ; @NL80211_IFTYPE_STATION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_IW_POWER_TIMEOUT,4,2           ; @IW_POWER_TIMEOUT
	.no_dead_strip	_cfg80211_wext_siwpower
.subsections_via_symbols
