	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sfe4001_init
_sfe4001_init:                          ## @sfe4001_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_falcon_board
	movq	%rax, %r15
	leaq	16(%rax), %r12
	movq	_sfe4001_hwmon_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_new_dummy
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_MAX664X_REG_WLHO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$90, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	_PCA9539@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_i2c_new_dummy
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_PHY_MODE_SPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_falcon_stop_nic_stats
LBB0_7:
	movq	%r14, %rdi
	callq	_sfe4001_poweron
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	8(%r14), %rdi
	movq	_dev_attr_phy_flash_cfg@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_sfe4001_poweroff
LBB0_11:
	movq	8(%r15), %rdi
	callq	_i2c_unregister_device
	jmp	LBB0_12
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	(%r15), %rdi
	callq	_i2c_unregister_device
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_info
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_sfe4001_hwmon_info,4,2         ## @sfe4001_hwmon_info
	.comm	_EIO,4,2                        ## @EIO
	.comm	_MAX664X_REG_WLHO,4,2           ## @MAX664X_REG_WLHO
	.comm	_PCA9539,4,2                    ## @PCA9539
	.comm	_PHY_MODE_SPECIAL,4,2           ## @PHY_MODE_SPECIAL
	.comm	_dev_attr_phy_flash_cfg,4,2     ## @dev_attr_phy_flash_cfg
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY is powered on\n"

	.no_dead_strip	_sfe4001_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sfe4001_init
_sfe4001_init:                          ; @sfe4001_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_falcon_board
	mov	x19, x0
	add	x22, x0, #16
Lloh0:
	adrp	x8, _sfe4001_hwmon_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sfe4001_hwmon_info@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_new_dummy
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.1:
Lloh3:
	adrp	x8, _MAX664X_REG_WLHO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX664X_REG_WLHO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #90
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.2:
Lloh6:
	adrp	x8, _PCA9539@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCA9539@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_i2c_new_dummy
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _PHY_MODE_SPECIAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PHY_MODE_SPECIAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_falcon_stop_nic_stats
LBB0_5:
	mov	x0, x20
	bl	_sfe4001_poweron
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x1, _dev_attr_phy_flash_cfg@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attr_phy_flash_cfg@GOTPAGEOFF]
	bl	_device_create_file
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.7:
	mov	x0, x20
	bl	_sfe4001_poweroff
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_i2c_unregister_device
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	ldr	x0, [x19]
	bl	_i2c_unregister_device
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh20:
	adrp	x8, _hw@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
Lloh23:
	adrp	x3, l_.str@PAGE
Lloh24:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netif_info
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_sfe4001_hwmon_info,4,2         ; @sfe4001_hwmon_info
	.comm	_EIO,4,2                        ; @EIO
	.comm	_MAX664X_REG_WLHO,4,2           ; @MAX664X_REG_WLHO
	.comm	_PCA9539,4,2                    ; @PCA9539
	.comm	_PHY_MODE_SPECIAL,4,2           ; @PHY_MODE_SPECIAL
	.comm	_dev_attr_phy_flash_cfg,4,2     ; @dev_attr_phy_flash_cfg
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY is powered on\n"

	.no_dead_strip	_sfe4001_init
.subsections_via_symbols
