	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_set_power_mgmt
_brcmf_cfg80211_set_power_mgmt:         ## @brcmf_cfg80211_set_power_mgmt
	.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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	callq	_wiphy_to_cfg
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_TRACE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	%r13d, (%r14)
	movq	(%r15), %rdi
	callq	_check_vif_up
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_PM_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	%rbx, %r14
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_13
LBB0_3:
	movq	_PM_FAST@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_IFTYPE_P2P_CLIENT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.7:
	movq	%rbx, %r14
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_PM_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %r14
LBB0_8:
	movl	(%rax), %ebx
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_C_SET_PM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_brcmf_fil_cmd_int_set
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_bphy_err
LBB0_12:
	movl	%ebx, %r12d
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Device is not ready, storing the value in cfg_info struct\n"

	.comm	_PM_FAST,4,2                    ## @PM_FAST
	.comm	_PM_OFF,4,2                     ## @PM_OFF
	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ## @NL80211_IFTYPE_P2P_CLIENT
L_.str.2:                               ## @.str.2
	.asciz	"Do not enable power save for P2P clients\n"

L_.str.3:                               ## @.str.3
	.asciz	"power save %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"enabled"

L_.str.5:                               ## @.str.5
	.asciz	"disabled"

	.comm	_BRCMF_C_SET_PM,4,2             ## @BRCMF_C_SET_PM
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"net_device is not ready yet\n"

L_.str.7:                               ## @.str.7
	.asciz	"error (%d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_set_power_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_set_power_mgmt
_brcmf_cfg80211_set_power_mgmt:         ; @brcmf_cfg80211_set_power_mgmt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	bl	_wiphy_to_cfg
	mov	x22, x0
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x22, #8]
Lloh0:
	adrp	x23, _TRACE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TRACE@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	str	w21, [x22]
	ldr	x0, [x20]
	bl	_check_vif_up
	cbz	w0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x8, _PM_FAST@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PM_FAST@GOTPAGEOFF]
Lloh6:
	adrp	x24, _PM_OFF@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PM_OFF@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x24, x8, eq
	ldr	x9, [x20]
	ldr	x9, [x9]
Lloh8:
	adrp	x10, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	adrp	x22, _INFO@GOTPAGE
Lloh12:
	ldr	x22, [x22, _INFO@GOTPAGEOFF]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	ldr	w21, [x24]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x8, _INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	mov	w20, #0
	b	LBB0_10
LBB0_4:
	ldr	w21, [x8]
LBB0_5:
	ldr	w0, [x22]
Lloh20:
	adrp	x8, l_.str.4@PAGE
Lloh21:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh22:
	adrp	x9, l_.str.5@PAGE
Lloh23:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w21, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_brcmf_dbg
Lloh26:
	adrp	x8, _BRCMF_C_SET_PM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BRCMF_C_SET_PM@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_brcmf_fil_cmd_int_set
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.6:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w20, w8
	b.ne	LBB0_8
; %bb.7:
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_8:
	str	x20, [sp]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_bphy_err
LBB0_10:
	ldr	w0, [x23]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_brcmf_dbg
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Device is not ready, storing the value in cfg_info struct\n"

	.comm	_PM_FAST,4,2                    ; @PM_FAST
	.comm	_PM_OFF,4,2                     ; @PM_OFF
	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ; @NL80211_IFTYPE_P2P_CLIENT
l_.str.2:                               ; @.str.2
	.asciz	"Do not enable power save for P2P clients\n"

l_.str.3:                               ; @.str.3
	.asciz	"power save %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"enabled"

l_.str.5:                               ; @.str.5
	.asciz	"disabled"

	.comm	_BRCMF_C_SET_PM,4,2             ; @BRCMF_C_SET_PM
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"net_device is not ready yet\n"

l_.str.7:                               ; @.str.7
	.asciz	"error (%d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"Exit\n"

	.no_dead_strip	_brcmf_cfg80211_set_power_mgmt
.subsections_via_symbols
