	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dib7000m_write_word
LCPI0_0:
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dib7000m_write_word:                   ## @dib7000m_write_word
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	%r12d, %eax
	shrl	$8, %eax
	movq	(%rbx), %rcx
	movl	%r15d, %edx
	shrl	$8, %edx
	movd	%eax, %xmm0
	pinsrd	$1, %r12d, %xmm0
	pinsrd	$2, %edx, %xmm0
	pinsrd	$3, %r15d, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movdqu	%xmm0, (%rcx)
	movq	16(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	8(%rbx), %eax
	sarl	%eax
	movq	16(%rbx), %rsi
	movl	%eax, (%rsi)
	movq	$0, 24(%rsi)
	movq	(%rbx), %rax
	movq	%rax, 8(%rsi)
	movl	$4, 16(%rsi)
	movl	24(%rbx), %edi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpl	$1, %eax
	cmovel	%r15d, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not acquire lock\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_dib7000m_write_word
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000m_write_word
_dib7000m_write_word:                   ; @dib7000m_write_word
	.cfi_startproc
; %bb.0:
	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	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ubfx	w8, w22, #8, #8
	ldr	x9, [x20]
	and	w10, w22, #0xff
	stp	w8, w10, [x9]
	ubfx	w8, w21, #8, #8
	and	w10, w21, #0xff
	stp	w8, w10, [x9, #8]
	ldr	x0, [x20, #16]
	mov	w21, #4
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x20, #8]
	asr	w8, w8, #1
	ldr	x1, [x20, #16]
	str	w8, [x1]
	str	xzr, [x1, #24]
	ldr	x8, [x20]
	str	x8, [x1, #8]
	str	w21, [x1, #16]
	ldr	w0, [x20, #24]
	mov	w2, #1
	bl	_i2c_transfer
Lloh0:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w20, wzr, w8, eq
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not acquire lock\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_dib7000m_write_word
.subsections_via_symbols
