	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_check_for_quirks
_i2c_check_for_quirks:                  ## @i2c_check_for_quirks
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movl	4(%r12), %eax
	movq	_I2C_AQ_COMB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movl	$2, %esi
	cmpl	$2, %r15d
	jne	LBB0_2
## %bb.6:
	movq	_I2C_AQ_COMB_WRITE_FIRST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.7:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_11
## %bb.8:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_9
LBB0_1:
	movl	(%r12), %esi
LBB0_2:
	movl	%r15d, %edi
	callq	_i2c_quirk_exceeded
	testq	%rax, %rax
	je	LBB0_3
LBB0_38:
	leaq	L_.str.4(%rip), %rdx
LBB0_9:
	movq	%r14, %rdi
LBB0_10:
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_quirk_error                ## TAILCALL
LBB0_3:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	jle	LBB0_37
## %bb.4:
	xorl	%r13d, %r13d
LBB0_23:
	movl	%r15d, %r14d
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_24 Depth=1
	addq	$24, %rbx
	decq	%r14
	je	LBB0_37
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %r15d
	movl	(%rcx), %eax
	testl	%eax, (%rbx)
	je	LBB0_33
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_29
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	16(%r12), %esi
	movl	%r15d, %edi
	callq	_i2c_quirk_exceeded
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_27
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_I2C_AQ_NO_ZERO_LEN_READ@GOTPCREL(%rip), %rax
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_24 Depth=1
	testb	%r13b, %r13b
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	20(%r12), %esi
	movl	%r15d, %edi
	callq	_i2c_quirk_exceeded
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_27
LBB0_35:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_I2C_AQ_NO_ZERO_LEN_WRITE@GOTPCREL(%rip), %rax
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_36
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=1
	testl	%r15d, %r15d
	jne	LBB0_36
## %bb.32:
	leaq	L_.str.5(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_11:
	movq	_I2C_AQ_COMB_READ_SECOND@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%rbx)
	je	LBB0_13
LBB0_14:
	movq	_I2C_AQ_COMB_SAME_ADDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.15:
	movq	8(%rbx), %rax
	cmpq	32(%rbx), %rax
	jne	LBB0_16
LBB0_17:
	movl	16(%rbx), %edi
	movl	8(%r12), %esi
	callq	_i2c_quirk_exceeded
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
LBB0_37:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_9
LBB0_13:
	addq	$24, %rbx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_9
LBB0_19:
	movl	40(%rbx), %edi
	movl	12(%r12), %esi
	callq	_i2c_quirk_exceeded
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	addq	$24, %rbx
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
LBB0_27:
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_21:
	movl	%r15d, %edi
	movl	$2, %esi
	callq	_i2c_quirk_exceeded
	testq	%rax, %rax
	jne	LBB0_38
## %bb.22:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movb	$1, %r13b
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_AQ_COMB,4,2                ## @I2C_AQ_COMB
	.comm	_I2C_AQ_COMB_WRITE_FIRST,4,2    ## @I2C_AQ_COMB_WRITE_FIRST
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1st comb msg must be write"

	.comm	_I2C_AQ_COMB_READ_SECOND,4,2    ## @I2C_AQ_COMB_READ_SECOND
L_.str.1:                               ## @.str.1
	.asciz	"2nd comb msg must be read"

	.comm	_I2C_AQ_COMB_SAME_ADDR,4,2      ## @I2C_AQ_COMB_SAME_ADDR
L_.str.2:                               ## @.str.2
	.asciz	"comb msg only to same addr"

L_.str.3:                               ## @.str.3
	.asciz	"msg too long"

L_.str.4:                               ## @.str.4
	.asciz	"too many messages"

	.comm	_I2C_AQ_NO_ZERO_LEN_READ,4,2    ## @I2C_AQ_NO_ZERO_LEN_READ
L_.str.5:                               ## @.str.5
	.asciz	"no zero length"

	.comm	_I2C_AQ_NO_ZERO_LEN_WRITE,4,2   ## @I2C_AQ_NO_ZERO_LEN_WRITE
	.no_dead_strip	_i2c_check_for_quirks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_check_for_quirks
