	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function orinoco_ioctl_setrate
_orinoco_ioctl_setrate:                 ## @orinoco_ioctl_setrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	callq	_ndev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.1:
	imull	$197912093, %eax, %ecx          ## imm = 0xBCBE61D
	addl	$687168, %ecx                   ## imm = 0xA7C40
	rorl	$5, %ecx
	cmpl	$42948, %ecx                    ## imm = 0xA7C4
	ja	LBB0_8
## %bb.4:
	cltq
	imulq	$351843721, %rax, %rdi          ## imm = 0x14F8B589
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$45, %rdi
	addl	%eax, %edi
	jmp	LBB0_5
LBB0_3:
	movl	$110, %edi
LBB0_5:
	xorl	%esi, %esi
	cmpl	$0, 4(%rbx)
	sete	%sil
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_orinoco_get_bitratemode
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_orinoco_lock
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_9:
	movl	%ebx, (%r14)
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	callq	_orinoco_unlock
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.no_dead_strip	_orinoco_ioctl_setrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function orinoco_ioctl_setrate
_orinoco_ioctl_setrate:                 ; @orinoco_ioctl_setrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	bl	_ndev_priv
	mov	x19, x0
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #45
	add	w0, w9, w10
	mov	w9, #34464
	movk	w9, #1, lsl #16
	msub	w8, w0, w9, w8
	cbnz	w8, LBB0_6
	b	LBB0_3
LBB0_2:
	mov	w0, #110
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, #0
	cset	w1, eq
	bl	_orinoco_get_bitratemode
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_orinoco_lock
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	str	w20, [x19]
	add	x1, sp, #8
	mov	x0, x19
	bl	_orinoco_unlock
Lloh4:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.no_dead_strip	_orinoco_ioctl_setrate
.subsections_via_symbols
