	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bristol_frontend_attach
_bristol_frontend_attach:               ## @bristol_frontend_attach
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rdi), %rsi
	movq	8(%rsi), %r15
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	(%r15), %rdx
	leaq	(,%rax,4), %rcx
	movl	$1220, (%rdx,%rax,4)            ## imm = 0x4C4
	movq	_dib3000mc_attach@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	leal	(%rax,%rax), %edx
	addl	$20, %edx
	movq	_bristol_dib3000mc_config@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	callq	_dvb_attach
	movq	16(%r14), %rcx
	movq	%rax, (%rcx)
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_GPIO6@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_GPIO_OUT@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	xorl	%ebx, %ebx
	movq	%rsi, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movq	_GPIO10@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	8(%r14), %rdi
	movl	(%r12), %esi
	movl	(%r13), %edx
	movl	$1, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	_force_lna_activation@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	movq	8(%r14), %rdi
	movq	_GPIO0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	callq	_dib0700_set_gpio
	movq	8(%r14), %rdi
	movq	_DEFAULT_DIB3000P_I2C_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_bristol_dib3000mc_config@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	$2, %esi
	callq	_dib3000mc_i2c_enumeration
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	8(%r14), %rdi
	movq	_GPIO6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	xorl	%ecx, %ecx
	callq	_dib0700_set_gpio
	movl	$10, %edi
	callq	_msleep
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rax
	movq	8(%r14), %rsi
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO6,4,2                      ## @GPIO6
	.comm	_GPIO_OUT,4,2                   ## @GPIO_OUT
	.comm	_GPIO10,4,2                     ## @GPIO10
	.comm	_force_lna_activation,8,3       ## @force_lna_activation
	.comm	_GPIO0,4,2                      ## @GPIO0
	.comm	_DEFAULT_DIB3000P_I2C_ADDRESS,4,2 ## @DEFAULT_DIB3000P_I2C_ADDRESS
	.comm	_bristol_dib3000mc_config,8,3   ## @bristol_dib3000mc_config
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_dib3000mc_attach,4,2           ## @dib3000mc_attach
	.no_dead_strip	_bristol_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bristol_frontend_attach
_bristol_frontend_attach:               ; @bristol_frontend_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	x8, x1, [x0]
	ldr	x21, [x1, #8]
Lloh0:
	adrp	x20, _bristol_dib3000mc_config@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bristol_dib3000mc_config@GOTPAGEOFF]
	cbz	x8, LBB0_2
LBB0_1:
	ldr	x9, [x21]
	lsl	x10, x8, #2
	mov	w11, #1220
	str	w11, [x9, x10]
Lloh2:
	adrp	x9, _dib3000mc_attach@GOTPAGE
Lloh3:
	ldr	x9, [x9, _dib3000mc_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	lsl	w8, w8, #1
	add	w2, w8, #20
	ldr	x8, [x20]
	add	x3, x8, x10
	bl	_dvb_attach
	ldr	x8, [x19, #16]
	str	x0, [x8]
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x22, _GPIO6@GOTPAGE
Lloh9:
	ldr	x22, [x22, _GPIO6@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh10:
	adrp	x23, _GPIO_OUT@GOTPAGE
Lloh11:
	ldr	x23, [x23, _GPIO_OUT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x1
	mov	x1, x8
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x24, _GPIO10@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GPIO10@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
	ldr	x0, [x19, #8]
	ldr	w1, [x24]
	ldr	w2, [x23]
	mov	w3, #1
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
Lloh14:
	adrp	x8, _force_lna_activation@GOTPAGE
Lloh15:
	ldr	x8, [x8, _force_lna_activation@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w3, ne
	ldr	x0, [x19, #8]
Lloh17:
	adrp	x8, _GPIO0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GPIO0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x23]
	bl	_dib0700_set_gpio
	ldr	x0, [x19, #8]
Lloh20:
	adrp	x8, _DEFAULT_DIB3000P_I2C_ADDRESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DEFAULT_DIB3000P_I2C_ADDRESS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	x3, [x20]
	mov	w1, #2
	bl	_dib3000mc_i2c_enumeration
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	w3, #0
	bl	_dib0700_set_gpio
	mov	w0, #10
	bl	_msleep
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x8, x1, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO6,4,2                      ; @GPIO6
	.comm	_GPIO_OUT,4,2                   ; @GPIO_OUT
	.comm	_GPIO10,4,2                     ; @GPIO10
	.comm	_force_lna_activation,8,3       ; @force_lna_activation
	.comm	_GPIO0,4,2                      ; @GPIO0
	.comm	_DEFAULT_DIB3000P_I2C_ADDRESS,4,2 ; @DEFAULT_DIB3000P_I2C_ADDRESS
	.comm	_bristol_dib3000mc_config,8,3   ; @bristol_dib3000mc_config
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dib3000mc_attach,4,2           ; @dib3000mc_attach
	.no_dead_strip	_bristol_frontend_attach
.subsections_via_symbols
