	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc911x_init
_smsc911x_init:                         ## @smsc911x_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	%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
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_probe@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movl	(%rbx), %esi
	movq	24(%r15), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movl	(%rbx), %esi
	movl	20(%r14), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	leaq	32(%r15), %rdi
	callq	_spin_lock_init
	leaq	12(%r15), %rdi
	callq	_spin_lock_init
	cmpq	$0, 24(%r15)
	je	LBB0_1
## %bb.2:
	movq	_PMT_CTRL_READY_@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_swahw32
	movl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_PMT_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	testl	%ebx, %eax
	jne	LBB0_6
## %bb.3:
	movl	$-100, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	testl	%ebx, %eax
	je	LBB0_4
LBB0_6:
	movq	_BYTE_TEST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	%eax, %r14d
	movq	_probe@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	cmpl	$1126270821, %r14d              ## imm = 0x43218765
	jne	LBB0_8
## %bb.7:
	movl	(%r12), %esi
	leaq	L_.str.7(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	movq	_WORD_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$-1, %edx
	callq	_smsc911x_reg_write
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	%eax, %r14d
LBB0_8:
	cmpl	$-2023406815, %r14d             ## imm = 0x87654321
	jne	LBB0_9
## %bb.11:
	movl	$0, (%r15)
	movq	_ID_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_smsc911x_reg_read
	movl	%eax, 4(%r15)
	movl	(%r12), %esi
	leaq	L_.str.10(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_SMSC_WARN
	jmp	LBB0_12
LBB0_1:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
	jmp	LBB0_12
LBB0_9:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_SMSC_WARN
	movl	%r14d, %eax
	shrl	$16, %eax
	movzwl	%r14w, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_12
## %bb.10:
	movl	(%r12), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_WARN
	movl	(%r12), %esi
	leaq	L_.str.9(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_SMSC_TRACE
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver Parameters:"

L_.str.1:                               ## @.str.1
	.asciz	"LAN base: 0x%08lX"

L_.str.2:                               ## @.str.2
	.asciz	"IRQ: %d"

L_.str.3:                               ## @.str.3
	.asciz	"PHY will be autodetected."

L_.str.4:                               ## @.str.4
	.asciz	"pdata->ioaddr: 0x00000000"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PMT_CTRL_READY_,4,2            ## @PMT_CTRL_READY_
	.comm	_PMT_CTRL,4,2                   ## @PMT_CTRL
L_.str.5:                               ## @.str.5
	.asciz	"Device not READY in 100ms aborting\n"

	.comm	_BYTE_TEST,4,2                  ## @BYTE_TEST
L_.str.6:                               ## @.str.6
	.asciz	"BYTE_TEST: 0x%08X"

L_.str.7:                               ## @.str.7
	.asciz	"BYTE_TEST looks swapped, applying WORD_SWAP"

	.comm	_WORD_SWAP,4,2                  ## @WORD_SWAP
	.comm	_drv,4,2                        ## @drv
L_.str.8:                               ## @.str.8
	.asciz	"top 16 bits equal to bottom 16 bits"

L_.str.9:                               ## @.str.9
	.asciz	"This may mean the chip is set for 32 bit while the bus is reading 16 bit"

	.comm	_ID_REV,4,2                     ## @ID_REV
L_.str.10:                              ## @.str.10
	.asciz	"LAN911x not identified, idrev: 0x%08X"

	.comm	_SMSC911X_SAVE_MAC_ADDRESS,4,2  ## @SMSC911X_SAVE_MAC_ADDRESS
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_smsc911x_poll,4,2              ## @smsc911x_poll
	.comm	_SMSC_NAPI_WEIGHT,4,2           ## @SMSC_NAPI_WEIGHT
	.comm	_smsc911x_netdev_ops,4,2        ## @smsc911x_netdev_ops
	.comm	_smsc911x_ethtool_ops,4,2       ## @smsc911x_ethtool_ops
	.no_dead_strip	_smsc911x_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc911x_init
_smsc911x_init:                         ; @smsc911x_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x22, _probe@GOTPAGE
Lloh1:
	ldr	x22, [x22, _probe@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_SMSC_TRACE
	ldr	w1, [x22]
	ldr	x8, [x19, #24]
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	ldr	w1, [x22]
	ldr	w8, [x20, #20]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	ldr	w1, [x22]
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	add	x0, x19, #32
	bl	_spin_lock_init
	add	x0, x19, #12
	bl	_spin_lock_init
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.1:
Lloh10:
	adrp	x8, _PMT_CTRL_READY_@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PMT_CTRL_READY_@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_swahw32
	orr	w21, w0, w21
Lloh13:
	adrp	x23, _PMT_CTRL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _PMT_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc911x_reg_read
	tst	w0, w21
	b.ne	LBB0_5
; %bb.2:
	mov	w24, #-100
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	adds	w24, w24, #1
	b.hs	LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1000
	bl	_udelay
	ldr	w1, [x23]
	mov	x0, x19
	bl	_smsc911x_reg_read
	tst	w0, w21
	b.eq	LBB0_3
LBB0_5:
Lloh15:
	adrp	x21, _BYTE_TEST@GOTPAGE
Lloh16:
	ldr	x21, [x21, _BYTE_TEST@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc911x_reg_read
	mov	x20, x0
	ldr	w1, [x22]
	str	x20, [sp]
Lloh17:
	adrp	x2, l_.str.6@PAGE
Lloh18:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	mov	w8, #34661
	movk	w8, #17185, lsl #16
	cmp	w20, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	w1, [x22]
Lloh19:
	adrp	x2, l_.str.7@PAGE
Lloh20:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
Lloh21:
	adrp	x8, _WORD_SWAP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WORD_SWAP@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #-1
	bl	_smsc911x_reg_write
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc911x_reg_read
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc911x_reg_read
	mov	x20, x0
LBB0_7:
	mov	w8, #17185
	movk	w8, #34661, lsl #16
	cmp	w20, w8
	b.ne	LBB0_12
; %bb.8:
	str	wzr, [x19]
Lloh24:
	adrp	x8, _ID_REV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ID_REV@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smsc911x_reg_read
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #4]
	ldr	w1, [x22]
	str	x0, [sp]
Lloh27:
	adrp	x2, l_.str.10@PAGE
Lloh28:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_10
LBB0_9:
	ldr	w1, [x22]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_SMSC_WARN
LBB0_11:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
Lloh34:
	adrp	x8, _drv@GOTPAGE
Lloh35:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x8, x20
	str	x8, [sp]
Lloh37:
	adrp	x2, l_.str.6@PAGE
Lloh38:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_SMSC_WARN
	lsr	w8, w20, #16
	cmp	w8, w20, uxth
	b.ne	LBB0_11
; %bb.13:
	ldr	w1, [x22]
Lloh39:
	adrp	x2, l_.str.8@PAGE
Lloh40:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_SMSC_WARN
	ldr	w1, [x22]
Lloh41:
	adrp	x2, l_.str.9@PAGE
Lloh42:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_SMSC_TRACE
	b	LBB0_11
LBB0_14:
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver Parameters:"

l_.str.1:                               ; @.str.1
	.asciz	"LAN base: 0x%08lX"

l_.str.2:                               ; @.str.2
	.asciz	"IRQ: %d"

l_.str.3:                               ; @.str.3
	.asciz	"PHY will be autodetected."

l_.str.4:                               ; @.str.4
	.asciz	"pdata->ioaddr: 0x00000000"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PMT_CTRL_READY_,4,2            ; @PMT_CTRL_READY_
	.comm	_PMT_CTRL,4,2                   ; @PMT_CTRL
l_.str.5:                               ; @.str.5
	.asciz	"Device not READY in 100ms aborting\n"

	.comm	_BYTE_TEST,4,2                  ; @BYTE_TEST
l_.str.6:                               ; @.str.6
	.asciz	"BYTE_TEST: 0x%08X"

l_.str.7:                               ; @.str.7
	.asciz	"BYTE_TEST looks swapped, applying WORD_SWAP"

	.comm	_WORD_SWAP,4,2                  ; @WORD_SWAP
	.comm	_drv,4,2                        ; @drv
l_.str.8:                               ; @.str.8
	.asciz	"top 16 bits equal to bottom 16 bits"

l_.str.9:                               ; @.str.9
	.asciz	"This may mean the chip is set for 32 bit while the bus is reading 16 bit"

	.comm	_ID_REV,4,2                     ; @ID_REV
l_.str.10:                              ; @.str.10
	.asciz	"LAN911x not identified, idrev: 0x%08X"

	.comm	_SMSC911X_SAVE_MAC_ADDRESS,4,2  ; @SMSC911X_SAVE_MAC_ADDRESS
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_smsc911x_poll,4,2              ; @smsc911x_poll
	.comm	_SMSC_NAPI_WEIGHT,4,2           ; @SMSC_NAPI_WEIGHT
	.comm	_smsc911x_netdev_ops,4,2        ; @smsc911x_netdev_ops
	.comm	_smsc911x_ethtool_ops,4,2       ; @smsc911x_ethtool_ops
	.no_dead_strip	_smsc911x_init
.subsections_via_symbols
