	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_set_bittiming
_pcan_usb_set_bittiming:                ## @pcan_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCAN_USB_CMD_ARGS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r12), %eax
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	addl	%edx, %ecx
	decl	%ecx
	andl	$15, %ecx
	movl	16(%r12), %edx
	shll	$4, %edx
	addl	$112, %edx
	andl	$112, %edx
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	4(%r14), %esi
	leal	(%rdx,%rcx), %esi
	leal	128(%rdx,%rcx), %r13d
	cmovel	%esi, %r13d
	movl	4(%r12), %ecx
	decl	%eax
	andl	$63, %eax
	shll	$6, %ecx
	addl	$192, %ecx
	movzbl	%cl, %ebx
	orl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_netdev_info
	movl	%r13d, (%r15)
	movl	%ebx, 4(%r15)
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movq	%r15, %rcx
	callq	_pcan_usb_send_cmd
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAN_USB_CMD_ARGS_LEN,4,2      ## @PCAN_USB_CMD_ARGS_LEN
	.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	_pcan_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 pcan_usb_set_bittiming
_pcan_usb_set_bittiming:                ; @pcan_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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _PCAN_USB_CMD_ARGS_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAN_USB_CMD_ARGS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldp	w8, w9, [x1]
	ldp	w10, w11, [x1, #8]
	add	w10, w10, w11
	sub	w10, w10, #1
	ldr	w11, [x1, #16]
	lsl	w11, w11, #4
	add	w11, w11, #112
	and	w11, w11, #0x70
Lloh8:
	adrp	x12, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh9:
	ldr	x12, [x12, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
	bfxil	w11, w10, #0, #4
Lloh10:
	ldr	w10, [x12]
	ldp	w0, w12, [x0]
	tst	w10, w12
	orr	w10, w11, #0x80
	csel	w21, w11, w10, eq
	sub	w8, w8, #1
	lsl	w9, w9, #6
	add	w9, w9, #192
	and	w22, w9, #0xc0
	bfxil	w22, w8, #0, #6
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x21
	bl	_netdev_info
	stp	w21, w22, [x20]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #2
	mov	x3, x20
	bl	_pcan_usb_send_cmd
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #32
	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
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAN_USB_CMD_ARGS_LEN,4,2      ; @PCAN_USB_CMD_ARGS_LEN
	.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	_pcan_usb_set_bittiming
.subsections_via_symbols
