	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_set_tags
_qup_i2c_set_tags:                      ## @qup_i2c_set_tags
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_i2c_8bit_addr_from_msg
	movl	%eax, %r13d
	movl	4(%r12), %eax
	decl	%eax
	cmpl	%eax, (%r12)
	jne	LBB0_1
## %bb.2:
	cmpq	$0, 8(%r12)
	setne	%r15b
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	callq	_qup_i2c_check_msg_len
	testq	%rax, %rax
	je	LBB0_4
## %bb.18:
	movl	%r13d, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qup_i2c_set_tags_smb           ## TAILCALL
LBB0_4:
	movl	%r15d, %ecx
	xorl	%r15d, %r15d
	cmpl	$0, (%r12)
	jne	LBB0_8
## %bb.5:
	movq	_QUP_TAG_V2_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movzbl	%r13b, %eax
	movl	%eax, 4(%r14)
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.7:
	sarl	$8, %r13d
	movl	%r13d, 8(%r14)
	movl	$3, %r15d
	jmp	LBB0_8
LBB0_6:
	movl	$2, %r15d
LBB0_8:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	testb	%cl, %cl
	je	LBB0_12
## %bb.9:
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_QUP_TAG_V2_DATARD_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_12:
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movl	4(%r12), %eax
	decl	%eax
	cmpl	%eax, (%r12)
	jne	LBB0_14
## %bb.15:
	movq	_QUP_TAG_V2_DATARD_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	movq	_QUP_TAG_V2_DATAWR_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_QUP_TAG_V2_DATAWR@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_14:
	movq	_QUP_TAG_V2_DATARD@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movl	%r15d, %ebx
	movl	%eax, (%r14,%rbx,4)
	movq	%r12, %rdi
	callq	_qup_i2c_get_data_len
	movq	_QUP_READ_LIMIT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	cmovnel	%eax, %edx
	movl	%edx, 4(%r14,%rbx,4)
	addl	$2, %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_TAG_V2_START,4,2           ## @QUP_TAG_V2_START
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_QUP_TAG_V2_DATARD_STOP,4,2     ## @QUP_TAG_V2_DATARD_STOP
	.comm	_QUP_TAG_V2_DATAWR_STOP,4,2     ## @QUP_TAG_V2_DATAWR_STOP
	.comm	_QUP_TAG_V2_DATARD_NACK,4,2     ## @QUP_TAG_V2_DATARD_NACK
	.comm	_QUP_TAG_V2_DATARD,4,2          ## @QUP_TAG_V2_DATARD
	.comm	_QUP_TAG_V2_DATAWR,4,2          ## @QUP_TAG_V2_DATAWR
	.comm	_QUP_READ_LIMIT,4,2             ## @QUP_READ_LIMIT
	.no_dead_strip	_qup_i2c_set_tags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qup_i2c_set_tags
_qup_i2c_set_tags:                      ; @qup_i2c_set_tags
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_i2c_8bit_addr_from_msg
	mov	x22, x0
	ldp	w8, w9, [x20]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w23, ne
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	x0, x21
	bl	_qup_i2c_check_msg_len
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	mov	x3, x21
	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
	b	_qup_i2c_set_tags_smb
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.6:
	mov	w22, #0
	b	LBB0_10
LBB0_7:
Lloh0:
	adrp	x8, _QUP_TAG_V2_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUP_TAG_V2_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w22, #0xff
	stp	w8, w9, [x19]
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _I2C_M_TEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_TEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	asr	w8, w22, #8
	str	w8, [x19, #8]
	mov	w22, #3
	b	LBB0_10
LBB0_9:
	mov	w22, #2
LBB0_10:
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w8, w9, w8
	cbz	w23, LBB0_13
; %bb.11:
	cbz	w8, LBB0_15
; %bb.12:
Lloh9:
	adrp	x8, _QUP_TAG_V2_DATARD_STOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QUP_TAG_V2_DATARD_STOP@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
	cbz	w8, LBB0_16
; %bb.14:
	ldp	w8, w9, [x20]
Lloh11:
	adrp	x10, _QUP_TAG_V2_DATARD_NACK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QUP_TAG_V2_DATARD_NACK@GOTPAGEOFF]
	sub	w9, w9, #1
Lloh13:
	adrp	x11, _QUP_TAG_V2_DATARD@GOTPAGE
Lloh14:
	ldr	x11, [x11, _QUP_TAG_V2_DATARD@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_17
LBB0_15:
Lloh15:
	adrp	x8, _QUP_TAG_V2_DATAWR_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUP_TAG_V2_DATAWR_STOP@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh17:
	adrp	x8, _QUP_TAG_V2_DATAWR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _QUP_TAG_V2_DATAWR@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x19, w22, uxtw #2]
	add	w21, w22, #1
	mov	x0, x20
	bl	_qup_i2c_get_data_len
Lloh19:
	adrp	x8, _QUP_READ_LIMIT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QUP_READ_LIMIT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w8, wzr, w0, eq
	str	w8, [x19, w21, uxtw #2]
	add	w0, w22, #2
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_TAG_V2_START,4,2           ; @QUP_TAG_V2_START
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_QUP_TAG_V2_DATARD_STOP,4,2     ; @QUP_TAG_V2_DATARD_STOP
	.comm	_QUP_TAG_V2_DATAWR_STOP,4,2     ; @QUP_TAG_V2_DATAWR_STOP
	.comm	_QUP_TAG_V2_DATARD_NACK,4,2     ; @QUP_TAG_V2_DATARD_NACK
	.comm	_QUP_TAG_V2_DATARD,4,2          ; @QUP_TAG_V2_DATARD
	.comm	_QUP_TAG_V2_DATAWR,4,2          ; @QUP_TAG_V2_DATAWR
	.comm	_QUP_READ_LIMIT,4,2             ; @QUP_READ_LIMIT
	.no_dead_strip	_qup_i2c_set_tags
.subsections_via_symbols
