	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_get_essid           ## -- Begin function orinoco_hw_get_essid
	.p2align	4, 0x90
_orinoco_hw_get_essid:                  ## @orinoco_hw_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	-56(%rbp), %rsi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_2:
	leaq	8(%r15), %r12
	movl	4(%r15), %edi
	callq	_strlen
	testq	%rax, %rax
	jle	LBB0_7
## %bb.3:
	movl	$1, (%rbx)
	cmpl	$3, (%r15)
	jne	LBB0_4
## %bb.5:
	movq	_HERMES_RID_CNFOWNSSID@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movl	$0, (%rbx)
	movq	(%r12), %rax
	movq	_USER_BAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HERMES_RID_CURRENTSSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	jmp	LBB0_8
LBB0_4:
	movq	_HERMES_RID_CNFDESIREDSSID@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	8(%r15), %rax
	movq	_USER_BAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_8:
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movl	$8, %ecx
	xorl	%r8d, %r8d
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %r12
	movl	-48(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	_IW_ESSID_MAX_SIZE@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpl	(%r13), %eax
	setg	%dil
	callq	_BUG_ON
	movl	(%r13), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_unlock
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ## @IW_ESSID_MAX_SIZE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_HERMES_RID_CNFOWNSSID,4,2      ## @HERMES_RID_CNFOWNSSID
	.comm	_HERMES_RID_CNFDESIREDSSID,4,2  ## @HERMES_RID_CNFDESIREDSSID
	.comm	_USER_BAP,4,2                   ## @USER_BAP
	.comm	_HERMES_RID_CURRENTSSID,4,2     ## @HERMES_RID_CURRENTSSID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_orinoco_hw_get_essid           ; -- Begin function orinoco_hw_get_essid
	.p2align	2
_orinoco_hw_get_essid:                  ; @orinoco_hw_get_essid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	mov	x1, sp
	bl	_orinoco_lock
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_2:
	add	x21, x19, #8
	ldr	w0, [x19, #4]
	bl	_strlen
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x22]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _HERMES_RID_CNFOWNSSID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HERMES_RID_CNFOWNSSID@GOTPAGEOFF]
Lloh5:
	adrp	x10, _HERMES_RID_CNFDESIREDSSID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HERMES_RID_CNFDESIREDSSID@GOTPAGEOFF]
	cmp	w8, #3
	csel	x8, x9, x10, eq
	ldr	w2, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _USER_BAP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USER_BAP@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	b	LBB0_5
LBB0_4:
	str	wzr, [x22]
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _USER_BAP@GOTPAGE
Lloh11:
	ldr	x9, [x9, _USER_BAP@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
Lloh13:
	adrp	x9, _HERMES_RID_CURRENTSSID@GOTPAGE
Lloh14:
	ldr	x9, [x9, _HERMES_RID_CURRENTSSID@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x9]
LBB0_5:
	add	x5, sp, #8
	mov	x0, x21
	mov	w3, #8
	mov	x4, #0
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	add	x8, sp, #8
	orr	x22, x8, #0x4
	ldr	w0, [sp, #8]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh16:
	adrp	x23, _IW_ESSID_MAX_SIZE@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IW_ESSID_MAX_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	cset	w0, gt
	bl	_BUG_ON
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
LBB0_7:
	mov	x1, sp
	mov	x0, x19
	bl	_orinoco_unlock
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_ESSID_MAX_SIZE,4,2          ; @IW_ESSID_MAX_SIZE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_HERMES_RID_CNFOWNSSID,4,2      ; @HERMES_RID_CNFOWNSSID
	.comm	_HERMES_RID_CNFDESIREDSSID,4,2  ; @HERMES_RID_CNFDESIREDSSID
	.comm	_USER_BAP,4,2                   ; @USER_BAP
	.comm	_HERMES_RID_CURRENTSSID,4,2     ; @HERMES_RID_CURRENTSSID
.subsections_via_symbols
