	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_ioctl_setessid
_orinoco_ioctl_setessid:                ## @orinoco_ioctl_setessid
	.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	_ndev_priv
	movq	%rax, %r15
	movl	(%rbx), %eax
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_E2BIG@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_memcpy
LBB0_6:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_unlock
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	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
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_orinoco_ioctl_setessid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_ioctl_setessid
_orinoco_ioctl_setessid:                ; @orinoco_ioctl_setessid
	.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	x20, x3
	mov	x21, x2
	bl	_ndev_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]
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	add	x1, sp, #8
	bl	_orinoco_lock
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_memcpy
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_orinoco_unlock
Lloh7:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_orinoco_ioctl_setessid
.subsections_via_symbols
