	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_ioctl_getrate
_orinoco_ioctl_getrate:                 ## @orinoco_ioctl_getrate
	.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
	movq	%rdi, %rbx
	callq	_ndev_priv
	movq	%rax, %r15
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movl	(%r15), %edi
	leaq	-28(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_orinoco_get_ratemode_cfg
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_hw_get_act_bitrate
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_orinoco_unlock
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	sete	%al
	movl	%eax, 4(%r14)
	movq	$0, 8(%r14)
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_orinoco_ioctl_getrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_ioctl_getrate
_orinoco_ioctl_getrate:                 ; @orinoco_ioctl_getrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x0
	bl	_ndev_priv
	mov	x20, x0
	add	x1, sp, #16
	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	w0, w8
	b	LBB0_6
LBB0_2:
	ldr	w0, [x20]
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_orinoco_get_ratemode_cfg
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_5
; %bb.3:
	add	x1, sp, #12
	mov	x0, x20
	bl	_orinoco_hw_get_act_bitrate
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [sp, #28]
LBB0_5:
	add	x1, sp, #16
	mov	x0, x20
	bl	_orinoco_unlock
	mov	w0, #0
	ldp	w9, w8, [sp, #24]
	cmp	w9, #0
	cset	w9, eq
	stp	w8, w9, [x19]
	str	xzr, [x19, #8]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_orinoco_ioctl_getrate
.subsections_via_symbols
