	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_reg_fp
_write_reg_fp:                          ## @write_reg_fp
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	4(%rdi), %edi
	callq	_i2c_get_adapdata
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_i2c_get_clientdata
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	_STATUS_SHUTDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %r14
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rdi
	movl	$205, %esi
	movl	$6, %edx
	callq	_memset
	movq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%r14, %rdi
	callq	_kfree
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movl	$87, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	movl	$16, %r9d
	callq	_go7007_usb_vendor_request
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_14
## %bb.12:
	cmpq	$0, (%r14)
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_15:
	movl	32(%r14), %ebx
	shll	$8, %ebx
	addl	40(%r14), %ebx
	movl	16(%r14), %r15d
	shll	$8, %r15d
	addl	24(%r14), %r15d
	movq	%r14, %rdi
	callq	_kfree
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r15d
	jne	LBB0_19
## %bb.16:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %ebx
	jne	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	cmpl	$299, %ecx                      ## imm = 0x12B
	jne	LBB0_10
## %bb.18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	jmp	LBB0_10
LBB0_19:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%r15d, %edx
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
LBB0_21:
	xorl	%eax, %eax
	callq	_dev_info
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_STATUS_SHUTDOWN,8,3            ## @STATUS_SHUTDOWN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c lock failed\n"

	.comm	_EINTR,4,2                      ## @EINTR
L_.str.1:                               ## @.str.1
	.asciz	"invalid fp write %x %x\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"invalid fp write addr %x %x\n"

	.no_dead_strip	_write_reg_fp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_reg_fp
_write_reg_fp:                          ; @write_reg_fp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_i2c_get_adapdata
	mov	x24, x0
	mov	x0, x19
	bl	_i2c_get_clientdata
	cbz	x24, LBB0_3
; %bb.1:
	ldr	x8, [x24]
Lloh0:
	adrp	x9, _STATUS_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_20
LBB0_3:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_20
LBB0_4:
	mov	x22, x0
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	mov	w1, #205
	mov	w2, #6
	bl	_memset
	ldr	x25, [x24, #8]
	mov	x0, x25
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_8
; %bb.6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x23
	bl	_kfree
Lloh12:
	adrp	x8, _EINTR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_8:
	mov	x0, x24
	mov	w1, #87
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	mov	w5, #16
	mov	w6, #1
	bl	_go7007_usb_vendor_request
	mov	x24, x0
	mov	x0, x25
	bl	_mutex_unlock
	tbnz	w24, #31, LBB0_11
; %bb.9:
	ldr	x8, [x23]
	cbz	x8, LBB0_12
; %bb.10:
	mov	x0, x23
	bl	_kfree
	b	LBB0_19
LBB0_11:
	mov	x0, x23
	bl	_kfree
	b	LBB0_21
LBB0_12:
	ldr	w25, [x23, #32]
	ldr	w26, [x23, #40]
	ldr	w8, [x23, #16]
	ldr	w9, [x23, #24]
	add	w24, w9, w8, lsl #8
	mov	x0, x23
	bl	_kfree
	cmp	w24, w20
	b.ne	LBB0_16
; %bb.13:
	add	w8, w26, w25, lsl #8
	cmp	w8, w21
	b.ne	LBB0_17
; %bb.14:
	cmp	w21, #299
	b.ne	LBB0_22
; %bb.15:
	mov	w24, #0
	str	w20, [x22]
	b	LBB0_21
LBB0_16:
	stp	x24, x20, [sp]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
	stp	x8, x21, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_info
LBB0_19:
Lloh20:
	adrp	x8, _EFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_21:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_22:
	mov	w24, #0
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_STATUS_SHUTDOWN,8,3            ; @STATUS_SHUTDOWN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c lock failed\n"

	.comm	_EINTR,4,2                      ; @EINTR
l_.str.1:                               ; @.str.1
	.asciz	"invalid fp write %x %x\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"invalid fp write addr %x %x\n"

	.no_dead_strip	_write_reg_fp
.subsections_via_symbols
