	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_set_auth_type
_brcmf_set_auth_type:                   ## @brcmf_set_auth_type
	.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
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_ndev_to_prof
	movq	%rax, %r14
	movq	(%r13), %r15
	movl	(%r12), %edx
	movq	_CONN@GOTPCREL(%rip), %rax
	cmpl	$128, %edx
	je	LBB0_3
## %bb.1:
	cmpl	$129, %edx
	jne	LBB0_4
## %bb.2:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_brcmf_dbg
	jmp	LBB0_5
LBB0_3:
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$1, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_brcmf_dbg
	movl	$2, %ebx
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_brcmf_fil_bsscfg_int_set
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_bphy_err
	jmp	LBB0_8
LBB0_7:
	movl	(%r12), %eax
	movl	%eax, (%r14)
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONN,4,2                       ## @CONN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open system\n"

L_.str.1:                               ## @.str.1
	.asciz	"shared key\n"

L_.str.2:                               ## @.str.2
	.asciz	"automatic, auth type (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"auth"

L_.str.4:                               ## @.str.4
	.asciz	"set auth failed (%d)\n"

	.no_dead_strip	_brcmf_set_auth_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_set_auth_type
_brcmf_set_auth_type:                   ; @brcmf_set_auth_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x22, x0
	mov	x0, x20
	bl	_ndev_to_prof
	mov	x21, x0
	ldr	x20, [x22]
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _CONN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	w2, #0
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x8, _CONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_brcmf_dbg
	mov	w2, #1
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x9, _CONN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CONN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_brcmf_dbg
	mov	w2, #2
LBB0_5:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_brcmf_fil_bsscfg_int_set
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_bphy_err
	b	LBB0_8
LBB0_7:
	ldr	w8, [x19]
	str	w8, [x21]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CONN,4,2                       ; @CONN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open system\n"

l_.str.1:                               ; @.str.1
	.asciz	"shared key\n"

l_.str.2:                               ; @.str.2
	.asciz	"automatic, auth type (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"auth"

l_.str.4:                               ; @.str.4
	.asciz	"set auth failed (%d)\n"

	.no_dead_strip	_brcmf_set_auth_type
.subsections_via_symbols
