	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drxdap_fasi_read_block
_drxdap_fasi_read_block:                ## @drxdap_fasi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_IS_I2C_10BIT
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_DRXDAP_FASI_LONG_FORMAT
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	addl	%ebx, %ebx
	cmpq	$1, -88(%rbp)                   ## 8-byte Folded Reload
	sbbl	$0, %ebx
	movl	%r12d, %edi
	callq	_DRXDAP_FASI_OFFSET_TOO_LARGE
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addl	$4, %ebx
	movq	_DRXDAPFASI_LONG_ADDR_ALLOWED@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	%r12d, %edi
	callq	_DRXDAP_FASI_LONG_FORMAT
	testq	%rax, %rax
	jne	LBB0_1
LBB0_5:
	movq	_DRXDAP_MAX_WCHUNKSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_1
## %bb.6:
	testl	%r13d, %r13d
	sete	%al
	testq	%r14, %r14
	setne	%cl
	testb	$1, %r13b
	jne	LBB0_1
## %bb.7:
	orb	%cl, %al
	je	LBB0_1
## %bb.8:
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DRXDAP_MAX_RCHUNKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r13d
	cmovll	%r13d, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r8d
	movq	%r14, %r9
	callq	_drxbsp_i2c_write_read
	subl	%ebx, %r13d
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movslq	%ebx, %rcx
	leaq	(%r14,%rcx,8), %r14
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRXDAPFASI_LONG_ADDR_ALLOWED,4,2 ## @DRXDAPFASI_LONG_ADDR_ALLOWED
	.comm	_DRXDAP_MAX_WCHUNKSIZE,4,2      ## @DRXDAP_MAX_WCHUNKSIZE
	.comm	_DRXDAP_FASI_RMW,4,2            ## @DRXDAP_FASI_RMW
	.comm	_DRXDAP_FASI_MODEFLAGS,4,2      ## @DRXDAP_FASI_MODEFLAGS
	.comm	_DRXDAP_MAX_RCHUNKSIZE,4,2      ## @DRXDAP_MAX_RCHUNKSIZE
	.comm	_DRXDAP_FASI_FLAGS,4,2          ## @DRXDAP_FASI_FLAGS
	.comm	_DRXDAP_FASI_SINGLE_MASTER,4,2  ## @DRXDAP_FASI_SINGLE_MASTER
	.no_dead_strip	_drxdap_fasi_read_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drxdap_fasi_read_block
_drxdap_fasi_read_block:                ; @drxdap_fasi_read_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_IS_I2C_10BIT
	cmp	x0, #0
	mov	w8, #1
	cinc	w23, w8, ne
	mov	x0, x22
	bl	_DRXDAP_FASI_LONG_FORMAT
	cmp	x0, #0
	mov	w8, #4
	mov	w9, #2
	csel	w24, w9, w8, eq
	mov	x0, x22
	bl	_DRXDAP_FASI_OFFSET_TOO_LARGE
	cbz	x0, LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	add	w23, w24, w23
Lloh9:
	adrp	x8, _DRXDAPFASI_LONG_ADDR_ALLOWED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRXDAPFASI_LONG_ADDR_ALLOWED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_DRXDAP_FASI_LONG_FORMAT
	cbnz	x0, LBB0_2
LBB0_7:
Lloh12:
	adrp	x8, _DRXDAP_MAX_WCHUNKSIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRXDAP_MAX_WCHUNKSIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w23, w8
	b.gt	LBB0_2
; %bb.8:
	cmp	w20, #0
	ccmp	x19, #0, #0, ne
	cset	w8, ne
	tbnz	w20, #0, LBB0_2
; %bb.9:
	tbz	w8, #0, LBB0_2
; %bb.10:
Lloh15:
	adrp	x23, _DRXDAP_MAX_RCHUNKSIZE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _DRXDAP_MAX_RCHUNKSIZE@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmp	w20, w8
	csel	w22, w20, w8, lt
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	mov	x3, x21
	mov	x4, x22
	mov	x5, x19
	bl	_drxbsp_i2c_write_read
	add	x19, x19, w22, sxtw #3
	sub	w20, w20, w22
	cmp	w20, #0
	ccmp	w0, #0, #0, ne
	b.eq	LBB0_11
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRXDAPFASI_LONG_ADDR_ALLOWED,4,2 ; @DRXDAPFASI_LONG_ADDR_ALLOWED
	.comm	_DRXDAP_MAX_WCHUNKSIZE,4,2      ; @DRXDAP_MAX_WCHUNKSIZE
	.comm	_DRXDAP_FASI_RMW,4,2            ; @DRXDAP_FASI_RMW
	.comm	_DRXDAP_FASI_MODEFLAGS,4,2      ; @DRXDAP_FASI_MODEFLAGS
	.comm	_DRXDAP_MAX_RCHUNKSIZE,4,2      ; @DRXDAP_MAX_RCHUNKSIZE
	.comm	_DRXDAP_FASI_FLAGS,4,2          ; @DRXDAP_FASI_FLAGS
	.comm	_DRXDAP_FASI_SINGLE_MASTER,4,2  ; @DRXDAP_FASI_SINGLE_MASTER
	.no_dead_strip	_drxdap_fasi_read_block
.subsections_via_symbols
