	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hi3110_do_set_bittiming
_hi3110_do_set_bittiming:               ## @hi3110_do_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	24(%rax), %r14
	movq	_HI3110_WRITE_BTR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %eax
	decl	%eax
	movq	_HI3110_BTR0_SJW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	8(%rbx), %edx
	decl	%edx
	movq	_HI3110_BTR0_BRP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%r14, %rdi
	callq	_hi3110_write
	movq	_HI3110_WRITE_BTR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_HI3110_BTR1_SAMP_1PERBIT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_HI3110_BTR1_SAMP_3PERBIT@GOTPCREL(%rip), %rax
LBB0_3:
	movl	12(%rbx), %ecx
	movl	16(%rbx), %edx
	leal	(%rcx,%rdx), %edi
	decl	%edi
	movq	_HI3110_BTR1_TSEG1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	(%rax), %edi
	movl	20(%rbx), %edx
	decl	%edx
	movq	_HI3110_BTR1_TSEG2_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%edi, %edx
	movq	%r14, %rdi
	callq	_hi3110_write
	movq	_HI3110_READ_BTR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hi3110_read
	movl	%eax, %ebx
	movq	_HI3110_READ_BTR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hi3110_read
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HI3110_WRITE_BTR0,4,2          ## @HI3110_WRITE_BTR0
	.comm	_HI3110_BTR0_SJW_SHIFT,4,2      ## @HI3110_BTR0_SJW_SHIFT
	.comm	_HI3110_BTR0_BRP_SHIFT,4,2      ## @HI3110_BTR0_BRP_SHIFT
	.comm	_HI3110_WRITE_BTR1,4,2          ## @HI3110_WRITE_BTR1
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_HI3110_BTR1_SAMP_3PERBIT,4,2   ## @HI3110_BTR1_SAMP_3PERBIT
	.comm	_HI3110_BTR1_SAMP_1PERBIT,4,2   ## @HI3110_BTR1_SAMP_1PERBIT
	.comm	_HI3110_BTR1_TSEG1_SHIFT,4,2    ## @HI3110_BTR1_TSEG1_SHIFT
	.comm	_HI3110_BTR1_TSEG2_SHIFT,4,2    ## @HI3110_BTR1_TSEG2_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BT: 0x%02x 0x%02x\n"

	.comm	_HI3110_READ_BTR0,4,2           ## @HI3110_READ_BTR0
	.comm	_HI3110_READ_BTR1,4,2           ## @HI3110_READ_BTR1
	.no_dead_strip	_hi3110_do_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hi3110_do_set_bittiming
_hi3110_do_set_bittiming:               ; @hi3110_do_set_bittiming
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x8, _HI3110_WRITE_BTR0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HI3110_WRITE_BTR0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w8, w9, [x0, #4]
	sub	w8, w8, #1
Lloh3:
	adrp	x10, _HI3110_BTR0_SJW_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HI3110_BTR0_SJW_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	sub	w9, w9, #1
Lloh6:
	adrp	x10, _HI3110_BTR0_BRP_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HI3110_BTR0_BRP_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	mov	x0, x19
	bl	_hi3110_write
Lloh9:
	adrp	x8, _HI3110_WRITE_BTR1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HI3110_WRITE_BTR1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _HI3110_BTR1_SAMP_3PERBIT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HI3110_BTR1_SAMP_3PERBIT@GOTPAGEOFF]
Lloh17:
	adrp	x11, _HI3110_BTR1_SAMP_1PERBIT@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HI3110_BTR1_SAMP_1PERBIT@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #12]
	add	w9, w9, w10
	sub	w9, w9, #1
Lloh19:
	adrp	x10, _HI3110_BTR1_TSEG1_SHIFT@GOTPAGE
Lloh20:
	ldr	x10, [x10, _HI3110_BTR1_TSEG1_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	w9, [x20, #20]
	sub	w9, w9, #1
Lloh22:
	adrp	x10, _HI3110_BTR1_TSEG2_SHIFT@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HI3110_BTR1_TSEG2_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w2, w8, w9
	mov	x0, x19
	bl	_hi3110_write
Lloh25:
	adrp	x8, _HI3110_READ_BTR0@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HI3110_READ_BTR0@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hi3110_read
	mov	x20, x0
Lloh28:
	adrp	x8, _HI3110_READ_BTR1@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HI3110_READ_BTR1@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hi3110_read
	mov	x3, x0
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HI3110_WRITE_BTR0,4,2          ; @HI3110_WRITE_BTR0
	.comm	_HI3110_BTR0_SJW_SHIFT,4,2      ; @HI3110_BTR0_SJW_SHIFT
	.comm	_HI3110_BTR0_BRP_SHIFT,4,2      ; @HI3110_BTR0_BRP_SHIFT
	.comm	_HI3110_WRITE_BTR1,4,2          ; @HI3110_WRITE_BTR1
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_HI3110_BTR1_SAMP_3PERBIT,4,2   ; @HI3110_BTR1_SAMP_3PERBIT
	.comm	_HI3110_BTR1_SAMP_1PERBIT,4,2   ; @HI3110_BTR1_SAMP_1PERBIT
	.comm	_HI3110_BTR1_TSEG1_SHIFT,4,2    ; @HI3110_BTR1_TSEG1_SHIFT
	.comm	_HI3110_BTR1_TSEG2_SHIFT,4,2    ; @HI3110_BTR1_TSEG2_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BT: 0x%02x 0x%02x\n"

	.comm	_HI3110_READ_BTR0,4,2           ; @HI3110_READ_BTR0
	.comm	_HI3110_READ_BTR1,4,2           ; @HI3110_READ_BTR1
	.no_dead_strip	_hi3110_do_set_bittiming
.subsections_via_symbols
