	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan743x_netdev_open
_lan743x_netdev_open:                   ## @lan743x_netdev_open
	.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
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_lan743x_intr_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movq	%r14, %rdi
	callq	_lan743x_mac_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.2:
	movq	%r14, %rdi
	callq	_lan743x_phy_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.3:
	movq	%r14, %rdi
	callq	_lan743x_ptp_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movq	%r14, %rdi
	callq	_lan743x_rfe_open
	movq	_LAN743X_USED_RX_CHANNELS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.5:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r13, %rdi
	callq	_lan743x_rx_open
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$8, %r13
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_19:
	movq	16(%r14), %rdi
	callq	_lan743x_tx_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.20:
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_8:
	movl	%eax, %r12d
LBB0_9:
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	cmpq	$0, (%rdi,%rbx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%rbx, %rdi
	callq	_lan743x_rx_close
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_14:
	movq	%r14, %rdi
	callq	_lan743x_ptp_close
LBB0_15:
	movq	%r14, %rdi
	callq	_lan743x_phy_close
LBB0_16:
	movq	%r14, %rdi
	callq	_lan743x_mac_close
LBB0_17:
	movq	%r14, %rdi
	callq	_lan743x_intr_close
LBB0_18:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_warn
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAN743X_USED_RX_CHANNELS,4,2   ## @LAN743X_USED_RX_CHANNELS
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening LAN743x\n"

	.no_dead_strip	_lan743x_netdev_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan743x_netdev_open
_lan743x_netdev_open:                   ; @lan743x_netdev_open
	.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
	bl	_netdev_priv
	mov	x19, x0
	bl	_lan743x_intr_open
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_lan743x_mac_open
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.2:
	mov	x0, x19
	bl	_lan743x_phy_open
	mov	x20, x0
	cbnz	w0, LBB0_17
; %bb.3:
	mov	x0, x19
	bl	_lan743x_ptp_open
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_lan743x_rfe_open
Lloh0:
	adrp	x21, _LAN743X_USED_RX_CHANNELS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _LAN743X_USED_RX_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x22, #0
	mov	x23, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x22
	bl	_lan743x_rx_open
	cbnz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #8
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_lan743x_tx_open
	mov	x20, x0
	cbnz	w0, LBB0_10
	b	LBB0_20
LBB0_9:
	mov	x20, x0
LBB0_10:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	add	x22, x22, #8
	cmp	x23, w8, sxtw
	b.ge	LBB0_15
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	x9, [x0]
	cbz	x9, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_lan743x_rx_close
	ldr	w8, [x21]
	b	LBB0_12
LBB0_15:
	mov	x0, x19
	bl	_lan743x_ptp_close
LBB0_16:
	mov	x0, x19
	bl	_lan743x_phy_close
LBB0_17:
	mov	x0, x19
	bl	_lan743x_mac_close
LBB0_18:
	mov	x0, x19
	bl	_lan743x_intr_close
LBB0_19:
Lloh2:
	adrp	x8, _ifup@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ifup@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_warn
LBB0_20:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LAN743X_USED_RX_CHANNELS,4,2   ; @LAN743X_USED_RX_CHANNELS
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening LAN743x\n"

	.no_dead_strip	_lan743x_netdev_open
.subsections_via_symbols
