	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_gpio_get
_i2c_gpio_get:                          ## @i2c_gpio_get
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	_i2c_line_scl@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	%esi, (%rax)
	setne	%cl
	movl	(%rdi,%rcx,4), %r13d
	leaq	12(%rdi), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movl	%r13d, %edx
	notl	%edx
	andl	8(%rbx), %edx
	movl	%edx, 8(%rbx)
	movq	16(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_write_kreg
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipath_read_kreg64
	movl	%eax, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	testl	%r13d, %ebx
	jne	LBB0_3
## %bb.4:
	movq	_i2c_line_low@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_i2c_line_high@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_line_scl,4,2               ## @i2c_line_scl
	.comm	_i2c_line_high,4,2              ## @i2c_line_high
	.comm	_i2c_line_low,4,2               ## @i2c_line_low
	.no_dead_strip	_i2c_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_gpio_get
_i2c_gpio_get:                          ; @i2c_gpio_get
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_2
; %bb.1:
	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	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _i2c_line_scl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i2c_line_scl@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w8, ne
	ldr	w22, [x0, w8, uxtw #2]
	add	x21, x0, #12
	mov	x0, x21
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	w8, [x20, #8]
	bic	w2, w8, w22
	str	w2, [x20, #8]
	ldr	x8, [x20, #16]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_ipath_write_kreg
	ldr	x8, [x20, #16]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ipath_read_kreg64
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	w0, #0
Lloh3:
	adrp	x8, _i2c_line_low@GOTPAGE
Lloh4:
	ldr	x8, [x8, _i2c_line_low@GOTPAGEOFF]
Lloh5:
	adrp	x9, _i2c_line_high@GOTPAGE
Lloh6:
	ldr	x9, [x9, _i2c_line_high@GOTPAGEOFF]
	tst	w20, w22
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	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
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #1
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_line_scl,4,2               ; @i2c_line_scl
	.comm	_i2c_line_high,4,2              ; @i2c_line_high
	.comm	_i2c_line_low,4,2               ; @i2c_line_low
	.no_dead_strip	_i2c_gpio_get
.subsections_via_symbols
