	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_ioctl_getsens
_orinoco_ioctl_getsens:                 ## @orinoco_ioctl_getsens
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_ndev_priv
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	addq	$4, %rdi
	movq	_USER_BAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HERMES_RID_CNFSYSTEMSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-28(%rbp), %rcx
	callq	_hermes_read_wordrec
	movl	%eax, %ebx
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_unlock
	testl	%ebx, %ebx
	jne	LBB0_7
## %bb.6:
	movl	-28(%rbp), %eax
	movl	%eax, 8(%r14)
	movq	$0, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_USER_BAP,4,2                   ## @USER_BAP
	.comm	_HERMES_RID_CNFSYSTEMSCALE,4,2  ## @HERMES_RID_CNFSYSTEMSCALE
	.no_dead_strip	_orinoco_ioctl_getsens
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_ioctl_getsens
_orinoco_ioctl_getsens:                 ; @orinoco_ioctl_getsens
	.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	x19, x2
	bl	_ndev_priv
	mov	x21, x0
	ldr	w8, [x21], #4
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x1, sp
	bl	_orinoco_lock
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh4:
	adrp	x8, _USER_BAP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USER_BAP@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _HERMES_RID_CNFSYSTEMSCALE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HERMES_RID_CNFSYSTEMSCALE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x21
	bl	_hermes_read_wordrec
	mov	x21, x0
	mov	x1, sp
	mov	x0, x20
	bl	_orinoco_unlock
	cbnz	w21, LBB0_5
; %bb.7:
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	str	xzr, [x19]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_USER_BAP,4,2                   ; @USER_BAP
	.comm	_HERMES_RID_CNFSYSTEMSCALE,4,2  ; @HERMES_RID_CNFSYSTEMSCALE
	.no_dead_strip	_orinoco_ioctl_getsens
.subsections_via_symbols
