	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_fw_component_bus_xfer
_dib9000_fw_component_bus_xfer:         ## @dib9000_fw_component_bus_xfer
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, %rbx
	movq	_DIBX000_I2C_INTERFACE_GPIO_3_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	movq	16(%rbx), %rdx
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movq	_FE_MM_RW_COMPONENT_ACCESS_BUFFER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movl	$0, -64(%rbp)
	movl	%eax, -108(%rbp)
	movl	(%r15), %eax
	addl	%eax, %eax
	movl	%eax, -104(%rbp)
	movzbl	%cl, %eax
	movl	%eax, -100(%rbp)
	sarl	$8, %ecx
	movl	%ecx, -96(%rbp)
	movl	$0, -80(%rbp)
	movl	4(%r15), %eax
	movl	%eax, -76(%rbp)
	sarl	$8, %eax
	movl	%eax, -72(%rbp)
	xorl	%eax, %eax
	cmpl	$2, %r14d
	jl	LBB0_3
## %bb.1:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 24(%r15)
	je	LBB0_3
## %bb.2:
	movl	20(%r15), %eax
	movl	%eax, -68(%rbp)
	sarl	$8, %eax
LBB0_3:
	movl	%eax, -64(%rbp)
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_9
## %bb.4:
	movq	_FE_MM_W_COMPONENT_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_dib9000_risc_mem_write
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r13,4), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_dib9000_risc_mem_setup_cmd
	movl	4(%r15), %edx
	movl	12(%r15), %esi
	movq	%rbx, %rdi
	callq	_dib9000_risc_mem_write_chunks
	movq	_FE_SYNC_COMPONENT_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib9000_fw_memmbx_sync
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	cmpl	$2, %r14d
	jl	LBB0_8
## %bb.6:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r15)
	je	LBB0_8
## %bb.7:
	movq	_FE_MM_RW_COMPONENT_ACCESS_BUFFER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	20(%r15), %ecx
	movl	28(%r15), %edx
	movq	%rbx, %rdi
	callq	_dib9000_risc_mem_read
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIBX000_I2C_INTERFACE_GPIO_3_4,4,2 ## @DIBX000_I2C_INTERFACE_GPIO_3_4
	.comm	_FE_MM_RW_COMPONENT_ACCESS_BUFFER,8,3 ## @FE_MM_RW_COMPONENT_ACCESS_BUFFER
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not get the lock\n"

	.comm	_FE_MM_W_COMPONENT_ACCESS,4,2   ## @FE_MM_W_COMPONENT_ACCESS
	.comm	_FE_SYNC_COMPONENT_ACCESS,4,2   ## @FE_SYNC_COMPONENT_ACCESS
	.no_dead_strip	_dib9000_fw_component_bus_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_fw_component_bus_xfer
_dib9000_fw_component_bus_xfer:         ; @dib9000_fw_component_bus_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	bl	_i2c_get_adapdata
	mov	x21, x0
	mov	w8, #0
Lloh3:
	adrp	x9, _DIBX000_I2C_INTERFACE_GPIO_3_4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIBX000_I2C_INTERFACE_GPIO_3_4@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x0]
	ldr	x24, [x0, #16]
Lloh6:
	adrp	x23, _FE_MM_RW_COMPONENT_ACCESS_BUFFER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FE_MM_RW_COMPONENT_ACCESS_BUFFER@GOTPAGEOFF]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldp	w11, w12, [x20]
	lsl	w11, w11, #1
	stp	w9, w11, [sp, #4]
	and	w9, w10, #0xff
	asr	w10, w10, #8
	stp	w9, w10, [sp, #12]
	ldr	x25, [x23]
	str	q0, [sp, #32]
	stp	wzr, w12, [sp, #32]
	asr	w9, w12, #8
	str	wzr, [sp, #48]
	str	w9, [sp, #40]
	cmp	w19, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	w8, [x20, #24]
Lloh8:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	w8, [x20, #20]
	str	w8, [sp, #44]
	asr	w8, w8, #8
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	str	w8, [sp, #48]
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_10
; %bb.5:
Lloh11:
	adrp	x8, _FE_MM_W_COMPONENT_ACCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FE_MM_W_COMPONENT_ACCESS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_dib9000_risc_mem_write
	ldr	w1, [x24, x25, lsl #2]
	ldr	w2, [x20, #4]
	mov	x0, x21
	mov	w3, #0
	bl	_dib9000_risc_mem_setup_cmd
	ldr	w1, [x20, #12]
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_dib9000_risc_mem_write_chunks
Lloh14:
	adrp	x8, _FE_SYNC_COMPONENT_ACCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FE_SYNC_COMPONENT_ACCESS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dib9000_fw_memmbx_sync
	tbnz	x0, #63, LBB0_11
; %bb.6:
	cmp	w19, #2
	b.lt	LBB0_9
; %bb.7:
	ldr	w8, [x20, #24]
Lloh17:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x1, [x23]
	ldr	w2, [x20, #28]
	ldr	w3, [x20, #20]
	mov	x0, x21
	bl	_dib9000_risc_mem_read
LBB0_9:
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	b	LBB0_12
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_12:
	mov	w19, #0
LBB0_13:
	ldr	x8, [sp, #56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_DIBX000_I2C_INTERFACE_GPIO_3_4,4,2 ; @DIBX000_I2C_INTERFACE_GPIO_3_4
	.comm	_FE_MM_RW_COMPONENT_ACCESS_BUFFER,8,3 ; @FE_MM_RW_COMPONENT_ACCESS_BUFFER
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not get the lock\n"

	.comm	_FE_MM_W_COMPONENT_ACCESS,4,2   ; @FE_MM_W_COMPONENT_ACCESS
	.comm	_FE_SYNC_COMPONENT_ACCESS,4,2   ; @FE_SYNC_COMPONENT_ACCESS
	.no_dead_strip	_dib9000_fw_component_bus_xfer
.subsections_via_symbols
