	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali1563_block
_ali1563_block:                         ## @ali1563_block
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_HST_CNTL1_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMB_HST_CNTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	movl	$32, %r13d
	cmpq	%r12, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	$32, %eax
	movl	$32, %ecx
	cmovll	%eax, %ecx
	cmpl	$2, %ecx
	movl	$1, %r13d
	cmovgel	%ecx, %r13d
	movq	_SMB_HST_DAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_outb_p
	movq	(%r14), %rax
	movl	4(%rax), %edi
	movq	_SMB_BLK_DAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
LBB0_2:
	movq	_SMB_HST_CNTL2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_inb_p
	movq	_HST_CNTL2_BLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_outb_p
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movl	4(%rax,%r15,4), %edi
	movq	_SMB_BLK_DAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ali1563_block_start
	testl	%eax, %eax
	jne	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movl	%r13d, %eax
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ali1563_block_start
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r15, %r15
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_SMB_HST_DAT0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	movl	%eax, %r13d
	cmpl	$32, %eax
	movl	$32, %eax
	cmovgel	%eax, %r13d
	cmpl	$2, %r13d
	movl	$1, %eax
	cmovll	%eax, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_SMB_BLK_DAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_inb_p
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx,%r15,4)
	jmp	LBB0_4
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_10:
	xorl	%ebx, %ebx
LBB0_13:
	movq	_HST_CNTL1_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMB_HST_CNTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_outb_p
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HST_CNTL1_LAST,4,2             ## @HST_CNTL1_LAST
	.comm	_SMB_HST_CNTL1,4,2              ## @SMB_HST_CNTL1
	.comm	_I2C_SMBUS_WRITE,8,3            ## @I2C_SMBUS_WRITE
	.comm	_SMB_HST_DAT0,4,2               ## @SMB_HST_DAT0
	.comm	_SMB_BLK_DAT,4,2                ## @SMB_BLK_DAT
	.comm	_SMB_HST_CNTL2,4,2              ## @SMB_HST_CNTL2
	.comm	_HST_CNTL2_BLOCK,4,2            ## @HST_CNTL2_BLOCK
	.no_dead_strip	_ali1563_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali1563_block
_ali1563_block:                         ; @ali1563_block
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _HST_CNTL1_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HST_CNTL1_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SMB_HST_CNTL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMB_HST_CNTL1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_outb_p
Lloh6:
	adrp	x26, _I2C_SMBUS_WRITE@GOTPAGE
Lloh7:
	ldr	x26, [x26, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldr	x8, [x26]
	mov	w27, #32
Lloh8:
	adrp	x28, _SMB_HST_DAT0@GOTPAGE
Lloh9:
	ldr	x28, [x28, _SMB_HST_DAT0@GOTPAGEOFF]
Lloh10:
	adrp	x24, _SMB_BLK_DAT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SMB_BLK_DAT@GOTPAGEOFF]
	mov	w22, #32
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, #32
	csel	w8, w8, w27, lt
	cmp	w8, #1
	csinc	w22, w8, wzr, gt
	ldr	w1, [x28]
	mov	x0, x22
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	ldr	w1, [x24]
	bl	_outb_p
LBB0_2:
Lloh12:
	adrp	x23, _SMB_HST_CNTL2@GOTPAGE
Lloh13:
	ldr	x23, [x23, _SMB_HST_CNTL2@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_inb_p
Lloh14:
	adrp	x8, _HST_CNTL2_BLOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HST_CNTL2_BLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	w1, [x23]
	bl	_outb_p
	mov	x25, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20]
	add	x25, x25, #1
	ldr	w0, [x8, x25, lsl #2]
	ldr	w1, [x24]
	bl	_outb_p
	mov	x0, x21
	bl	_ali1563_block_start
	cbnz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, w22, uxtw
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x8, x19
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_ali1563_block_start
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x28]
	bl	_inb_p
	cmp	w0, #32
	csel	w8, w0, w27, lt
	cmp	w8, #1
	csinc	w22, w8, wzr, gt
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	bl	_inb_p
	ldr	x8, [x20]
	add	x25, x25, #1
	str	w0, [x8, x25, lsl #2]
	cmp	x25, w22, uxtw
	b.lt	LBB0_5
LBB0_10:
	mov	w23, #0
	b	LBB0_12
LBB0_11:
	mov	x23, x0
LBB0_12:
Lloh17:
	adrp	x8, _HST_CNTL1_LAST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HST_CNTL1_LAST@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _SMB_HST_CNTL1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SMB_HST_CNTL1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_outb_p
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_HST_CNTL1_LAST,4,2             ; @HST_CNTL1_LAST
	.comm	_SMB_HST_CNTL1,4,2              ; @SMB_HST_CNTL1
	.comm	_I2C_SMBUS_WRITE,8,3            ; @I2C_SMBUS_WRITE
	.comm	_SMB_HST_DAT0,4,2               ; @SMB_HST_DAT0
	.comm	_SMB_BLK_DAT,4,2                ; @SMB_BLK_DAT
	.comm	_SMB_HST_CNTL2,4,2              ; @SMB_HST_CNTL2
	.comm	_HST_CNTL2_BLOCK,4,2            ; @HST_CNTL2_BLOCK
	.no_dead_strip	_ali1563_block
.subsections_via_symbols
