	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ewx_i2c_direction
_ewx_i2c_direction:                     ## @ewx_i2c_direction
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	testl	%esi, %esi
	movq	_ICE1712_EWX2496_SERIAL_CLOCK@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	cmovnel	%eax, %esi
	movq	(%rdi), %r14
	testl	%edx, %edx
	movq	_ICE1712_EWX2496_SERIAL_DATA@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	cmovnel	%ecx, %ebx
	orl	%esi, %ebx
	orl	%eax, %ecx
	notb	%cl
	andb	(%r14), %cl
	orb	%bl, %cl
	movb	%cl, (%r14)
	movq	_ICE1712_IREG_GPIO_DIRECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%cl, %edx
	movq	%r14, %rdi
	callq	_snd_ice1712_write
	movq	_ICE1712_IREG_GPIO_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notb	%bl
	movzbl	%bl, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_ice1712_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_EWX2496_SERIAL_CLOCK,1,0 ## @ICE1712_EWX2496_SERIAL_CLOCK
	.comm	_ICE1712_EWX2496_SERIAL_DATA,1,0 ## @ICE1712_EWX2496_SERIAL_DATA
	.comm	_ICE1712_IREG_GPIO_DIRECTION,4,2 ## @ICE1712_IREG_GPIO_DIRECTION
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ## @ICE1712_IREG_GPIO_WRITE_MASK
	.no_dead_strip	_ewx_i2c_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ewx_i2c_direction
_ewx_i2c_direction:                     ; @ewx_i2c_direction
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _ICE1712_EWX2496_SERIAL_CLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ICE1712_EWX2496_SERIAL_CLOCK@GOTPAGEOFF]
	ldrb	w8, [x8]
	cmp	w1, #0
	csel	w9, wzr, w8, eq
Lloh2:
	adrp	x10, _ICE1712_EWX2496_SERIAL_DATA@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ICE1712_EWX2496_SERIAL_DATA@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w2, #0
	csel	w11, wzr, w10, eq
	orr	w20, w11, w9
	orr	w8, w10, w8
	ldrb	w9, [x19]
	bic	w8, w9, w8
	orr	w8, w8, w20
	strb	w8, [x19]
Lloh4:
	adrp	x9, _ICE1712_IREG_GPIO_DIRECTION@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ICE1712_IREG_GPIO_DIRECTION@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x19
	bl	_snd_ice1712_write
Lloh7:
	adrp	x8, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mvn	w8, w20
	and	w2, w8, #0xff
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_ice1712_write
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_EWX2496_SERIAL_CLOCK,1,0 ; @ICE1712_EWX2496_SERIAL_CLOCK
	.comm	_ICE1712_EWX2496_SERIAL_DATA,1,0 ; @ICE1712_EWX2496_SERIAL_DATA
	.comm	_ICE1712_IREG_GPIO_DIRECTION,4,2 ; @ICE1712_IREG_GPIO_DIRECTION
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ; @ICE1712_IREG_GPIO_WRITE_MASK
	.no_dead_strip	_ewx_i2c_direction
.subsections_via_symbols
