	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_i2c_eeprom_md7134_gate
_saa7134_i2c_eeprom_md7134_gate:        ## @saa7134_i2c_eeprom_md7134_gate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	$7, -120(%rbp)
	movl	$8, -80(%rbp)
	leaq	-120(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	$1, -64(%rbp)
	movl	$8, -56(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	$1, -40(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	$8, -112(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$2, -96(%rbp)
	leaq	4(%rdi), %rbx
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_i2c_transfer
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.1:
	testb	$2, -116(%rbp)
	je	LBB0_4
## %bb.2:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movl	-120(%rbp), %eax
	movl	%eax, -32(%rbp)
	movl	-116(%rbp), %eax
	andl	$-3, %eax
	movl	%eax, -28(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	cmpl	$1, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: DVB-T demod i2c gate was left open\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: EEPROM i2c gate close failure\n"

	.no_dead_strip	_saa7134_i2c_eeprom_md7134_gate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function saa7134_i2c_eeprom_md7134_gate
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
lCPI0_1:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_saa7134_i2c_eeprom_md7134_gate:        ; @saa7134_i2c_eeprom_md7134_gate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	mov	w8, #7
	str	w8, [sp, #4]
	mov	w8, #8
	str	w8, [sp, #32]
	add	x9, sp, #4
	str	x9, [sp, #40]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #48]
	str	w8, [sp, #56]
	mov	x9, sp
	str	x9, [sp, #64]
	mov	w9, #1
Lloh5:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	stp	w9, w10, [sp, #72]
	str	w8, [sp, #8]
	sub	x8, x29, #32
	str	x8, [sp, #16]
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #24]
	add	x20, x0, #4
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ne	LBB0_4
; %bb.1:
	ldrb	w8, [sp]
	tbz	w8, #1, LBB0_4
; %bb.2:
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldp	w9, w8, [sp]
	and	w9, w9, #0xfffffffd
	stp	w8, w9, [x29, #-32]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: DVB-T demod i2c gate was left open\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: EEPROM i2c gate close failure\n"

	.no_dead_strip	_saa7134_i2c_eeprom_md7134_gate
.subsections_via_symbols
