	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nl80211_set_power_save
_nl80211_set_power_save:                ## @nl80211_set_power_save
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_NL80211_ATTR_PS_STATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movq	8(%rsi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r14
	callq	_nla_get_u32
	movq	_NL80211_PS_DISABLED@GOTPCREL(%rip), %rdx
	movq	_NL80211_PS_ENABLED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rcx, %rax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_6
## %bb.7:
	movq	8(%r14), %r12
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	sete	%bl
	xorl	%eax, %eax
	cmpl	%ebx, (%r12)
	je	LBB0_10
## %bb.8:
	movl	4(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_rdev_set_power_mgmt
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_PS_STATE,8,3      ## @NL80211_ATTR_PS_STATE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_PS_DISABLED,8,3        ## @NL80211_PS_DISABLED
	.comm	_NL80211_PS_ENABLED,8,3         ## @NL80211_PS_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_nl80211_set_power_save
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nl80211_set_power_save
_nl80211_set_power_save:                ; @nl80211_set_power_save
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NL80211_ATTR_PS_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_PS_STATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x1, #8]
	ldp	x19, x20, [x8]
	bl	_nla_get_u32
Lloh3:
	adrp	x8, _NL80211_PS_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL80211_PS_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x8]
Lloh6:
	adrp	x8, _NL80211_PS_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NL80211_PS_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x9
	ccmp	x0, x8, #4, ne
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x19]
	ldr	w9, [x9]
	cbz	w9, LBB0_8
; %bb.3:
	ldr	x22, [x20, #8]
	cmp	x0, x8
	cset	w21, eq
	ldr	w8, [x22]
	cmp	w8, w21
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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_8:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_9:
	ldr	w3, [x22, #4]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_rdev_set_power_mgmt
	cbnz	w0, LBB0_7
; %bb.10:
	str	w21, [x22]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_PS_STATE,8,3      ; @NL80211_ATTR_PS_STATE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_PS_DISABLED,8,3        ; @NL80211_PS_DISABLED
	.comm	_NL80211_PS_ENABLED,8,3         ; @NL80211_PS_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_nl80211_set_power_save
.subsections_via_symbols
