	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8842_probe
_ks8842_probe:                          ## @ks8842_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	callq	_dev_get_platdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r14
	movl	4(%rax), %ebx
	movq	%rax, %rdi
	callq	_resource_size
	movq	_DRV_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_23
## %bb.1:
	movl	$56, %edi
	callq	_alloc_etherdev
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r15, %rdi
	callq	_netdev_priv
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r12
	movq	%r15, 48(%rax)
	leaq	40(%rax), %rdi
	movq	_ks8842_tx_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movl	%eax, 8(%r12)
	movl	(%r14), %ecx
	movl	%ecx, (%r12)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, 4(%r12)
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:
	movq	(%rbx), %rax
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	movq	%rax, 32(%r12)
	movq	_MICREL_KS884X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_12
## %bb.9:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.10:
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.11:
	movl	4(%rbx), %ecx
	cmpl	$-1, %ecx
	jne	LBB0_13
LBB0_12:
	movl	$-1, %ecx
	movl	$-1, %eax
LBB0_13:
	movl	%ecx, 24(%r12)
	movl	%eax, 20(%r12)
	leaq	16(%r12), %rdi
	movq	_ks8842_tasklet@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_tasklet_init
	movq	%r12, %rdi
	addq	$12, %rdi
	callq	_spin_lock_init
	movq	_ks8842_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_ks8842_ethtool_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.14:
	movl	(%r15), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.15:
	movq	8(%rbx), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi,%rbx,8)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpq	%rbx, %rdx
	jne	LBB0_16
	jmp	LBB0_19
LBB0_4:
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_18:
	movl	8(%r15), %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	cmpl	%ebx, (%r15)
	jne	LBB0_21
LBB0_19:
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_ks8842_read_mac_addr
	movl	8(%r15), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	callq	_eth_hw_addr_random
LBB0_21:
	movq	_REG_SW_ID_AND_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_ks8842_read16
	movl	%eax, %ebx
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_register_netdev
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_22
LBB0_5:
	movl	8(%r12), %edi
	callq	_iounmap
LBB0_6:
	movq	%r15, %rdi
	callq	_free_netdev
LBB0_7:
	movl	4(%r14), %ebx
	movq	%r14, %rdi
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_release_mem_region
LBB0_23:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movzbl	%bh, %esi
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$15, %edx
	shrl	%ebx
	andl	$7, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %ecx
	callq	_pr_info
	xorl	%r13d, %r13d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
	.comm	_ks8842_tx_timeout_work,4,2     ## @ks8842_tx_timeout_work
	.comm	_MICREL_KS884X,4,2              ## @MICREL_KS884X
	.comm	_ks8842_tasklet,4,2             ## @ks8842_tasklet
	.comm	_ks8842_netdev_ops,4,2          ## @ks8842_netdev_ops
	.comm	_ks8842_ethtool_ops,4,2         ## @ks8842_ethtool_ops
	.comm	_REG_SW_ID_AND_ENABLE,4,2       ## @REG_SW_ID_AND_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eth%d"

L_.str.1:                               ## @.str.1
	.asciz	"Found chip, family: 0x%x, id: 0x%x, rev: 0x%x\n"

	.no_dead_strip	_ks8842_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8842_probe
