	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function esd_usb2_set_bittiming
_esd_usb2_set_bittiming:                ## @esd_usb2_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_ESD_USB2_UBR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_LOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movl	16(%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_BRP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	_USB_CANUSBM_PRODUCT_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	_ESD_USBM_SJW_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_SJW_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movl	12(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_SJW_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movq	_ESD_USB2_TSEG1_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ESD_USB2_TSEG1_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_TSEG2_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ESD_USB2_TSEG2_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movq	_ESD_USB2_3_SAMPLES@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%rbx), %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	28(%rbx), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	32(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movl	-92(%rbp), %r8d                 ## 4-byte Reload
	andl	-48(%rbp), %r8d                 ## 4-byte Folded Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	andl	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	cmovel	%ecx, %eax
	orl	-76(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	decl	%ecx
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	decl	%esi
	andl	%ecx, %esi
	orl	%eax, %esi
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	movl	-100(%rbp), %edx                ## 4-byte Reload
	decl	%edx
	andl	%eax, %edx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	cmpq	%rax, -136(%rbp)                ## 8-byte Folded Reload
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmovel	-64(%rbp), %ecx                 ## 4-byte Folded Reload
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	addl	%edi, %eax
	decl	%eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	decl	%r13d
	andl	%eax, %r13d
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	orl	%esi, %r13d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	decl	%eax
	decl	%r14d
	andl	%eax, %r14d
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	orl	%r13d, %r14d
	testl	%r8d, %r8d
	cmovel	%r8d, %r12d
	orl	%r14d, %r12d
	orl	%edx, %r12d
	movl	$2, 24(%r15)
	movq	_CMD_SETBAUD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	8(%rbx), %eax
	movl	%eax, 16(%r15)
	movq	$0, 8(%r15)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r15)
	leaq	L_.str(%rip), %rsi
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movl	%r12d, %edx
	callq	_netdev_info
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_esd_usb2_send_msg
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESD_USB2_UBR,4,2               ## @ESD_USB2_UBR
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_ESD_USB2_LOM,4,2               ## @ESD_USB2_LOM
	.comm	_ESD_USB2_BRP_MAX,4,2           ## @ESD_USB2_BRP_MAX
	.comm	_USB_CANUSBM_PRODUCT_ID,8,3     ## @USB_CANUSBM_PRODUCT_ID
	.comm	_ESD_USBM_SJW_SHIFT,4,2         ## @ESD_USBM_SJW_SHIFT
	.comm	_ESD_USB2_SJW_SHIFT,4,2         ## @ESD_USB2_SJW_SHIFT
	.comm	_ESD_USB2_SJW_MAX,4,2           ## @ESD_USB2_SJW_MAX
	.comm	_ESD_USB2_TSEG1_MAX,4,2         ## @ESD_USB2_TSEG1_MAX
	.comm	_ESD_USB2_TSEG1_SHIFT,4,2       ## @ESD_USB2_TSEG1_SHIFT
	.comm	_ESD_USB2_TSEG2_MAX,4,2         ## @ESD_USB2_TSEG2_MAX
	.comm	_ESD_USB2_TSEG2_SHIFT,4,2       ## @ESD_USB2_TSEG2_SHIFT
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_ESD_USB2_3_SAMPLES,4,2         ## @ESD_USB2_3_SAMPLES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_SETBAUD,4,2                ## @CMD_SETBAUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting BTR=%#x\n"

	.no_dead_strip	_esd_usb2_set_bittiming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function esd_usb2_set_bittiming
