	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_encode_flags_to_addr
_i2c_encode_flags_to_addr:              ## @i2c_encode_flags_to_addr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %edx
	movq	_I2C_CLIENT_TEN@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	movl	$0, %ecx
	testl	%edx, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_I2C_ADDR_OFFSET_TEN_BIT@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ecx
LBB0_2:
	orw	(%rdi), %cx
	movq	_I2C_CLIENT_SLAVE@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_4
## %bb.3:
	movq	_I2C_ADDR_OFFSET_SLAVE@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
LBB0_4:
	orl	%eax, %ecx
	movzwl	%cx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CLIENT_TEN,4,2             ## @I2C_CLIENT_TEN
	.comm	_I2C_ADDR_OFFSET_TEN_BIT,2,1    ## @I2C_ADDR_OFFSET_TEN_BIT
	.comm	_I2C_CLIENT_SLAVE,4,2           ## @I2C_CLIENT_SLAVE
	.comm	_I2C_ADDR_OFFSET_SLAVE,2,1      ## @I2C_ADDR_OFFSET_SLAVE
	.no_dead_strip	_i2c_encode_flags_to_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_encode_flags_to_addr
_i2c_encode_flags_to_addr:              ; @i2c_encode_flags_to_addr
	.cfi_startproc
; %bb.0:
	ldrh	w8, [x0]
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x10, _I2C_CLIENT_TEN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I2C_CLIENT_TEN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _I2C_ADDR_OFFSET_TEN_BIT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _I2C_ADDR_OFFSET_TEN_BIT@GOTPAGEOFF]
	ldrh	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh5:
	adrp	x10, _I2C_CLIENT_SLAVE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I2C_CLIENT_SLAVE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
Lloh8:
	adrp	x11, _I2C_ADDR_OFFSET_SLAVE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _I2C_ADDR_OFFSET_SLAVE@GOTPAGEOFF]
	ldrh	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
	and	w0, w8, #0xffff
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CLIENT_TEN,4,2             ; @I2C_CLIENT_TEN
	.comm	_I2C_ADDR_OFFSET_TEN_BIT,2,1    ; @I2C_ADDR_OFFSET_TEN_BIT
	.comm	_I2C_CLIENT_SLAVE,4,2           ; @I2C_CLIENT_SLAVE
	.comm	_I2C_ADDR_OFFSET_SLAVE,2,1      ; @I2C_ADDR_OFFSET_SLAVE
	.no_dead_strip	_i2c_encode_flags_to_addr
.subsections_via_symbols
