	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan78xx_dataport_write
_lan78xx_dataport_write:                ## @lan78xx_dataport_write
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movl	(%rdi), %edi
	callq	_usb_autopm_get_interface
	testq	%rax, %rax
	js	LBB0_6
## %bb.1:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_lan78xx_dataport_wait_not_busy
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_DP_SEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_lan78xx_read_reg
	movq	_DP_SEL_RSEL_MASK_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	orl	%r14d, %edx
	movl	%edx, -44(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.3:
	movl	%r13d, %r14d
	decq	%r14
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DP_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%r15,%r13), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_DP_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	_DP_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DP_CMD_WRITE_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lan78xx_write_reg
	movq	%rbx, %rdi
	callq	_lan78xx_dataport_wait_not_busy
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%r15), %rax
	cmpq	%r15, %r14
	movq	%rax, %r15
	jne	LBB0_4
	jmp	LBB0_9
LBB0_6:
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r12d
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	(%rbx), %edi
	callq	_usb_autopm_put_interface
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP_SEL,4,2                     ## @DP_SEL
	.comm	_DP_SEL_RSEL_MASK_,4,2          ## @DP_SEL_RSEL_MASK_
	.comm	_DP_ADDR,4,2                    ## @DP_ADDR
	.comm	_DP_DATA,4,2                    ## @DP_DATA
	.comm	_DP_CMD,4,2                     ## @DP_CMD
	.comm	_DP_CMD_WRITE_,4,2              ## @DP_CMD_WRITE_
	.no_dead_strip	_lan78xx_dataport_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan78xx_dataport_write
_lan78xx_dataport_write:                ; @lan78xx_dataport_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x25, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w0, [x0]
	bl	_usb_autopm_get_interface
	tbnz	x0, #63, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_lan78xx_dataport_wait_not_busy
	tbnz	w0, #31, LBB0_7
; %bb.2:
Lloh0:
	adrp	x24, _DP_SEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DP_SEL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
Lloh2:
	adrp	x8, _DP_SEL_RSEL_MASK_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DP_SEL_RSEL_MASK_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	orr	w2, w8, w25
	str	w2, [sp, #12]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_lan78xx_write_reg
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w8, w23
	sub	x8, x8, #1
Lloh5:
	adrp	x23, _DP_ADDR@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DP_ADDR@GOTPAGEOFF]
Lloh7:
	adrp	x25, _DP_DATA@GOTPAGE
Lloh8:
	ldr	x25, [x25, _DP_DATA@GOTPAGEOFF]
Lloh9:
	adrp	x26, _DP_CMD@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DP_CMD@GOTPAGEOFF]
Lloh11:
	adrp	x27, _DP_CMD_WRITE_@GOTPAGE
Lloh12:
	ldr	x27, [x27, _DP_CMD_WRITE_@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x22
	bl	_lan78xx_write_reg
	ldr	w1, [x25]
	ldr	w2, [x21], #4
	mov	x0, x19
	bl	_lan78xx_write_reg
	ldr	w1, [x26]
	ldr	w2, [x27]
	mov	x0, x19
	bl	_lan78xx_write_reg
	mov	x0, x19
	bl	_lan78xx_dataport_wait_not_busy
	mov	x24, x0
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x28, #1
	add	w22, w22, #1
	cbnz	x28, LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w24, #0
	b	LBB0_9
LBB0_7:
	mov	x24, x0
LBB0_8:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x19]
	bl	_usb_autopm_put_interface
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DP_SEL,4,2                     ; @DP_SEL
	.comm	_DP_SEL_RSEL_MASK_,4,2          ; @DP_SEL_RSEL_MASK_
	.comm	_DP_ADDR,4,2                    ; @DP_ADDR
	.comm	_DP_DATA,4,2                    ; @DP_DATA
	.comm	_DP_CMD,4,2                     ; @DP_CMD
	.comm	_DP_CMD_WRITE_,4,2              ; @DP_CMD_WRITE_
	.no_dead_strip	_lan78xx_dataport_write
.subsections_via_symbols
