	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_8051_config               ## -- Begin function load_8051_config
	.p2align	4, 0x90
_load_8051_config:                      ## @load_8051_config
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rax
	movq	%rsi, %r14
	movq	_LOAD_DATA_FIELD_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	%rdx, %r15
	movq	%rdi, %r12
	movq	_LOAD_DATA_LANE_ID_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_LOAD_DATA_DATA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %edx
	orl	%edx, %eax
	movq	_HCMD_LOAD_CONFIG_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_do_8051_command
	movl	%eax, %ebx
	movq	_HCMD_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	%ebx, %r8d
	callq	_dd_dev_err
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOAD_DATA_FIELD_ID_SHIFT,4,2   ## @LOAD_DATA_FIELD_ID_SHIFT
	.comm	_LOAD_DATA_LANE_ID_SHIFT,4,2    ## @LOAD_DATA_LANE_ID_SHIFT
	.comm	_LOAD_DATA_DATA_SHIFT,4,2       ## @LOAD_DATA_DATA_SHIFT
	.comm	_HCMD_LOAD_CONFIG_DATA,4,2      ## @HCMD_LOAD_CONFIG_DATA
	.comm	_HCMD_SUCCESS,4,2               ## @HCMD_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load 8051 config: field id %d, lane %d, err %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_8051_config               ; -- Begin function load_8051_config
	.p2align	2
_load_8051_config:                      ; @load_8051_config
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _LOAD_DATA_FIELD_ID_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOAD_DATA_FIELD_ID_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LOAD_DATA_LANE_ID_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LOAD_DATA_LANE_ID_SHIFT@GOTPAGEOFF]
	lsl	w8, w20, w8
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _LOAD_DATA_DATA_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOAD_DATA_DATA_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w3, w9
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _HCMD_LOAD_CONFIG_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCMD_LOAD_CONFIG_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x3, #0
	bl	_do_8051_command
	mov	x22, x0
Lloh12:
	adrp	x8, _HCMD_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCMD_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.1:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_dd_dev_err
LBB0_2:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LOAD_DATA_FIELD_ID_SHIFT,4,2   ; @LOAD_DATA_FIELD_ID_SHIFT
	.comm	_LOAD_DATA_LANE_ID_SHIFT,4,2    ; @LOAD_DATA_LANE_ID_SHIFT
	.comm	_LOAD_DATA_DATA_SHIFT,4,2       ; @LOAD_DATA_DATA_SHIFT
	.comm	_HCMD_LOAD_CONFIG_DATA,4,2      ; @HCMD_LOAD_CONFIG_DATA
	.comm	_HCMD_SUCCESS,4,2               ; @HCMD_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load 8051 config: field id %d, lane %d, err %d\n"

.subsections_via_symbols