_esd_usb2_set_bittiming:                ; @esd_usb2_set_bittiming
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ESD_USB2_UBR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESD_USB2_UBR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #68]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #60]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _ESD_USB2_LOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESD_USB2_LOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #56]                   ; 4-byte Folded Spill
	ldr	w8, [x0, #12]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
	ldr	w8, [x0, #16]
	str	w8, [sp, #64]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _ESD_USB2_BRP_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ESD_USB2_BRP_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_le16_to_cpu
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _USB_CANUSBM_PRODUCT_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_CANUSBM_PRODUCT_ID@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh15:
	adrp	x8, _ESD_USBM_SJW_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ESD_USBM_SJW_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
Lloh18:
	adrp	x8, _ESD_USB2_SJW_SHIFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ESD_USB2_SJW_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh21:
	adrp	x8, _ESD_USB2_SJW_MAX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ESD_USB2_SJW_MAX@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
	ldp	w28, w8, [x20, #20]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh24:
	adrp	x8, _ESD_USB2_TSEG1_MAX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ESD_USB2_TSEG1_MAX@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
Lloh27:
	adrp	x8, _ESD_USB2_TSEG1_SHIFT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ESD_USB2_TSEG1_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w23, [x8]
	ldp	w27, w8, [x20, #28]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh30:
	adrp	x8, _ESD_USB2_TSEG2_MAX@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ESD_USB2_TSEG2_MAX@GOTPAGEOFF]
Lloh32:
	adrp	x9, _ESD_USB2_TSEG2_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ESD_USB2_TSEG2_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
Lloh35:
	ldr	w19, [x9]
	ldr	w8, [x20, #12]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
Lloh36:
	adrp	x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh38:
	ldr	w24, [x8]
Lloh39:
	adrp	x8, _ESD_USB2_3_SAMPLES@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ESD_USB2_3_SAMPLES@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	str	w8, [sp, #32]                   ; 4-byte Folded Spill
Lloh42:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	tst	w8, w9
	ldp	w10, w8, [sp, #52]              ; 8-byte Folded Reload
	csel	w8, wzr, w8, eq
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	orr	w8, w8, w9
	ldr	w9, [sp, #64]                   ; 4-byte Folded Reload
	sub	w9, w9, #1
	sub	w10, w10, #1
	and	w9, w10, w9
	orr	w8, w8, w9
	sub	w9, w28, #1
	sub	w10, w26, #1
	and	w9, w10, w9
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	cmp	x10, x11
	ldp	w11, w10, [sp, #16]             ; 8-byte Folded Reload
	csel	w10, w10, w11, eq
	lsl	w9, w9, w10
	orr	w8, w8, w9
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w9, w9, w27
	sub	w9, w9, #1
	sub	w10, w22, #1
	and	w9, w10, w9
	lsl	w9, w9, w23
	orr	w8, w8, w9
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	sub	w9, w9, #1
	sub	w10, w25, #1
	and	w9, w10, w9
	lsl	w9, w9, w19
	orr	w8, w8, w9
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	tst	w24, w9
	mov	w9, #2
Lloh45:
	adrp	x10, _CMD_SETBAUD@GOTPAGE
Lloh46:
	ldr	x10, [x10, _CMD_SETBAUD@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	stp	w9, w10, [x0, #24]
	ldr	w9, [x20, #8]
	ldr	w10, [sp, #32]                  ; 4-byte Folded Reload
	csel	w10, wzr, w10, eq
	orr	w22, w8, w10
	str	w9, [x0, #16]
	str	xzr, [x0, #8]
	mov	x0, x22
	bl	_cpu_to_le32
	str	w0, [x21]
Lloh48:
	adrp	x1, l_.str@PAGE
Lloh49:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp, #72]                   ; 8-byte Folded Reload
	mov	x2, x22
	bl	_netdev_info
	ldr	x0, [x20]
	mov	x1, x21
	bl	_esd_usb2_send_msg
	mov	x19, x0
	mov	x0, x21
	bl	_kfree
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_ESD_USB2_UBR,4,2               ; @ESD_USB2_UBR
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_ESD_USB2_LOM,4,2               ; @ESD_USB2_LOM
	.comm	_ESD_USB2_BRP_MAX,4,2           ; @ESD_USB2_BRP_MAX
	.comm	_USB_CANUSBM_PRODUCT_ID,8,3     ; @USB_CANUSBM_PRODUCT_ID
	.comm	_ESD_USBM_SJW_SHIFT,4,2         ; @ESD_USBM_SJW_SHIFT
	.comm	_ESD_USB2_SJW_SHIFT,4,2         ; @ESD_USB2_SJW_SHIFT
	.comm	_ESD_USB2_SJW_MAX,4,2           ; @ESD_USB2_SJW_MAX
	.comm	_ESD_USB2_TSEG1_MAX,4,2         ; @ESD_USB2_TSEG1_MAX
	.comm	_ESD_USB2_TSEG1_SHIFT,4,2       ; @ESD_USB2_TSEG1_SHIFT
	.comm	_ESD_USB2_TSEG2_MAX,4,2         ; @ESD_USB2_TSEG2_MAX
	.comm	_ESD_USB2_TSEG2_SHIFT,4,2       ; @ESD_USB2_TSEG2_SHIFT
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_ESD_USB2_3_SAMPLES,4,2         ; @ESD_USB2_3_SAMPLES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_SETBAUD,4,2                ; @CMD_SETBAUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting BTR=%#x\n"

	.no_dead_strip	_esd_usb2_set_bittiming
.subsections_via_symbols
