	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_smb_read_i2c_block
_idt_smb_read_i2c_block:                ## @idt_smb_read_i2c_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r12), %ecx
	cmpl	%ebx, %ecx
	jle	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_CCODE_BLOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	orq	8(%r12), %rdx
	movq	_CCODE_START@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	_CCODE_END@GOTPCREL(%rip), %rax
	orq	(%rax), %rdx
	movq	_read_i2c_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	incl	%ecx
	movq	%r14, %r8
	callq	_idt_smb_safe
	movslq	(%r12), %rcx
	leaq	1(%rcx), %rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
## %bb.5:
	movq	(%r14), %rdx
	cmpq	%rcx, %rdx
	jne	LBB0_6
## %bb.7:
	movl	16(%r12), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testq	%rax, %rax
	cmovnsl	%edx, %eax
	jmp	LBB0_8
LBB0_6:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CCODE_BLOCK,8,3                ## @CCODE_BLOCK
	.comm	_CCODE_START,8,3                ## @CCODE_START
	.comm	_CCODE_END,8,3                  ## @CCODE_END
	.comm	_read_i2c_block,4,2             ## @read_i2c_block
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_idt_smb_read_i2c_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idt_smb_read_i2c_block
_idt_smb_read_i2c_block:                ; @idt_smb_read_i2c_block
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	add	w8, w12, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w9, [x1]
	cmp	w9, w12
	b.le	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x10, _CCODE_BLOCK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _CCODE_BLOCK@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
Lloh13:
	adrp	x11, _CCODE_START@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CCODE_START@GOTPAGEOFF]
	orr	x8, x10, x8
Lloh15:
	ldr	x10, [x11]
	orr	x8, x8, x10
Lloh16:
	adrp	x10, _CCODE_END@GOTPAGE
Lloh17:
	ldr	x10, [x10, _CCODE_END@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	orr	x2, x8, x10
Lloh19:
	adrp	x8, _read_i2c_block@GOTPAGE
Lloh20:
	ldr	x8, [x8, _read_i2c_block@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	ldr	w1, [x0]
	add	w3, w9, #1
	mov	x0, x8
	mov	x4, x20
	bl	_idt_smb_safe
	ldrsw	x8, [x19]
	add	x9, x8, #1
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x2, [x20]
	cmp	x2, x8
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x19, #16]
	add	x1, x20, #8
	bl	_memcpy
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh22:
	adrp	x8, _ENODATA@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, w0, w8, lt
	b	LBB0_8
LBB0_6:
Lloh25:
	adrp	x8, _ENODATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CCODE_BLOCK,8,3                ; @CCODE_BLOCK
	.comm	_CCODE_START,8,3                ; @CCODE_START
	.comm	_CCODE_END,8,3                  ; @CCODE_END
	.comm	_read_i2c_block,4,2             ; @read_i2c_block
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_idt_smb_read_i2c_block
.subsections_via_symbols
