	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_smb_write_i2c_block
_idt_smb_write_i2c_block:               ## @idt_smb_write_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, %r14
	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	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r12), %edx
	cmpl	%ebx, %edx
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	%edx, (%r15)
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	8(%r12), %esi
	callq	_memcpy
	movq	_CCODE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	4(%r12), %edx
	movq	_CCODE_START@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_CCODE_END@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_write_i2c_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movl	(%r12), %ecx
	incl	%ecx
	movq	%r15, %r8
	callq	_idt_smb_safe
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	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,4,2                ## @CCODE_BLOCK
	.comm	_CCODE_START,4,2                ## @CCODE_START
	.comm	_CCODE_END,4,2                  ## @CCODE_END
	.comm	_write_i2c_block,4,2            ## @write_i2c_block
	.no_dead_strip	_idt_smb_write_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_write_i2c_block
_idt_smb_write_i2c_block:               ; @idt_smb_write_i2c_block
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
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, #2
	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, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	w2, [x1]
	cmp	w2, w12
	b.le	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	str	w2, [x0], #4
	ldr	w1, [x20, #8]
	bl	_memcpy
Lloh11:
	adrp	x8, _CCODE_BLOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CCODE_BLOCK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CCODE_START@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CCODE_START@GOTPAGEOFF]
	ldp	w11, w10, [x20]
	orr	w8, w8, w10
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _CCODE_END@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CCODE_END@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh20:
	adrp	x8, _write_i2c_block@GOTPAGE
Lloh21:
	ldr	x8, [x8, _write_i2c_block@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x19]
	add	w3, w11, #1
	mov	x4, x21
	bl	_idt_smb_safe
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #32
	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
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CCODE_BLOCK,4,2                ; @CCODE_BLOCK
	.comm	_CCODE_START,4,2                ; @CCODE_START
	.comm	_CCODE_END,4,2                  ; @CCODE_END
	.comm	_write_i2c_block,4,2            ; @write_i2c_block
	.no_dead_strip	_idt_smb_write_i2c_block
.subsections_via_symbols
