	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i3c_bus_set_addr_slot_status
_i3c_bus_set_addr_slot_status:          ## @i3c_bus_set_addr_slot_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_I2C_MAX_ADDR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_2
## %bb.1:
	movl	%edx, %r8d
	addl	%esi, %esi
	movq	(%rdi), %rdi
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %ecx
	cltq
	movq	_I3C_ADDR_SLOT_STATUS_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	%cl, %rdx
	notq	%rdx
	movl	%r8d, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	andq	(%rdi,%rax,8), %rdx
	orq	%rdx, %rsi
	movq	%rsi, (%rdi,%rax,8)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_MAX_ADDR,4,2               ## @I2C_MAX_ADDR
	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_I3C_ADDR_SLOT_STATUS_MASK,8,3  ## @I3C_ADDR_SLOT_STATUS_MASK
	.no_dead_strip	_i3c_bus_set_addr_slot_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i3c_bus_set_addr_slot_status
_i3c_bus_set_addr_slot_status:          ; @i3c_bus_set_addr_slot_status
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _I2C_MAX_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_MAX_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_2
; %bb.1:
	lsl	w8, w1, #1
	ldr	x9, [x0]
Lloh3:
	adrp	x10, _BITS_PER_LONG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BITS_PER_LONG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sdiv	w11, w8, w10
Lloh6:
	adrp	x12, _I3C_ADDR_SLOT_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x12, [x12, _I3C_ADDR_SLOT_STATUS_MASK@GOTPAGEOFF]
	sbfiz	x13, x11, #3, #32
Lloh8:
	ldr	x12, [x12]
	msub	w8, w11, w10, w8
	lsl	x10, x12, x8
	ldr	x11, [x9, x13]
	bic	x10, x11, x10
	mov	w11, w2
	lsl	x8, x11, x8
	orr	x8, x10, x8
	str	x8, [x9, x13]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_MAX_ADDR,4,2               ; @I2C_MAX_ADDR
	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_I3C_ADDR_SLOT_STATUS_MASK,8,3  ; @I3C_ADDR_SLOT_STATUS_MASK
	.no_dead_strip	_i3c_bus_set_addr_slot_status
.subsections_via_symbols
