	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_cfg80211_add_iface
_brcmf_cfg80211_add_iface:              ## @brcmf_cfg80211_add_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
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_wiphy_to_cfg
	movq	(%rax), %r12
	movq	_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_brcmf_dbg
	movq	%rbx, %rdi
	callq	_wiphy_to_cfg
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_brcmf_vif_add_validate
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_bphy_err
	movl	%r15d, %edi
	jmp	LBB0_9
LBB0_2:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	leal	-128(%r13), %eax
	cmpl	$10, %eax
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	ja	LBB0_10
## %bb.3:
	movl	$1477, %ecx                     ## imm = 0x5C5
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.7:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_4:
	movl	$56, %ecx
	btl	%eax, %ecx
	jae	LBB0_5
## %bb.11:
	movzbl	%dl, %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %ecx
	callq	_brcmf_p2p_add_vif
	jmp	LBB0_12
LBB0_5:
	cmpl	$9, %eax
	jne	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r8, %rdx
	callq	_brcmf_ap_add_vif
LBB0_12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_bphy_err
	jmp	LBB0_15
LBB0_14:
	callq	_brcmf_cfg80211_update_proto_addr_mode
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACE,4,2                      ## @TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter: %s type %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"iface validation failed: err=%d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"add iface %s type %d failed: err=%d\n"

	.no_dead_strip	_brcmf_cfg80211_add_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_add_iface
_brcmf_cfg80211_add_iface:              ; @brcmf_cfg80211_add_iface
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x21, x1
	mov	x23, x0
	bl	_wiphy_to_cfg
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _TRACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_brcmf_dbg
	mov	x0, x23
	bl	_wiphy_to_cfg
	mov	x1, x20
	bl	_brcmf_vif_add_validate
	cbz	w0, LBB0_2
; %bb.1:
	mov	x25, x0
	str	x25, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
	mov	x0, x25
	b	LBB0_6
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #10
	b.hi	LBB0_15
; %bb.3:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #1477
	tst	w9, w10
	b.eq	LBB0_7
; %bb.4:
Lloh7:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ERR_PTR
LBB0_7:
	tst	w9, #0x38
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	mov	x4, x22
	bl	_brcmf_p2p_add_vif
	b	LBB0_11
LBB0_9:
	cmp	w8, #9
	b.ne	LBB0_15
; %bb.10:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_brcmf_ap_add_vif
LBB0_11:
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x22
	bl	_PTR_ERR
	stp	x20, x0, [sp, #8]
	str	x21, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_bphy_err
	b	LBB0_14
LBB0_13:
	mov	x0, x22
	bl	_brcmf_cfg80211_update_proto_addr_mode
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACE,4,2                      ; @TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter: %s type %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"iface validation failed: err=%d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"add iface %s type %d failed: err=%d\n"

	.no_dead_strip	_brcmf_cfg80211_add_iface
.subsections_via_symbols
