	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smscore_configure_board
_smscore_configure_board:               ## @smscore_configure_board
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	16(%rdi), %edi
	callq	_sms_get_board
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rsi
	xorl	%r15d, %r15d
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	leaq	-56(%rbp), %rdi
	movq	_MSG_SMS_NEW_CRYSTAL_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edx
	callq	_SMS_INIT_MSG
	movq	(%rbx), %rax
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx)
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	movl	$40, %edx
	callq	*8(%r14)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no board configuration exist.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"set max transmit unit %d\n"

	.comm	_HIF_TASK,4,2                   ## @HIF_TASK
	.comm	_MSG_SMS_SET_MAX_TX_MSG_LEN_REQ,4,2 ## @MSG_SMS_SET_MAX_TX_MSG_LEN_REQ
L_.str.2:                               ## @.str.2
	.asciz	"set crystal value %d\n"

	.comm	_MSG_SMS_NEW_CRYSTAL_REQ,4,2    ## @MSG_SMS_NEW_CRYSTAL_REQ
	.no_dead_strip	_smscore_configure_board
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smscore_configure_board
_smscore_configure_board:               ; @smscore_configure_board
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_sms_get_board
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x1, [x0, #8]
	cbnz	x1, LBB0_7
; %bb.2:
	ldr	x1, [x20]
	cbz	x1, LBB0_4
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	add	x8, sp, #8
	add	x0, x8, #8
Lloh2:
	adrp	x8, _MSG_SMS_NEW_CRYSTAL_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_SMS_NEW_CRYSTAL_REQ@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #40
	bl	_SMS_INIT_MSG
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	str	x8, [x9]
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	add	x1, sp, #8
	mov	w2, #40
	blr	x8
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no board configuration exist.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"set max transmit unit %d\n"

	.comm	_HIF_TASK,4,2                   ; @HIF_TASK
	.comm	_MSG_SMS_SET_MAX_TX_MSG_LEN_REQ,4,2 ; @MSG_SMS_SET_MAX_TX_MSG_LEN_REQ
l_.str.2:                               ; @.str.2
	.asciz	"set crystal value %d\n"

	.comm	_MSG_SMS_NEW_CRYSTAL_REQ,4,2    ; @MSG_SMS_NEW_CRYSTAL_REQ
	.no_dead_strip	_smscore_configure_board
.subsections_via_symbols
