	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_setup_ucode
_e100_setup_ucode:                      ## @e100_setup_ucode
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	$0, 16(%rsi)
	movq	8(%rsi), %rdi
	movq	(%rdx), %rsi
	movq	_UCODE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	(%r14), %rax
	movslq	(%r15), %rcx
	leaq	(,%rcx,4), %rdx
	shlq	$5, %rcx
	movq	(%rax,%rcx), %r12
	leal	1(%rdx), %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %r15
	orl	$2, %edx
	movslq	%edx, %rcx
	movq	(%rax,%rcx,8), %r14
	movl	$-65536, %edi                   ## imm = 0xFFFF0000
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	andl	%eax, (%rcx,%r12,4)
	movq	_INTDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx,%r12,4)
	movl	$-65536, %edi                   ## imm = 0xFFFF0000
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	andl	%eax, (%rcx,%r15,4)
	movq	_BUNDLEMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx,%r15,4)
	movl	$-65536, %edi                   ## imm = 0xFFFF0000
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	andl	%eax, (%rcx,%r14,4)
	movq	_BUNDLESMALL@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$65408, %eax                    ## imm = 0xFF80
	movl	$65535, %edi                    ## imm = 0xFFFF
	cmovel	%eax, %edi
	callq	_cpu_to_le32
	movq	8(%rbx), %rcx
	orl	%eax, (%rcx,%r14,4)
	movq	_cb_ucode@GOTPCREL(%rip), %rax
	movq	_cb_el@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UCODE_SIZE,4,2                 ## @UCODE_SIZE
	.comm	_INTDELAY,4,2                   ## @INTDELAY
	.comm	_BUNDLEMAX,4,2                  ## @BUNDLEMAX
	.comm	_BUNDLESMALL,8,3                ## @BUNDLESMALL
	.comm	_cb_ucode,4,2                   ## @cb_ucode
	.comm	_cb_el,4,2                      ## @cb_el
	.no_dead_strip	_e100_setup_ucode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_setup_ucode
_e100_setup_ucode:                      ; @e100_setup_ucode
	.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	x20, x2
	mov	x19, x1
	str	xzr, [x1, #16]
	ldr	x0, [x1, #8]
	ldr	x1, [x2]
Lloh0:
	adrp	x21, _UCODE_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UCODE_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x20]
	ldrsw	x9, [x21]
	lsl	w10, w9, #2
	lsl	x9, x9, #5
	ldr	x20, [x8, x9]
	add	x8, x8, w10, sxtw #3
	ldp	x21, x22, [x8, #8]
	mov	w0, #-65536
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	lsl	x20, x20, #2
	ldr	w9, [x8, x20]
	and	w9, w9, w0
	str	w9, [x8, x20]
Lloh2:
	adrp	x8, _INTDELAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTDELAY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x20]
	orr	w9, w9, w0
	str	w9, [x8, x20]
	mov	w0, #-65536
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	lsl	x20, x21, #2
	ldr	w9, [x8, x20]
	and	w9, w9, w0
	str	w9, [x8, x20]
Lloh5:
	adrp	x8, _BUNDLEMAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BUNDLEMAX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x20]
	orr	w9, w9, w0
	str	w9, [x8, x20]
	mov	w0, #-65536
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	lsl	x20, x22, #2
	ldr	w9, [x8, x20]
	and	w9, w9, w0
	str	w9, [x8, x20]
Lloh8:
	adrp	x8, _BUNDLESMALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BUNDLESMALL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #65535
	mov	w9, #65408
	csel	w0, w9, w8, eq
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x20]
	orr	w9, w9, w0
	str	w9, [x8, x20]
Lloh11:
	adrp	x8, _cb_ucode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cb_ucode@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _cb_el@GOTPAGE
Lloh15:
	ldr	x9, [x9, _cb_el@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le16
	str	w0, [x19]
	mov	w0, #0
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UCODE_SIZE,4,2                 ; @UCODE_SIZE
	.comm	_INTDELAY,4,2                   ; @INTDELAY
	.comm	_BUNDLEMAX,4,2                  ; @BUNDLEMAX
	.comm	_BUNDLESMALL,8,3                ; @BUNDLESMALL
	.comm	_cb_ucode,4,2                   ; @cb_ucode
	.comm	_cb_el,4,2                      ; @cb_el
	.no_dead_strip	_e100_setup_ucode
.subsections_via_symbols
