	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qup_i2c_set_tags_smb
_qup_i2c_set_tags_smb:                  ## @qup_i2c_set_tags_smb
	.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, %rbx
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_QUP_TAG_V2_DATARD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rdx, %rdi
	callq	_qup_i2c_get_data_len
	movl	%eax, %ecx
	movl	$2, %eax
	movl	$1, %edx
	jmp	LBB0_6
LBB0_2:
	movq	_QUP_TAG_V2_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movzbl	%dil, %eax
	movl	%eax, 4(%rbx)
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	sarl	$8, %edi
	movl	%edi, 8(%rbx)
	movl	$3, %eax
	jmp	LBB0_5
LBB0_3:
	movl	$2, %eax
LBB0_5:
	movq	_QUP_TAG_V2_DATARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	1(%rax), %edx
	movl	%eax, %esi
	movl	%ecx, (%rbx,%rsi,4)
	addl	$2, %eax
	movl	$1, %ecx
LBB0_6:
	movl	%ecx, (%rbx,%rdx,4)
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUP_TAG_V2_DATARD_STOP,4,2     ## @QUP_TAG_V2_DATARD_STOP
	.comm	_QUP_TAG_V2_START,4,2           ## @QUP_TAG_V2_START
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_QUP_TAG_V2_DATARD,4,2          ## @QUP_TAG_V2_DATARD
	.no_dead_strip	_qup_i2c_set_tags_smb
.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_smb
_qup_i2c_set_tags_smb:                  ; @qup_i2c_set_tags_smb
	.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
	mov	x19, x1
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _QUP_TAG_V2_DATARD_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUP_TAG_V2_DATARD_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x2
	bl	_qup_i2c_get_data_len
	mov	x8, x0
	mov	w0, #2
	mov	w9, #1
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _QUP_TAG_V2_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QUP_TAG_V2_START@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w9, w0, #0xff
	stp	w8, w9, [x19]
	ldr	w8, [x3]
Lloh6:
	adrp	x9, _I2C_M_TEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_TEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	asr	w8, w0, #8
	str	w8, [x19, #8]
	mov	w8, #3
	b	LBB0_5
LBB0_4:
	mov	w8, #2
LBB0_5:
Lloh9:
	adrp	x9, _QUP_TAG_V2_DATARD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _QUP_TAG_V2_DATARD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
	add	w9, w8, #1
	str	w10, [x19, w8, uxtw #2]
	add	w0, w8, #2
	mov	w8, #1
LBB0_6:
	str	w8, [x19, x9, lsl #2]
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_QUP_TAG_V2_DATARD_STOP,4,2     ; @QUP_TAG_V2_DATARD_STOP
	.comm	_QUP_TAG_V2_START,4,2           ; @QUP_TAG_V2_START
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_QUP_TAG_V2_DATARD,4,2          ; @QUP_TAG_V2_DATARD
	.no_dead_strip	_qup_i2c_set_tags_smb
.subsections_via_symbols
