	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_gpio_set
_i2c_gpio_set:                          ## @i2c_gpio_set
	.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
	movq	_i2c_line_scl@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%esi, (%rcx)
	movq	%rdi, %rbx
	setne	%al
	shlq	$4, %rax
	movb	16(%rax,%rdi), %cl
	movl	$1, %r15d
	shlq	%cl, %r15
	movl	%edx, %r12d
	movq	8(%rax,%rdi), %r13
	leaq	48(%rdi), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	_i2c_line_high@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_2
## %bb.1:
	notq	%r13
	andq	40(%rbx), %r13
	jmp	LBB0_3
LBB0_2:
	orq	40(%rbx), %r13
LBB0_3:
	movq	%r13, 40(%rbx)
	movq	56(%rbx), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_ipath_write_kreg
	movq	_i2c_line_high@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_5
## %bb.4:
	orq	(%rbx), %r15
	jmp	LBB0_6
LBB0_5:
	notq	%r15
	andq	(%rbx), %r15
LBB0_6:
	movq	%r15, (%rbx)
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ipath_write_kreg
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %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
	.no_dead_strip	_i2c_gpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_gpio_set
_i2c_gpio_set:                          ; @i2c_gpio_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _i2c_line_scl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i2c_line_scl@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	mov	w8, #24
	mov	w9, #8
	csel	x8, x9, x8, eq
	mov	w9, #32
	mov	w10, #16
	csel	x9, x10, x9, eq
	ldr	x22, [x0, x9]
	mov	w23, #1
	ldr	x25, [x0, x8]
	add	x20, x0, #48
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x24, _i2c_line_high@GOTPAGE
Lloh4:
	ldr	x24, [x24, _i2c_line_high@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	bic	x2, x8, x25
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #40]
	orr	x2, x8, x25
LBB0_3:
	str	x2, [x19, #40]
	lsl	x22, x23, x22
	ldr	x8, [x19, #56]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	w8, [x24]
	cmp	w8, w21
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	orr	x2, x8, x22
	b	LBB0_6
LBB0_5:
	ldr	x8, [x19]
	bic	x2, x8, x22
LBB0_6:
	str	x2, [x19]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipath_write_kreg
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.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
	.no_dead_strip	_i2c_gpio_set
.subsections_via_symbols
