	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xs100_read
_xs100_read:                            ## @xs100_read
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	callq	_to_platform_device
	movq	%rax, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_XS100_8390_DATA_AREA_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpl	%r15d, %edx
	jae	LBB0_3
## %bb.1:
	movq	_XS100_8390_DATA_READ32_BASE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	(%r12), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_z_memcpy_fromio32
	movl	(%r13), %edx
	addq	%rdx, %rbx
	subl	%edx, %r15d
	cmpl	%edx, %r15d
	ja	LBB0_2
LBB0_3:
	movq	_XS100_8390_DATA_READ32_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%r15d, %r12d
	andl	$-4, %r12d
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_z_memcpy_fromio32
	addq	%rbx, %r12
	testb	$2, %r15b
	je	LBB0_5
## %bb.4:
	movq	_NE_DATAPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_ei_inw
	movl	%eax, (%r12)
	addq	$2, %r12
LBB0_5:
	testb	$1, %r15b
	je	LBB0_7
## %bb.6:
	movq	_NE_DATAPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	callq	_ei_inb
	movl	%eax, (%r12)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XS100_8390_DATA_AREA_SIZE,4,2  ## @XS100_8390_DATA_AREA_SIZE
	.comm	_XS100_8390_DATA_READ32_BASE,8,3 ## @XS100_8390_DATA_READ32_BASE
	.comm	_NE_DATAPORT,8,3                ## @NE_DATAPORT
	.no_dead_strip	_xs100_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xs100_read
_xs100_read:                            ; @xs100_read
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	w0, [x22]
	bl	_to_platform_device
	bl	_dev_get_platdata
	mov	x22, x0
Lloh0:
	adrp	x24, _XS100_8390_DATA_AREA_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XS100_8390_DATA_AREA_SIZE@GOTPAGEOFF]
	ldr	w2, [x24]
Lloh2:
	adrp	x23, _XS100_8390_DATA_READ32_BASE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _XS100_8390_DATA_READ32_BASE@GOTPAGEOFF]
	cmp	w2, w19
	b.hs	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_z_memcpy_fromio32
	ldr	w2, [x24]
	add	x21, x21, x2
	sub	w19, w19, w2
	cmp	w19, w2
	b.hi	LBB0_1
LBB0_2:
	ldr	x8, [x22]
	ldr	x9, [x23]
	add	x1, x9, x8
	and	w22, w19, #0xfffffffc
	mov	x0, x21
	mov	x2, x22
	bl	_z_memcpy_fromio32
	add	x21, x21, x22
Lloh4:
	adrp	x22, _NE_DATAPORT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _NE_DATAPORT@GOTPAGEOFF]
	tbz	w19, #1, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ei_inw
	str	w0, [x21], #2
LBB0_4:
	tbz	w19, #0, LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ei_inb
	str	w0, [x21]
LBB0_6:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_XS100_8390_DATA_AREA_SIZE,4,2  ; @XS100_8390_DATA_AREA_SIZE
	.comm	_XS100_8390_DATA_READ32_BASE,8,3 ; @XS100_8390_DATA_READ32_BASE
	.comm	_NE_DATAPORT,8,3                ; @NE_DATAPORT
	.no_dead_strip	_xs100_read
.subsections_via_symbols
