	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucan_parse_device_info
_ucan_parse_device_info:                ## @ucan_parse_device_info
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	40(%rsi), %edi
	callq	_le32_to_cpu
	movq	%rax, 8(%r14)
	movl	36(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	68(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movl	32(%rbx), %eax
	movl	%eax, 64(%r14)
	movups	16(%rbx), %xmm0
	movups	%xmm0, 48(%r14)
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 40(%r14)
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, 32(%r14)
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r14)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movl	$0, (%r14)
	movq	_UCAN_MODE_LOOPBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	_CAN_CTRLMODE_LOOPBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_UCAN_MODE_SILENT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_CAN_CTRLMODE_LISTENONLY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
LBB0_5:
	movq	_UCAN_MODE_3_SAMPLES@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_CAN_CTRLMODE_3_SAMPLES@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
LBB0_7:
	movq	_UCAN_MODE_ONE_SHOT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	_CAN_CTRLMODE_ONE_SHOT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r14)
LBB0_9:
	movq	_UCAN_MODE_BERR_REPORT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_11
## %bb.10:
	movq	_CAN_CTRLMODE_BERR_REPORTING@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucan"

	.comm	_UCAN_MODE_LOOPBACK,4,2         ## @UCAN_MODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ## @CAN_CTRLMODE_LOOPBACK
	.comm	_UCAN_MODE_SILENT,4,2           ## @UCAN_MODE_SILENT
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ## @CAN_CTRLMODE_LISTENONLY
	.comm	_UCAN_MODE_3_SAMPLES,4,2        ## @UCAN_MODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ## @CAN_CTRLMODE_3_SAMPLES
	.comm	_UCAN_MODE_ONE_SHOT,4,2         ## @UCAN_MODE_ONE_SHOT
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ## @CAN_CTRLMODE_ONE_SHOT
	.comm	_UCAN_MODE_BERR_REPORT,4,2      ## @UCAN_MODE_BERR_REPORT
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ## @CAN_CTRLMODE_BERR_REPORTING
	.no_dead_strip	_ucan_parse_device_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucan_parse_device_info
_ucan_parse_device_info:                ; @ucan_parse_device_info
	.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
	ldr	w0, [x1, #40]
	bl	_le32_to_cpu
	str	x0, [x19, #8]
	ldr	w8, [x20, #36]
	str	w8, [x19, #16]
	ldr	w0, [x19, #68]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	ldr	w8, [x20, #32]
	str	w8, [x19, #64]
	ldr	q0, [x20, #16]
	str	q0, [x19, #48]
	ldr	w0, [x20, #12]
	bl	_le32_to_cpu
	str	x0, [x19, #40]
	ldr	w0, [x20, #8]
	bl	_le32_to_cpu
	str	x0, [x19, #32]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	str	x0, [x19, #24]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	str	wzr, [x19]
Lloh2:
	adrp	x8, _UCAN_MODE_LOOPBACK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UCAN_MODE_LOOPBACK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CAN_CTRLMODE_LOOPBACK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	w8, #0
LBB0_3:
Lloh8:
	adrp	x9, _UCAN_MODE_SILENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UCAN_MODE_SILENT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CAN_CTRLMODE_LISTENONLY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_5:
Lloh14:
	adrp	x9, _UCAN_MODE_3_SAMPLES@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UCAN_MODE_3_SAMPLES@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CAN_CTRLMODE_3_SAMPLES@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_7:
Lloh20:
	adrp	x9, _UCAN_MODE_ONE_SHOT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _UCAN_MODE_ONE_SHOT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _CAN_CTRLMODE_ONE_SHOT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_9:
Lloh26:
	adrp	x9, _UCAN_MODE_BERR_REPORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _UCAN_MODE_BERR_REPORT@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_11
; %bb.10:
Lloh29:
	adrp	x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CAN_CTRLMODE_BERR_REPORTING@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucan"

	.comm	_UCAN_MODE_LOOPBACK,4,2         ; @UCAN_MODE_LOOPBACK
	.comm	_CAN_CTRLMODE_LOOPBACK,4,2      ; @CAN_CTRLMODE_LOOPBACK
	.comm	_UCAN_MODE_SILENT,4,2           ; @UCAN_MODE_SILENT
	.comm	_CAN_CTRLMODE_LISTENONLY,4,2    ; @CAN_CTRLMODE_LISTENONLY
	.comm	_UCAN_MODE_3_SAMPLES,4,2        ; @UCAN_MODE_3_SAMPLES
	.comm	_CAN_CTRLMODE_3_SAMPLES,4,2     ; @CAN_CTRLMODE_3_SAMPLES
	.comm	_UCAN_MODE_ONE_SHOT,4,2         ; @UCAN_MODE_ONE_SHOT
	.comm	_CAN_CTRLMODE_ONE_SHOT,4,2      ; @CAN_CTRLMODE_ONE_SHOT
	.comm	_UCAN_MODE_BERR_REPORT,4,2      ; @UCAN_MODE_BERR_REPORT
	.comm	_CAN_CTRLMODE_BERR_REPORTING,4,2 ; @CAN_CTRLMODE_BERR_REPORTING
	.no_dead_strip	_ucan_parse_device_info
.subsections_via_symbols
