	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcan_usb_write_mode
_pcan_usb_write_mode:                   ## @pcan_usb_write_mode
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_pcan_usb_set_bus
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	_PCAN_USB_STARTUP_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_SJA1000_MODE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pcan_usb_set_sja1000           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA1000_MODE_INIT,4,2          ## @SJA1000_MODE_INIT
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_PCAN_USB_STARTUP_TIMEOUT,4,2   ## @PCAN_USB_STARTUP_TIMEOUT
	.no_dead_strip	_pcan_usb_write_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcan_usb_write_mode
_pcan_usb_write_mode:                   ; @pcan_usb_write_mode
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_pcan_usb_set_bus
	cbnz	w0, LBB0_3
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_set_current_state
Lloh3:
	adrp	x8, _PCAN_USB_STARTUP_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAN_USB_STARTUP_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	bl	_schedule_timeout
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x8, _SJA1000_MODE_INIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SJA1000_MODE_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pcan_usb_set_sja1000
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA1000_MODE_INIT,4,2          ; @SJA1000_MODE_INIT
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_PCAN_USB_STARTUP_TIMEOUT,4,2   ; @PCAN_USB_STARTUP_TIMEOUT
	.no_dead_strip	_pcan_usb_write_mode
.subsections_via_symbols
