	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_device_initialize      ## -- Begin function flexcop_device_initialize
	.p2align	4, 0x90
_flexcop_device_initialize:             ## @flexcop_device_initialize
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ibi_zero@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	callq	_flexcop_reset
	movq	%r14, %rdi
	callq	_flexcop_determine_revision
	movq	%r14, %rdi
	callq	_flexcop_sram_init
	movq	%r14, %rdi
	callq	_flexcop_hw_filter_init
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_flexcop_smc_ctrl
	movq	%r14, %rdi
	callq	_flexcop_dvb_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r14, %rdi
	callq	_flexcop_i2c_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	*(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_5
LBB0_3:
	movq	8(%r14), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_info
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_flexcop_set_mac_filter
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_flexcop_mac_filter_ctrl
LBB0_5:
	movq	%r14, %rdi
	callq	_flexcop_frontend_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_flexcop_device_exit
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_flexcop_device_name
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ibi_zero,8,3                   ## @ibi_zero
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MAC address = %pM"

L_.str.1:                               ## @.str.1
	.asciz	"reading of MAC address failed.\n"

L_.str.2:                               ## @.str.2
	.asciz	"initialization of"

L_.str.3:                               ## @.str.3
	.asciz	"complete"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_flexcop_device_initialize      ; -- Begin function flexcop_device_initialize
	.p2align	2
_flexcop_device_initialize:             ; @flexcop_device_initialize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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, _ibi_zero@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ibi_zero@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	bl	_flexcop_reset
	mov	x0, x19
	bl	_flexcop_determine_revision
	mov	x0, x19
	bl	_flexcop_sram_init
	mov	x0, x19
	bl	_flexcop_hw_filter_init
	mov	x0, x19
	mov	w1, #0
	bl	_flexcop_smc_ctrl
	mov	x0, x19
	bl	_flexcop_dvb_init
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_flexcop_i2c_init
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_5
LBB0_4:
	ldr	x20, [x19, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_info
	mov	x0, x19
	mov	x1, x20
	bl	_flexcop_set_mac_filter
	mov	x0, x19
	mov	w1, #1
	bl	_flexcop_mac_filter_ctrl
LBB0_5:
	mov	x0, x19
	bl	_flexcop_frontend_init
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_flexcop_device_exit
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_flexcop_device_name
	b	LBB0_7
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ibi_zero,8,3                   ; @ibi_zero
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MAC address = %pM"

l_.str.1:                               ; @.str.1
	.asciz	"reading of MAC address failed.\n"

l_.str.2:                               ; @.str.2
	.asciz	"initialization of"

l_.str.3:                               ; @.str.3
	.asciz	"complete"

.subsections_via_symbols