_ks8842_probe:                          ; @ks8842_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	bl	_dev_get_platdata
	mov	x23, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x19, x0
	ldr	w21, [x0, #4]
	bl	_resource_size
	mov	x1, x0
Lloh6:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_request_mem_region
	cbz	w0, LBB0_22
; %bb.1:
	mov	w0, #56
	bl	_alloc_etherdev
	cbz	x0, LBB0_21
; %bb.2:
	mov	x21, x0
	mov	x1, x20
	bl	_SET_NETDEV_DEV
	mov	x0, x21
	bl	_netdev_priv
	mov	x22, x0
	str	x21, [x0, #48]
	add	x0, x0, #40
Lloh9:
	adrp	x8, _ks8842_tx_timeout_work@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ks8842_tx_timeout_work@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_WORK
	ldr	w25, [x19, #4]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x25
	bl	_ioremap
	str	w0, [x22, #8]
	ldr	w8, [x19]
	str	w8, [x22]
	cbz	w0, LBB0_20
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x22, #4]
	tbnz	w0, #31, LBB0_14
; %bb.4:
	ldr	x8, [x20]
	cmp	x8, #0
	csel	x8, x20, x8, eq
	str	x8, [x22, #32]
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _MICREL_KS884X@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MICREL_KS884X@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.5:
	cbz	x23, LBB0_8
; %bb.6:
	ldr	w8, [x23]
	cmn	w8, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w9, [x23, #4]
	cmn	w9, #1
	b.ne	LBB0_9
LBB0_8:
	mov	w9, #-1
	mov	w8, #-1
LBB0_9:
	stp	w8, w9, [x22, #20]
	add	x0, x22, #16
Lloh15:
	adrp	x8, _ks8842_tasklet@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ks8842_tasklet@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_tasklet_init
	add	x0, x22, #12
	bl	_spin_lock_init
Lloh18:
	adrp	x8, _ks8842_netdev_ops@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ks8842_netdev_ops@GOTPAGEOFF]
Lloh20:
	adrp	x9, _ks8842_ethtool_ops@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ks8842_ethtool_ops@GOTPAGEOFF]
	stp	x9, x8, [x21, #16]
	cbz	x23, LBB0_16
; %bb.10:
	ldr	w2, [x21]
	cbz	w2, LBB0_16
; %bb.11:
	mov	x24, #0
	ldr	x1, [x23, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x1, x24, lsl #3]
	cbnz	x8, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x24, x24, #1
	cmp	x2, x24
	b.ne	LBB0_12
	b	LBB0_16
LBB0_14:
	mov	x24, x0
	b	LBB0_19
LBB0_15:
	ldr	w0, [x21, #8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	ldr	w8, [x21]
	cmp	w8, w24
	b.ne	LBB0_18
LBB0_16:
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_ks8842_read_mac_addr
	ldr	w0, [x21, #8]
	bl	_is_valid_ether_addr
	cbnz	w0, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_eth_hw_addr_random
LBB0_18:
Lloh22:
	adrp	x8, _REG_SW_ID_AND_ENABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _REG_SW_ID_AND_ENABLE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #32
	bl	_ks8842_read16
	mov	x23, x0
	ldr	w0, [x21, #4]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	x0, x21
	bl	_register_netdev
	mov	x24, x0
	cbz	w0, LBB0_23
LBB0_19:
	ldr	w0, [x22, #8]
	bl	_iounmap
LBB0_20:
	mov	x0, x21
	bl	_free_netdev
LBB0_21:
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_resource_size
	mov	x1, x0
	mov	x0, x20
	bl	_release_mem_region
LBB0_22:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	ubfx	w1, w23, #8, #8
	ubfx	w2, w23, #4, #4
	ubfx	w3, w23, #1, #3
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
	.comm	_ks8842_tx_timeout_work,4,2     ; @ks8842_tx_timeout_work
	.comm	_MICREL_KS884X,4,2              ; @MICREL_KS884X
	.comm	_ks8842_tasklet,4,2             ; @ks8842_tasklet
	.comm	_ks8842_netdev_ops,4,2          ; @ks8842_netdev_ops
	.comm	_ks8842_ethtool_ops,4,2         ; @ks8842_ethtool_ops
	.comm	_REG_SW_ID_AND_ENABLE,4,2       ; @REG_SW_ID_AND_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eth%d"

l_.str.1:                               ; @.str.1
	.asciz	"Found chip, family: 0x%x, id: 0x%x, rev: 0x%x\n"

	.no_dead_strip	_ks8842_probe
.subsections_via_symbols
