	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_set_essid
_atmel_set_essid:                       ## @atmel_set_essid
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_IW_ENCODE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, (%r15)
	movl	4(%rbx), %edx
	movq	_MAX_SSID_LENGTH@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jle	LBB0_4
## %bb.3:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	movl	$1, (%r15)
	jmp	LBB0_7
LBB0_4:
	andl	%eax, %ecx
	cmpl	$1, %ecx
	jne	LBB0_5
## %bb.6:
	movl	8(%r15), %edi
	movq	%r14, %rsi
	callq	_memcpy
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15)
LBB0_7:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ## @IW_ENCODE_INDEX
	.comm	_MAX_SSID_LENGTH,4,2            ## @MAX_SSID_LENGTH
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_atmel_set_essid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_set_essid
_atmel_set_essid:                       ; @atmel_set_essid
	.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	x21, x3
	mov	x19, x2
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _IW_ENCODE_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_ENCODE_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	wzr, [x20]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x10, _MAX_SSID_LENGTH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_SSID_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w2, w10
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _E2BIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_6
LBB0_4:
	and	w8, w9, w8
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x20, #8]
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x19, #4]
	str	w8, [x20, #4]
LBB0_6:
Lloh8:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ENCODE_INDEX,4,2            ; @IW_ENCODE_INDEX
	.comm	_MAX_SSID_LENGTH,4,2            ; @MAX_SSID_LENGTH
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_atmel_set_essid
.subsections_via_symbols
