	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ewx_i2c_getdata
_ewx_i2c_getdata:                       ## @ewx_i2c_getdata
	.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	%esi, %r14d
	movq	(%rdi), %r15
	movq	_ICE1712_IREG_GPIO_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICE1712_EWX2496_RW@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	notl	%edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movq	_ICE1712_IREG_GPIO_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_snd_ice1712_write
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movl	$5, %edi
	callq	_udelay
LBB0_2:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_snd_ice1712_read
	movq	_ICE1712_EWX2496_SERIAL_DATA@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	andl	(%rcx), %eax
	setne	%bl
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movq	_ICE1712_IREG_GPIO_WRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ICE1712_EWX2496_SERIAL_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	%r15, %rdi
	callq	_snd_ice1712_write
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ## @ICE1712_IREG_GPIO_WRITE_MASK
	.comm	_ICE1712_EWX2496_RW,4,2         ## @ICE1712_EWX2496_RW
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ## @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_EWX2496_SERIAL_DATA,4,2 ## @ICE1712_EWX2496_SERIAL_DATA
	.comm	_ICE1712_EWX2496_SERIAL_CLOCK,4,2 ## @ICE1712_EWX2496_SERIAL_CLOCK
	.no_dead_strip	_ewx_i2c_getdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ewx_i2c_getdata
_ewx_i2c_getdata:                       ; @ewx_i2c_getdata
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
Lloh0:
	adrp	x21, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ICE1712_IREG_GPIO_WRITE_MASK@GOTPAGEOFF]
	ldr	x19, [x0]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _ICE1712_EWX2496_RW@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ICE1712_EWX2496_RW@GOTPAGEOFF]
	ldr	w8, [x22]
	mvn	w2, w8
	mov	x0, x19
	bl	_snd_ice1712_write
Lloh4:
	adrp	x23, _ICE1712_IREG_GPIO_DATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ICE1712_IREG_GPIO_DATA@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_ice1712_write
	cbz	w20, LBB0_2
; %bb.1:
	mov	w0, #5
	bl	_udelay
LBB0_2:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_snd_ice1712_read
Lloh6:
	adrp	x8, _ICE1712_EWX2496_SERIAL_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE1712_EWX2496_SERIAL_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w20, ne
	ldr	w1, [x23]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_snd_ice1712_write
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _ICE1712_EWX2496_SERIAL_CLOCK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICE1712_EWX2496_SERIAL_CLOCK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	bl	_snd_ice1712_write
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE1712_IREG_GPIO_WRITE_MASK,4,2 ; @ICE1712_IREG_GPIO_WRITE_MASK
	.comm	_ICE1712_EWX2496_RW,4,2         ; @ICE1712_EWX2496_RW
	.comm	_ICE1712_IREG_GPIO_DATA,4,2     ; @ICE1712_IREG_GPIO_DATA
	.comm	_ICE1712_EWX2496_SERIAL_DATA,4,2 ; @ICE1712_EWX2496_SERIAL_DATA
	.comm	_ICE1712_EWX2496_SERIAL_CLOCK,4,2 ; @ICE1712_EWX2496_SERIAL_CLOCK
	.no_dead_strip	_ewx_i2c_getdata
.subsections_via_symbols
