	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_ioctl_getessid
_orinoco_ioctl_getessid:                ## @orinoco_ioctl_getessid
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_ndev_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_orinoco_hw_get_essid
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, (%r14)
	jmp	LBB0_6
LBB0_3:
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_5:
	movl	(%r12), %esi
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_memcpy
	movl	(%r12), %edi
	callq	_strlen
	movl	%eax, (%r14)
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_orinoco_unlock
LBB0_6:
	movl	$1, 4(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.no_dead_strip	_orinoco_ioctl_getessid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_ioctl_getessid
_orinoco_ioctl_getessid:                ; @orinoco_ioctl_getessid
	.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	x21, x3
	mov	x19, x2
	mov	x22, x0
	bl	_ndev_priv
	mov	x20, x0
	mov	x0, x22
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_orinoco_hw_get_essid
	tbnz	w0, #31, LBB0_7
; %bb.2:
	str	w0, [x19]
	b	LBB0_6
LBB0_3:
	mov	x1, sp
	mov	x0, x20
	bl	_orinoco_lock
	cbz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_memcpy
	ldr	w0, [x20]
	bl	_strlen
	str	w0, [x19]
	mov	x1, sp
	mov	x0, x20
	bl	_orinoco_unlock
LBB0_6:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_7:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.no_dead_strip	_orinoco_ioctl_getessid
.subsections_via_symbols
