	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dibx000_i2c_gated_tuner_xfer
_dibx000_i2c_gated_tuner_xfer:          ## @dibx000_i2c_gated_tuner_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	$72, %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	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_i2c_get_adapdata
	movq	%rax, %r13
	leal	2(%r14), %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(,%rax,8), %rax
	leaq	(%rax,%rax,2), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leal	(,%r14,8), %r15d
	leal	(%r15,%r15,2), %edx
	addl	$48, %edx
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	_DIBX000_I2C_INTERFACE_TUNER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dibx000_i2c_select_interface
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	16(%r14), %edx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %ecx
	callq	_dibx000_i2c_gate_ctrl
	movl	4(%r13), %eax
	movl	%eax, 16(%rbx)
	leaq	-64(%rbp), %rax
	movq	%rax, 8(%rbx)
	movl	$4, (%rbx)
	leaq	24(%rbx), %rdi
	leal	(%r15,%r15,2), %edx
	movq	%r14, %rsi
	callq	_memcpy
	leaq	-80(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_dibx000_i2c_gate_ctrl
	movl	4(%r13), %eax
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	leal	1(%r15), %ecx
	movslq	%ecx, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	%eax, 16(%rbx,%rcx,8)
	movq	%r14, 8(%rbx,%rcx,8)
	movl	$4, (%rbx,%rcx,8)
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_i2c_transfer
	movq	_EIO@GOTPCREL(%rip), %rcx
	subl	(%rcx), %r12d
	cmpl	%ebx, %eax
	cmovel	%r15d, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DIBX000_I2C_INTERFACE_TUNER,4,2 ## @DIBX000_I2C_INTERFACE_TUNER
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dibx000_i2c_gated_tuner_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dibx000_i2c_gated_tuner_xfer
_dibx000_i2c_gated_tuner_xfer:          ; @dibx000_i2c_gated_tuner_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #48
	mov	x19, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_i2c_get_adapdata
	mov	x21, x0
	add	w20, w19, #2
	mov	w25, #24
	umull	x9, w20, w25
	add	x8, x9, #15
	and	x8, x8, #0x3ffffffff0
Lloh3:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh4:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
	add	w8, w19, w19, lsl #1
	lsl	w24, w8, #3
	add	w2, w24, #48
	mov	x0, x23
	mov	w1, #0
	bl	_memset
Lloh5:
	adrp	x8, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIBX000_I2C_INTERFACE_TUNER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dibx000_i2c_select_interface
	ldr	w2, [x22, #16]
	sub	x26, x29, #88
	sub	x1, x29, #88
	mov	x0, x21
	mov	w3, #1
	bl	_dibx000_i2c_gate_ctrl
	ldr	w8, [x21, #4]
	str	w8, [x23, #16]
	str	x26, [x23, #8]
	mov	w26, #4
	str	w26, [x23]
	add	x0, x23, #24
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	sub	x22, x29, #104
	sub	x1, x29, #104
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_dibx000_i2c_gate_ctrl
	ldr	w8, [x21, #4]
	smaddl	x9, w19, w25, x23
	str	w8, [x9, #40]
	str	x22, [x9, #32]
	str	w26, [x9, #24]
	ldr	w0, [x21]
	mov	x1, x23
	mov	x2, x20
	bl	_i2c_transfer
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w20
	csneg	w0, w19, w8, eq
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DIBX000_I2C_INTERFACE_TUNER,4,2 ; @DIBX000_I2C_INTERFACE_TUNER
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dibx000_i2c_gated_tuner_xfer
.subsections_via_symbols
