	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function functionality
_functionality:                         ## @functionality
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_EM28XX_I2C_ALGO_EM28XX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_EM28XX_I2C_ALGO_EM25XX_BUS_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_EM28XX_I2C_ALGO_EM2800@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movq	_I2C_FUNC_SMBUS_EMUL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rcx
	movq	_I2C_FUNC_SMBUS_EMUL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EM28XX_I2C_ALGO_EM28XX,8,3     ## @EM28XX_I2C_ALGO_EM28XX
	.comm	_EM28XX_I2C_ALGO_EM25XX_BUS_B,8,3 ## @EM28XX_I2C_ALGO_EM25XX_BUS_B
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_EMUL,4,2        ## @I2C_FUNC_SMBUS_EMUL
	.comm	_EM28XX_I2C_ALGO_EM2800,8,3     ## @EM28XX_I2C_ALGO_EM2800
	.comm	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA,4,2 ## @I2C_FUNC_SMBUS_WRITE_BLOCK_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown i2c bus algorithm.\n"

	.no_dead_strip	_functionality
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function functionality
_functionality:                         ; @functionality
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _EM28XX_I2C_ALGO_EM28XX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EM28XX_I2C_ALGO_EM28XX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _EM28XX_I2C_ALGO_EM25XX_BUS_B@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EM28XX_I2C_ALGO_EM25XX_BUS_B@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _I2C_FUNC_SMBUS_EMUL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_EMUL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x9, _EM28XX_I2C_ALGO_EM2800@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EM28XX_I2C_ALGO_EM2800@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _I2C_FUNC_SMBUS_EMUL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_EMUL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I2C_FUNC_SMBUS_WRITE_BLOCK_DATA@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	bic	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EM28XX_I2C_ALGO_EM28XX,8,3     ; @EM28XX_I2C_ALGO_EM28XX
	.comm	_EM28XX_I2C_ALGO_EM25XX_BUS_B,8,3 ; @EM28XX_I2C_ALGO_EM25XX_BUS_B
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_I2C_FUNC_SMBUS_EMUL,4,2        ; @I2C_FUNC_SMBUS_EMUL
	.comm	_EM28XX_I2C_ALGO_EM2800,8,3     ; @EM28XX_I2C_ALGO_EM2800
	.comm	_I2C_FUNC_SMBUS_WRITE_BLOCK_DATA,4,2 ; @I2C_FUNC_SMBUS_WRITE_BLOCK_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown i2c bus algorithm.\n"

	.no_dead_strip	_functionality
.subsections_via_symbols
