	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ems_usb_set_bittiming
_ems_usb_set_bittiming:                 ## @ems_usb_set_bittiming
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	12(%rax), %eax
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movl	24(%rbx), %esi
	addl	%esi, %edx
	decl	%edx
	andl	$15, %edx
	movl	28(%rbx), %esi
	shll	$4, %esi
	addl	$112, %esi
	andl	$112, %esi
	leal	(%rsi,%rdx), %r8d
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	8(%rbx), %edi
	leal	128(%rsi,%rdx), %r15d
	cmovel	%r8d, %r15d
	decl	%eax
	andl	$63, %eax
	shll	$6, %ecx
	addl	$192, %ecx
	movzbl	%cl, %r12d
	orl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_netdev_info
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ems_usb_command_msg            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting BTR0=0x%02x BTR1=0x%02x\n"

	.no_dead_strip	_ems_usb_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ems_usb_set_bittiming
_ems_usb_set_bittiming:                 ; @ems_usb_set_bittiming
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldp	w8, w9, [x0, #16]
	ldp	w10, w11, [x0, #24]
	add	w9, w9, w10
	sub	w9, w9, #1
	lsl	w10, w11, #4
	add	w10, w10, #112
	and	w10, w10, #0x70
	bfxil	w10, w9, #0, #4
	ldp	w11, w9, [x0, #8]
Lloh0:
	adrp	x12, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh1:
	ldr	x12, [x12, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	orr	w13, w10, #0x80
	tst	w12, w11
	csel	w21, w10, w13, eq
	sub	w9, w9, #1
	lsl	w8, w8, #6
	add	w8, w8, #192
	and	w22, w8, #0xc0
	bfxil	w22, w9, #0, #6
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_netdev_info
	stp	w22, w21, [x20]
	mov	x0, x20
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ems_usb_command_msg
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting BTR0=0x%02x BTR1=0x%02x\n"

	.no_dead_strip	_ems_usb_set_bittiming
.subsections_via_symbols
