	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvaser_usb_leaf_set_bittiming
_kvaser_usb_leaf_set_bittiming:         ## @kvaser_usb_leaf_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r15
	movq	48(%rax), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_CMD_SET_BUS_PARAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_CMD_HEADER_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$4, %rax
	movq	%rax, (%rbx)
	movl	40(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	$255, 8(%rbx)
	movl	36(%r15), %edi
	callq	_cpu_to_le32
	movl	%eax, 36(%rbx)
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	16(%r15), %rax
	addq	24(%r15), %rax
	movq	%rax, 24(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 16(%rbx)
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%r15), %eax
	setne	%cl
	leal	(%rcx,%rcx), %eax
	incl	%eax
	movl	%eax, 12(%rbx)
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_kvaser_usb_send_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_SET_BUS_PARAMS,4,2         ## @CMD_SET_BUS_PARAMS
	.comm	_CMD_HEADER_LEN,8,3             ## @CMD_HEADER_LEN
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.no_dead_strip	_kvaser_usb_leaf_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvaser_usb_leaf_set_bittiming
_kvaser_usb_leaf_set_bittiming:         ; @kvaser_usb_leaf_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
	bl	_netdev_priv
	mov	x21, x0
	ldr	x19, [x0, #48]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _CMD_SET_BUS_PARAMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_SET_BUS_PARAMS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #48]
Lloh6:
	adrp	x8, _CMD_HEADER_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_HEADER_LEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x8, x8, #4
	str	x8, [x0]
	ldp	w0, w8, [x21, #36]
	str	w8, [x20, #40]
	mov	w8, #255
	str	w8, [x20, #8]
	bl	_cpu_to_le32
	ldr	w8, [x21, #32]
	stp	w8, w0, [x20, #32]
	ldp	x9, x8, [x21, #16]
	add	x8, x9, x8
	str	x8, [x20, #24]
	ldr	w8, [x21, #8]
	ldr	w9, [x21]
Lloh9:
	adrp	x10, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #3
	csinc	w9, w9, wzr, ne
	stp	w9, w8, [x20, #12]
	ldr	x2, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_kvaser_usb_send_cmd
	mov	x19, x0
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_SET_BUS_PARAMS,4,2         ; @CMD_SET_BUS_PARAMS
	.comm	_CMD_HEADER_LEN,8,3             ; @CMD_HEADER_LEN
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.no_dead_strip	_kvaser_usb_leaf_set_bittiming
.subsections_via_symbols