_i2c_check_for_quirks:                  ; @i2c_check_for_quirks
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	w8, [x22, #4]
Lloh0:
	adrp	x9, _I2C_AQ_COMB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_AQ_COMB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #2
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x9, _I2C_AQ_COMB_WRITE_FIRST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_AQ_COMB_WRITE_FIRST@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_24
; %bb.3:
	ldr	w10, [x19]
	ldr	w11, [x9]
	tst	w11, w10
	b.eq	LBB0_24
; %bb.4:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	w1, [x22]
	b	LBB0_7
LBB0_6:
	mov	w1, #2
LBB0_7:
	mov	x0, x21
	bl	_i2c_quirk_exceeded
	cbz	x0, LBB0_11
LBB0_8:
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_9:
	mov	x0, x20
	mov	x1, x19
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_i2c_quirk_error
LBB0_11:
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.12:
	mov	w23, #0
LBB0_13:
	mov	w24, w21
Lloh12:
	adrp	x25, _I2C_M_RD@GOTPAGE
Lloh13:
	ldr	x25, [x25, _I2C_M_RD@GOTPAGEOFF]
Lloh14:
	adrp	x26, _I2C_AQ_NO_ZERO_LEN_WRITE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _I2C_AQ_NO_ZERO_LEN_WRITE@GOTPAGEOFF]
Lloh16:
	adrp	x27, _I2C_AQ_NO_ZERO_LEN_READ@GOTPAGE
Lloh17:
	ldr	x27, [x27, _I2C_AQ_NO_ZERO_LEN_READ@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #16]
	ldr	w8, [x19]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	tbnz	w23, #0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x22, #16]
	mov	x0, x21
	bl	_i2c_quirk_exceeded
	cbnz	x0, LBB0_29
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x22, #4]
	ldr	w9, [x27]
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	tbnz	w23, #0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w1, [x22, #20]
	mov	x0, x21
	bl	_i2c_quirk_exceeded
	cbnz	x0, LBB0_29
LBB0_20:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x22, #4]
	ldr	w9, [x26]
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w21, #0, #0, ne
	b.eq	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x19, x19, #24
	subs	x24, x24, #1
	b.ne	LBB0_14
LBB0_23:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh18:
	adrp	x10, _I2C_AQ_COMB_READ_SECOND@GOTPAGE
Lloh19:
	ldr	x10, [x10, _I2C_AQ_COMB_READ_SECOND@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_26
; %bb.25:
	mov	x1, x19
	ldr	w10, [x1, #24]!
	ldr	w9, [x9]
	tst	w9, w10
	b.eq	LBB0_32
LBB0_26:
Lloh21:
	adrp	x9, _I2C_AQ_COMB_SAME_ADDR@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I2C_AQ_COMB_SAME_ADDR@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.27:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #32]
	cmp	x8, x9
	b.ne	LBB0_31
LBB0_28:
	ldr	w0, [x19, #16]
	ldr	w1, [x22, #8]
	bl	_i2c_quirk_exceeded
	cbz	x0, LBB0_33
LBB0_29:
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_30:
Lloh26:
	adrp	x2, l_.str.5@PAGE
Lloh27:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_31:
Lloh28:
	adrp	x2, l_.str.2@PAGE
Lloh29:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_32:
Lloh30:
	adrp	x2, l_.str.1@PAGE
Lloh31:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_35
LBB0_33:
	ldr	w0, [x19, #40]
	ldr	w1, [x22, #12]
	bl	_i2c_quirk_exceeded
	cbz	x0, LBB0_36
; %bb.34:
	add	x1, x19, #24
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_35:
	mov	x0, x20
	b	LBB0_10
LBB0_36:
	mov	x0, x21
	mov	w1, #2
	bl	_i2c_quirk_exceeded
	cbnz	x0, LBB0_8
; %bb.37:
	mov	w23, #1
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_AQ_COMB,4,2                ; @I2C_AQ_COMB
	.comm	_I2C_AQ_COMB_WRITE_FIRST,4,2    ; @I2C_AQ_COMB_WRITE_FIRST
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1st comb msg must be write"

	.comm	_I2C_AQ_COMB_READ_SECOND,4,2    ; @I2C_AQ_COMB_READ_SECOND
l_.str.1:                               ; @.str.1
	.asciz	"2nd comb msg must be read"

	.comm	_I2C_AQ_COMB_SAME_ADDR,4,2      ; @I2C_AQ_COMB_SAME_ADDR
l_.str.2:                               ; @.str.2
	.asciz	"comb msg only to same addr"

l_.str.3:                               ; @.str.3
	.asciz	"msg too long"

l_.str.4:                               ; @.str.4
	.asciz	"too many messages"

	.comm	_I2C_AQ_NO_ZERO_LEN_READ,4,2    ; @I2C_AQ_NO_ZERO_LEN_READ
l_.str.5:                               ; @.str.5
	.asciz	"no zero length"

	.comm	_I2C_AQ_NO_ZERO_LEN_WRITE,4,2   ; @I2C_AQ_NO_ZERO_LEN_WRITE
	.no_dead_strip	_i2c_check_for_quirks
.subsections_via_symbols
