	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_set_nick
_prism54_set_nick:                      ## @prism54_set_nick
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movl	(%r15), %eax
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	callq	_down_write
	movl	4(%r12), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	4(%r12), %edi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_memcpy
	movq	%r12, %rdi
	callq	_up_write
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_prism54_set_nick
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_set_nick
_prism54_set_nick:                      ; @prism54_set_nick
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x3
	mov	x21, x2
	bl	_netdev_priv
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _E2BIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	bl	_down_write
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x20, #4]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_memcpy
	mov	x0, x20
	bl	_up_write
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_prism54_set_nick
.subsections_via_symbols
