	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idt_smb_read_block
_idt_smb_read_block:                    ## @idt_smb_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_4
LBB0_2:
	movq	%rsi, %rbx
	movq	_CCODE_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	8(%rsi), %edx
	movq	_CCODE_START@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_CCODE_END@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_read_block@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rdi), %esi
	movl	12(%rbx), %ecx
	movl	%eax, %edi
	callq	_idt_smb_safe
	xorl	%ecx, %ecx
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.3:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testq	%rax, %rax
	cmovnsl	%edx, %eax
	movl	%eax, %ecx
LBB0_4:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ## @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	_read_block,4,2                 ## @read_block
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_idt_smb_read_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_block
_idt_smb_read_block:                    ; @idt_smb_read_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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x19, x1
Lloh6:
	adrp	x8, _CCODE_BLOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCODE_BLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldp	w9, w3, [x1, #8]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _CCODE_START@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CCODE_START@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _CCODE_END@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CCODE_END@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
Lloh15:
	adrp	x8, _read_block@GOTPAGE
Lloh16:
	ldr	x8, [x8, _read_block@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_idt_smb_safe
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x8, _ENODATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, w0, w8, lt
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_SMBUS_BLOCK_MAX,8,3        ; @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	_read_block,4,2                 ; @read_block
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_idt_smb_read_block
.subsections_via_symbols
