	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1201_get_power
_zd1201_get_power:                      ## @zd1201_get_power
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_ZD1201_RID_CNFPMENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-22(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zd1201_getconfig16
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_ZD1201_RID_CNFPMEPS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-18(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zd1201_getconfig16
	testl	%eax, %eax
	jne	LBB0_12
## %bb.2:
	movq	_ZD1201_RID_CNFMAXSLEEPDURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zd1201_getconfig16
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movzwl	-22(%rbp), %ecx
	xorl	%eax, %eax
	testw	%cx, %cx
	sete	%al
	movl	%eax, (%r14)
	movl	4(%r14), %edx
	movq	_IW_POWER_TYPE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.4:
	movq	_IW_POWER_PERIOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movzwl	-20(%rbp), %esi
	testl	%edx, %eax
	je	LBB0_6
## %bb.5:
	movw	%si, 8(%r14)
	jmp	LBB0_7
LBB0_6:
	movswl	%si, %eax
	movswl	-18(%rbp), %edx
	imull	%eax, %edx
	leal	3(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	shrl	$2, %eax
	movw	%ax, 8(%r14)
	movq	_IW_POWER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	movl	%eax, 4(%r14)
	movl	%eax, %edx
LBB0_8:
	movq	_IW_POWER_MODE@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	testl	%edx, (%rsi)
	je	LBB0_12
## %bb.9:
	cmpw	$0, -18(%rbp)
	movq	_IW_POWER_ALL_R@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	je	LBB0_11
## %bb.10:
	movq	_IW_POWER_UNICAST_R@GOTPCREL(%rip), %rsi
LBB0_11:
	testw	%cx, %cx
	cmovneq	%rsi, %rdx
	movl	(%rdx), %ecx
	movl	%ecx, 4(%r14)
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZD1201_RID_CNFPMENABLED,4,2    ## @ZD1201_RID_CNFPMENABLED
	.comm	_ZD1201_RID_CNFPMEPS,4,2        ## @ZD1201_RID_CNFPMEPS
	.comm	_ZD1201_RID_CNFMAXSLEEPDURATION,4,2 ## @ZD1201_RID_CNFMAXSLEEPDURATION
	.comm	_IW_POWER_TYPE,4,2              ## @IW_POWER_TYPE
	.comm	_IW_POWER_PERIOD,4,2            ## @IW_POWER_PERIOD
	.comm	_IW_POWER_TIMEOUT,4,2           ## @IW_POWER_TIMEOUT
	.comm	_IW_POWER_MODE,4,2              ## @IW_POWER_MODE
	.comm	_IW_POWER_UNICAST_R,4,2         ## @IW_POWER_UNICAST_R
	.comm	_IW_POWER_ALL_R,4,2             ## @IW_POWER_ALL_R
	.no_dead_strip	_zd1201_get_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1201_get_power
_zd1201_get_power:                      ; @zd1201_get_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ZD1201_RID_CNFPMENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZD1201_RID_CNFPMENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #14
	bl	_zd1201_getconfig16
	cbnz	w0, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _ZD1201_RID_CNFPMEPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZD1201_RID_CNFPMEPS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_zd1201_getconfig16
	cbnz	w0, LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _ZD1201_RID_CNFMAXSLEEPDURATION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZD1201_RID_CNFMAXSLEEPDURATION@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #10
	mov	x0, x20
	bl	_zd1201_getconfig16
	cbnz	w0, LBB0_11
; %bb.3:
	ldrh	w8, [sp, #14]
	cmp	w8, #0
	cset	w9, eq
	str	w9, [x19]
	ldr	w9, [x19, #4]
Lloh9:
	adrp	x10, _IW_POWER_TYPE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IW_POWER_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.4:
Lloh12:
	adrp	x10, _IW_POWER_PERIOD@GOTPAGE
Lloh13:
	ldr	x10, [x10, _IW_POWER_PERIOD@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	ldrsh	w11, [sp, #10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	and	w9, w11, #0xffff
	strh	w9, [x19, #8]
	mov	x9, x10
	b	LBB0_7
LBB0_6:
	ldrsh	w9, [sp, #12]
	mul	w9, w9, w11
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	lsr	w9, w9, #2
	strh	w9, [x19, #8]
Lloh15:
	adrp	x9, _IW_POWER_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IW_POWER_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
LBB0_7:
	str	w9, [x19, #4]
LBB0_8:
Lloh18:
	adrp	x10, _IW_POWER_MODE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IW_POWER_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #0
	ldrh	w9, [sp, #12]
	cmp	w9, #0
Lloh21:
	adrp	x9, _IW_POWER_UNICAST_R@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IW_POWER_UNICAST_R@GOTPAGEOFF]
	ccmp	w8, #0, #4, ne
Lloh23:
	adrp	x8, _IW_POWER_ALL_R@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IW_POWER_ALL_R@GOTPAGEOFF]
	csel	x8, x9, x8, ne
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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 AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ZD1201_RID_CNFPMENABLED,4,2    ; @ZD1201_RID_CNFPMENABLED
	.comm	_ZD1201_RID_CNFPMEPS,4,2        ; @ZD1201_RID_CNFPMEPS
	.comm	_ZD1201_RID_CNFMAXSLEEPDURATION,4,2 ; @ZD1201_RID_CNFMAXSLEEPDURATION
	.comm	_IW_POWER_TYPE,4,2              ; @IW_POWER_TYPE
	.comm	_IW_POWER_PERIOD,4,2            ; @IW_POWER_PERIOD
	.comm	_IW_POWER_TIMEOUT,4,2           ; @IW_POWER_TIMEOUT
	.comm	_IW_POWER_MODE,4,2              ; @IW_POWER_MODE
	.comm	_IW_POWER_UNICAST_R,4,2         ; @IW_POWER_UNICAST_R
	.comm	_IW_POWER_ALL_R,4,2             ; @IW_POWER_ALL_R
	.no_dead_strip	_zd1201_get_power
.subsections_via_symbols
