	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_create_bsscfg
_brcmf_create_bsscfg:                   ## @brcmf_create_bsscfg
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r13
	movq	%rsi, %r14
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movq	%rax, %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	addq	$9, %rax
	cmpq	%r12, %rax
	jle	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	_brcmf_err
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r13, %rcx
	movq	%r12, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_brcmf_create_iovar             ## TAILCALL
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	1(%r15), %r12
	leaq	L_.str(%rip), %rsi
	movl	$7, %edx
	movq	%r13, %rdi
	callq	_memcpy
	leaq	7(%r13), %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_memcpy
	leaq	(%r15,%r13), %r14
	addq	$8, %r14
	movq	%rbx, %rdi
	callq	_cpu_to_le32
	movb	%al, -41(%rbp)
	leaq	-41(%rbp), %rsi
	movl	$1, %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	incq	%r14
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
LBB0_5:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bsscfg:"

L_.str.1:                               ## @.str.1
	.asciz	"buffer is too short\n"

	.no_dead_strip	_brcmf_create_bsscfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_create_bsscfg
_brcmf_create_bsscfg:                   ; @brcmf_create_bsscfg
	.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	x25, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x24, x1
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x24
	bl	_strlen
	add	x8, x19, x0
	add	x21, x8, #9
	cmp	x21, x25
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_brcmf_err
	mov	x21, #0
	b	LBB0_6
LBB0_3:
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, 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
	b	_brcmf_create_iovar
LBB0_4:
	add	x25, x0, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	w2, #7
	bl	_memcpy
	add	x23, x23, #7
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_memcpy
	add	x23, x23, x25
	mov	x0, x22
	bl	_cpu_to_le32
	strb	w0, [sp, #15]
	add	x1, sp, #15
	mov	x0, x23
	mov	w2, #1
	bl	_memcpy
	cbz	x19, LBB0_6
; %bb.5:
	add	x0, x23, #1
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
LBB0_6:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bsscfg:"

l_.str.1:                               ; @.str.1
	.asciz	"buffer is too short\n"

	.no_dead_strip	_brcmf_create_bsscfg
.subsections_via_symbols
