	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_board_id
_get_board_id:                          ## @get_board_id
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MTHCA_BOARD_ID_LEN@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%rbx, %rdi
	callq	_be16_to_cpup
	cmpq	$1453, %rax                     ## imm = 0x5AD
	jne	LBB0_2
## %bb.1:
	leaq	222(%rbx), %rdi
	callq	_be16_to_cpup
	cmpq	$1453, %rax                     ## imm = 0x5AD
	jne	LBB0_2
## %bb.3:
	addq	$32, %rbx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_2:
	movl	208(%rbx), %edi
	callq	_swab32
	movl	%eax, (%r14)
	movl	212(%rbx), %edi
	callq	_swab32
	movl	%eax, 4(%r14)
	movl	216(%rbx), %edi
	callq	_swab32
	movl	%eax, 8(%r14)
	movl	220(%rbx), %edi
	callq	_swab32
	movl	%eax, 12(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_BOARD_ID_LEN,4,2         ## @MTHCA_BOARD_ID_LEN
	.comm	_VSD_OFFSET_MLX_BOARD_ID,4,2    ## @VSD_OFFSET_MLX_BOARD_ID
	.comm	_VSD_OFFSET_SIG1,4,2            ## @VSD_OFFSET_SIG1
	.comm	_VSD_OFFSET_SIG2,4,2            ## @VSD_OFFSET_SIG2
	.comm	_VSD_OFFSET_TS_BOARD_ID,4,2     ## @VSD_OFFSET_TS_BOARD_ID
	.comm	_VSD_SIGNATURE_TOPSPIN,8,3      ## @VSD_SIGNATURE_TOPSPIN
	.no_dead_strip	_get_board_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_board_id
_get_board_id:                          ; @get_board_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _MTHCA_BOARD_ID_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MTHCA_BOARD_ID_LEN@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x1
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_be16_to_cpup
	cmp	x0, #1453
	b.ne	LBB0_3
; %bb.1:
	add	x0, x20, #222
	bl	_be16_to_cpup
	cmp	x0, #1453
	b.ne	LBB0_3
; %bb.2:
	add	x1, x20, #32
	ldr	w2, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_strlcpy
LBB0_3:
	ldr	w0, [x20, #208]
	bl	_swab32
	str	w0, [x19]
	ldr	w0, [x20, #212]
	bl	_swab32
	str	w0, [x19, #4]
	ldr	w0, [x20, #216]
	bl	_swab32
	str	w0, [x19, #8]
	ldr	w0, [x20, #220]
	bl	_swab32
	str	w0, [x19, #12]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_BOARD_ID_LEN,4,2         ; @MTHCA_BOARD_ID_LEN
	.comm	_VSD_OFFSET_MLX_BOARD_ID,4,2    ; @VSD_OFFSET_MLX_BOARD_ID
	.comm	_VSD_OFFSET_SIG1,4,2            ; @VSD_OFFSET_SIG1
	.comm	_VSD_OFFSET_SIG2,4,2            ; @VSD_OFFSET_SIG2
	.comm	_VSD_OFFSET_TS_BOARD_ID,4,2     ; @VSD_OFFSET_TS_BOARD_ID
	.comm	_VSD_SIGNATURE_TOPSPIN,8,3      ; @VSD_SIGNATURE_TOPSPIN
	.no_dead_strip	_get_board_id
.subsections_via_symbols
