	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ismt_process_desc
_ismt_process_desc:                     ## @ismt_process_desc
	.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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	8(%rbx), %rdi
	movq	%r12, %rsi
	callq	___ismt_desc_dump
	movl	(%r12), %edi
	movq	_ISMT_DESC_SCS@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%r14, %rcx
	xorl	%r14d, %r14d
	cmpl	$129, %r13d
	je	LBB0_3
## %bb.2:
	movq	_I2C_SMBUS_WRITE@GOTPCREL(%rip), %rax
	cmpb	%r15b, (%rax)
	je	LBB0_21
LBB0_3:
	leal	-128(%r13), %eax
	cmpl	$2, %eax
	jb	LBB0_8
## %bb.4:
	leal	-130(%r13), %eax
	cmpl	$2, %eax
	jae	LBB0_5
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_9:
	movq	_ISMT_DESC_NAK@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_11:
	movl	(%r12), %eax
	movq	_ISMT_DESC_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	movq	_EBADMSG@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %eax
	shll	$8, %eax
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_5:
	cmpl	$132, %r13d
	jne	LBB0_21
## %bb.6:
	movq	%rcx, %rbx
	movq	(%rcx), %rdi
	addq	$4, %rdi
	movl	4(%r12), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movl	4(%r12), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_21
LBB0_13:
	movq	_ISMT_DESC_COL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_15:
	movq	_ISMT_DESC_LPR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	_ISMT_DESC_DLTO@GOTPCREL(%rip), %rcx
	movq	_ISMT_DESC_CLTO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_19
## %bb.18:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_20:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_21:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Processing completed descriptor\n"

	.comm	_ISMT_DESC_SCS,4,2              ## @ISMT_DESC_SCS
	.comm	_I2C_SMBUS_WRITE,1,0            ## @I2C_SMBUS_WRITE
	.comm	_ISMT_DESC_NAK,4,2              ## @ISMT_DESC_NAK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ISMT_DESC_CRC,4,2              ## @ISMT_DESC_CRC
	.comm	_EBADMSG,4,2                    ## @EBADMSG
	.comm	_ISMT_DESC_COL,4,2              ## @ISMT_DESC_COL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ISMT_DESC_LPR,4,2              ## @ISMT_DESC_LPR
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_ISMT_DESC_DLTO,4,2             ## @ISMT_DESC_DLTO
	.comm	_ISMT_DESC_CLTO,4,2             ## @ISMT_DESC_CLTO
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ismt_process_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ismt_process_desc
_ismt_process_desc:                     ; @ismt_process_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x4
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x21, x0, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x24, #8]
	mov	x1, x19
	bl	___ismt_desc_dump
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _ISMT_DESC_SCS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ISMT_DESC_SCS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _I2C_SMBUS_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_SMBUS_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w8, w23, uxtb
	b.ne	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_22
LBB0_4:
Lloh7:
	adrp	x9, _ISMT_DESC_NAK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ISMT_DESC_NAK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_likely
	cbz	x0, LBB0_9
; %bb.5:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_21
LBB0_6:
	sub	w8, w22, #128
	cmp	w8, #2
	b.lo	LBB0_11
; %bb.7:
	sub	w8, w22, #130
	cmp	w8, #2
	b.hs	LBB0_12
; %bb.8:
	mov	w0, #0
	ldr	w8, [x21]
	str	w8, [x20]
	b	LBB0_22
LBB0_9:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _ISMT_DESC_CRC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISMT_DESC_CRC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.10:
Lloh15:
	adrp	x8, _EBADMSG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBADMSG@GOTPAGEOFF]
	b	LBB0_21
LBB0_11:
	mov	w0, #0
	ldp	w8, w9, [x21]
	orr	w8, w8, w9, lsl #8
	str	w8, [x20]
	b	LBB0_22
LBB0_12:
	cmp	w22, #132
	b.ne	LBB0_3
; %bb.13:
	ldr	x8, [x20]
	add	x0, x8, #4
	ldr	w2, [x19, #4]
	mov	x1, x21
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [x19, #4]
	ldr	x9, [x20]
	str	w8, [x9]
	b	LBB0_22
LBB0_14:
Lloh17:
	adrp	x9, _ISMT_DESC_COL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ISMT_DESC_COL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh20:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_21
LBB0_16:
Lloh22:
	adrp	x9, _ISMT_DESC_LPR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ISMT_DESC_LPR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh25:
	adrp	x8, _EPROTO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
Lloh27:
	adrp	x9, _ISMT_DESC_DLTO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ISMT_DESC_DLTO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _ISMT_DESC_CLTO@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ISMT_DESC_CLTO@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
Lloh33:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh35:
	adrp	x8, _EIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Processing completed descriptor\n"

	.comm	_ISMT_DESC_SCS,4,2              ; @ISMT_DESC_SCS
	.comm	_I2C_SMBUS_WRITE,1,0            ; @I2C_SMBUS_WRITE
	.comm	_ISMT_DESC_NAK,4,2              ; @ISMT_DESC_NAK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ISMT_DESC_CRC,4,2              ; @ISMT_DESC_CRC
	.comm	_EBADMSG,4,2                    ; @EBADMSG
	.comm	_ISMT_DESC_COL,4,2              ; @ISMT_DESC_COL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ISMT_DESC_LPR,4,2              ; @ISMT_DESC_LPR
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_ISMT_DESC_DLTO,4,2             ; @ISMT_DESC_DLTO
	.comm	_ISMT_DESC_CLTO,4,2             ; @ISMT_DESC_CLTO
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ismt_process_desc
.subsections_via_symbols
