	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __i2c_bit_add_bus
___i2c_bit_add_bus:                     ## @__i2c_bit_add_bus
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	_bit_test@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_test_bus
	cmpl	$2, (%r12)
	jl	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	movq	_i2c_bit_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movl	$3, (%rbx)
	cmpq	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	_i2c_bit_quirk_no_clk_stretch@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	*%r14
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	xorl	%r14d, %r14d
	cmpq	$0, (%r15)
	jne	LBB0_10
## %bb.9:
	addq	$4, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bit_test,4,2                   ## @bit_test
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_i2c_bit_algo,4,2               ## @i2c_bit_algo
	.comm	_i2c_bit_quirk_no_clk_stretch,4,2 ## @i2c_bit_quirk_no_clk_stretch
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not I2C compliant: can't read SCL\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bus may be unreliable\n"

	.no_dead_strip	___i2c_bit_add_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __i2c_bit_add_bus
___i2c_bit_add_bus:                     ; @__i2c_bit_add_bus
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #24]
Lloh0:
	adrp	x22, _bit_test@GOTPAGE
Lloh1:
	ldr	x22, [x22, _bit_test@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_test_bus
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	tbz	w0, #31, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x8, _i2c_bit_algo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _i2c_bit_algo@GOTPAGEOFF]
	str	x8, [x19, #16]
	mov	w8, #3
	str	w8, [x19]
	ldr	x8, [x21]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _i2c_bit_quirk_no_clk_stretch@GOTPAGE
Lloh8:
	ldr	x8, [x8, _i2c_bit_quirk_no_clk_stretch@GOTPAGEOFF]
	str	x8, [x19, #8]
LBB0_6:
	mov	x0, x19
	blr	x20
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	x8, [x21]
	cbnz	x8, LBB0_9
; %bb.8:
	add	x19, x19, #4
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_bit_test,4,2                   ; @bit_test
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_i2c_bit_algo,4,2               ; @i2c_bit_algo
	.comm	_i2c_bit_quirk_no_clk_stretch,4,2 ; @i2c_bit_quirk_no_clk_stretch
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not I2C compliant: can't read SCL\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bus may be unreliable\n"

	.no_dead_strip	___i2c_bit_add_bus
.subsections_via_symbols
