	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_8dev_cmd_open
_usb_8dev_cmd_open:                     ## @usb_8dev_cmd_open
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r15d
	movq	_USB_8DEV_STATUS_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_USB_8DEV_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_USB_8DEV_BAUD_MANUAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	32(%rbx), %rax
	addq	40(%rbx), %rax
	movq	-56(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	24(%rbx), %rax
	movq	%rax, 8(%rcx)
	movq	16(%rbx), %rax
	movq	%rax, 16(%rcx)
	movl	8(%rbx), %edi
	callq	_cpu_to_be16
	movl	%eax, -36(%rbp)
	movq	-56(%rbp), %rdi
	addq	$24, %rdi
	leaq	-36(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%r15d, %edi
	je	LBB0_2
## %bb.1:
	movq	_USB_8DEV_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_4
## %bb.3:
	movq	_USB_8DEV_SILENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%r12d, %edi
	movq	_CAN_CTRLMODE_ONE_SHOT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	je	LBB0_6
## %bb.5:
	movq	_USB_8DEV_DISABLE_AUTO_RESTRANS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_6:
	orl	%r15d, %eax
	orl	%eax, %edi
	callq	_cpu_to_be32
	movl	%eax, -40(%rbp)
	movq	-56(%rbp), %rdi
	addq	$40, %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_usb_8dev_send_cmd
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_8DEV_STATUS_FRAME,4,2      ## @USB_8DEV_STATUS_FRAME
	.comm	_USB_8DEV_OPEN,4,2              ## @USB_8DEV_OPEN
	.comm	_USB_8DEV_BAUD_MANUAL,4,2       ## @USB_8DEV_BAUD_MANUAL
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_USB_8DEV_LOOPBACK,4,2          ## @USB_8DEV_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_USB_8DEV_SILENT,4,2            ## @USB_8DEV_SILENT
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ## @CAN_CTRLMODE_ONE_SHOT
	.comm	_USB_8DEV_DISABLE_AUTO_RESTRANS,4,2 ## @USB_8DEV_DISABLE_AUTO_RESTRANS
	.no_dead_strip	_usb_8dev_cmd_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_8dev_cmd_open
_usb_8dev_cmd_open:                     ; @usb_8dev_cmd_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _USB_8DEV_STATUS_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_8DEV_STATUS_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh3:
	adrp	x8, _USB_8DEV_OPEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_8DEV_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_8DEV_BAUD_MANUAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_8DEV_BAUD_MANUAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #40]
	ldp	x9, x8, [x19, #32]
	add	x8, x9, x8
	ldr	x9, [sp, #32]
	str	x8, [x9]
	ldr	x8, [x19, #24]
	str	x8, [x9, #8]
	ldr	x8, [x19, #16]
	str	x8, [x9, #16]
	ldr	w0, [x19, #8]
	bl	_cpu_to_be16
	str	w0, [sp, #8]
	ldr	x8, [sp, #32]
	add	x0, x8, #24
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
Lloh9:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _USB_8DEV_LOOPBACK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _USB_8DEV_LOOPBACK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w8, w20
	csel	w8, wzr, w9, eq
	orr	w8, w8, w21
Lloh15:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _USB_8DEV_SILENT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _USB_8DEV_SILENT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _USB_8DEV_DISABLE_AUTO_RESTRANS@GOTPAGE
Lloh25:
	ldr	x10, [x10, _USB_8DEV_DISABLE_AUTO_RESTRANS@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	bl	_cpu_to_be32
	str	w0, [sp, #12]
	ldr	x8, [sp, #32]
	add	x0, x8, #40
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x0, x19
	bl	_usb_8dev_send_cmd
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_8DEV_STATUS_FRAME,4,2      ; @USB_8DEV_STATUS_FRAME
	.comm	_USB_8DEV_OPEN,4,2              ; @USB_8DEV_OPEN
	.comm	_USB_8DEV_BAUD_MANUAL,4,2       ; @USB_8DEV_BAUD_MANUAL
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_USB_8DEV_LOOPBACK,4,2          ; @USB_8DEV_LOOPBACK
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_USB_8DEV_SILENT,4,2            ; @USB_8DEV_SILENT
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ; @CAN_CTRLMODE_ONE_SHOT
	.comm	_USB_8DEV_DISABLE_AUTO_RESTRANS,4,2 ; @USB_8DEV_DISABLE_AUTO_RESTRANS
	.no_dead_strip	_usb_8dev_cmd_open
.subsections_via_symbols
