	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_change_iface
_brcmf_cfg80211_change_iface:           ## @brcmf_cfg80211_change_iface
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_wiphy_to_cfg
	movq	%rax, %rbx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rbx
	movq	_TRACE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	cmpl	$129, %r15d
	jne	LBB0_6
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$130, %rax
	je	LBB0_4
## %bb.2:
	movq	_NL80211_IFTYPE_P2P_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_NL80211_IFTYPE_P2P_DEVICE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	callq	_wiphy_to_cfg
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_brcmf_vif_change_validate
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	jmp	LBB0_21
LBB0_8:
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.9:
	xorl	%edx, %edx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_bphy_err
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_21
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_15:
	movl	$1, %edx
LBB0_16:
	movq	_BRCMF_C_SET_INFRA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_brcmf_fil_cmd_int_set
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_bphy_err
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_13:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movq	_BRCMF_FIL_P2P_IF_GO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcmf_p2p_ifchange
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_19
LBB0_14:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_19
LBB0_18:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcmf_is_ibssmode
	testq	%rax, %rax
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_19:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%r15d, (%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_brcmf_cfg80211_update_proto_addr_mode
LBB0_20:
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
LBB0_21:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enter, bsscfgidx=%d, type=%d\n"

	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ## @NL80211_IFTYPE_P2P_CLIENT
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ## @NL80211_IFTYPE_P2P_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"Ignoring cmd for p2p if\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.2:                               ## @.str.2
	.asciz	"iface validation failed: err=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"type (%d) : currently we do not support this type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INFO,4,2                       ## @INFO
L_.str.4:                               ## @.str.4
	.asciz	"IF Type = P2P GO\n"

	.comm	_BRCMF_FIL_P2P_IF_GO,4,2        ## @BRCMF_FIL_P2P_IF_GO
L_.str.5:                               ## @.str.5
	.asciz	"IF Type = AP\n"

	.comm	_BRCMF_C_SET_INFRA,4,2          ## @BRCMF_C_SET_INFRA
L_.str.6:                               ## @.str.6
	.asciz	"WLC_SET_INFRA error (%d)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.7:                               ## @.str.7
	.asciz	"IF Type = %s\n"

L_.str.8:                               ## @.str.8
	.asciz	"Adhoc"

L_.str.9:                               ## @.str.9
	.asciz	"Infra"

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

	.no_dead_strip	_brcmf_cfg80211_change_iface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_cfg80211_change_iface
_brcmf_cfg80211_change_iface:           ; @brcmf_cfg80211_change_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x25, x0
	bl	_wiphy_to_cfg
	mov	x23, x0
	mov	x0, x20
	bl	_netdev_priv
	mov	x24, x0
	ldr	x21, [x0, #8]
	ldr	x22, [x23, #8]
Lloh0:
	adrp	x26, _TRACE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _TRACE@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	w8, [x24]
	stp	x8, x19, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	cmp	w19, #129
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x21]
Lloh4:
	adrp	x9, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NL80211_IFTYPE_P2P_CLIENT@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NL80211_IFTYPE_P2P_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, #130
	ccmp	x8, x9, #4, ne
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x26]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	ldr	x8, [x23]
	cbnz	x8, LBB0_9
; %bb.3:
	mov	w25, #0
	b	LBB0_21
LBB0_4:
	mov	x0, x25
	bl	_wiphy_to_cfg
	mov	x1, x21
	mov	x2, x19
	bl	_brcmf_vif_change_validate
	cbz	w0, LBB0_6
; %bb.5:
	mov	x25, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x2, x25
	bl	_bphy_err
	b	LBB0_21
LBB0_6:
	sub	w8, w19, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.7:
	mov	w2, #0
Lloh14:
	adrp	x9, lJTI0_0@PAGE
Lloh15:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	bl	_bphy_err
LBB0_9:
Lloh18:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_21
LBB0_10:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	w2, #1
LBB0_12:
Lloh23:
	adrp	x8, _BRCMF_C_SET_INFRA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BRCMF_C_SET_INFRA@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_brcmf_fil_cmd_int_set
	cbz	w0, LBB0_17
; %bb.13:
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x22
	bl	_bphy_err
Lloh28:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_20
LBB0_15:
Lloh30:
	adrp	x8, _INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_brcmf_dbg
Lloh35:
	adrp	x8, _BRCMF_FIL_P2P_IF_GO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BRCMF_FIL_P2P_IF_GO@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_brcmf_p2p_ifchange
	mov	x25, x0
	cbnz	w0, LBB0_19
LBB0_16:
Lloh38:
	adrp	x8, _INFO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_17:
Lloh43:
	adrp	x8, _INFO@GOTPAGE
Lloh44:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh45:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_brcmf_is_ibssmode
Lloh46:
	adrp	x8, l_.str.8@PAGE
Lloh47:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh48:
	adrp	x9, l_.str.9@PAGE
Lloh49:
	add	x9, x9, l_.str.9@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh50:
	adrp	x1, l_.str.7@PAGE
Lloh51:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
LBB0_18:
	bl	_brcmf_dbg
	mov	w25, #0
LBB0_19:
	ldr	x8, [x20]
	str	w19, [x8]
	mov	x0, x21
	bl	_brcmf_cfg80211_update_proto_addr_mode
LBB0_20:
	ldr	w0, [x26]
Lloh52:
	adrp	x1, l_.str.10@PAGE
Lloh53:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_brcmf_dbg
LBB0_21:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enter, bsscfgidx=%d, type=%d\n"

	.comm	_NL80211_IFTYPE_P2P_CLIENT,8,3  ; @NL80211_IFTYPE_P2P_CLIENT
	.comm	_NL80211_IFTYPE_P2P_DEVICE,8,3  ; @NL80211_IFTYPE_P2P_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"Ignoring cmd for p2p if\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.2:                               ; @.str.2
	.asciz	"iface validation failed: err=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"type (%d) : currently we do not support this type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INFO,4,2                       ; @INFO
l_.str.4:                               ; @.str.4
	.asciz	"IF Type = P2P GO\n"

	.comm	_BRCMF_FIL_P2P_IF_GO,4,2        ; @BRCMF_FIL_P2P_IF_GO
l_.str.5:                               ; @.str.5
	.asciz	"IF Type = AP\n"

	.comm	_BRCMF_C_SET_INFRA,4,2          ; @BRCMF_C_SET_INFRA
l_.str.6:                               ; @.str.6
	.asciz	"WLC_SET_INFRA error (%d)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.7:                               ; @.str.7
	.asciz	"IF Type = %s\n"

l_.str.8:                               ; @.str.8
	.asciz	"Adhoc"

l_.str.9:                               ; @.str.9
	.asciz	"Infra"

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

	.no_dead_strip	_brcmf_cfg80211_change_iface
.subsections_via_symbols
