	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8153_patch_request
_r8153_patch_request:                   ## @r8153_patch_request
	.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	%esi, %r14d
	movq	%rdi, %r13
	movq	_OCP_PHY_PATCH_CMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_ocp_reg_read
	movq	_PATCH_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%r14d, %r14d
	je	LBB0_1
## %bb.2:
	orl	%eax, %edx
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_write
	xorl	%ebx, %ebx
	movq	_OCP_PHY_PATCH_STAT@GOTPCREL(%rip), %r12
	movq	_PATCH_READY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	testl	%eax, (%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cmpl	$4999, %ebx                     ## imm = 0x1387
	movl	%eax, %ebx
	jb	LBB0_3
LBB0_5:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	callq	_netif_err
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_read
	movq	_PATCH_REQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_ocp_reg_write
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	notl	%edx
	andl	%edx, %eax
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_ocp_reg_write
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCP_PHY_PATCH_CMD,4,2          ## @OCP_PHY_PATCH_CMD
	.comm	_PATCH_REQUEST,4,2              ## @PATCH_REQUEST
	.comm	_OCP_PHY_PATCH_STAT,4,2         ## @OCP_PHY_PATCH_STAT
	.comm	_PATCH_READY,4,2                ## @PATCH_READY
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"patch request fail\n"

	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_r8153_patch_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8153_patch_request
_r8153_patch_request:                   ; @r8153_patch_request
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _OCP_PHY_PATCH_CMD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OCP_PHY_PATCH_CMD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ocp_reg_read
Lloh2:
	adrp	x22, _PATCH_REQUEST@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PATCH_REQUEST@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w20, LBB0_5
; %bb.1:
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ocp_reg_write
	mov	w23, #0
Lloh4:
	adrp	x24, _OCP_PHY_PATCH_STAT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _OCP_PHY_PATCH_STAT@GOTPAGEOFF]
Lloh6:
	adrp	x20, _PATCH_READY@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PATCH_READY@GOTPAGEOFF]
	mov	w25, #4999
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ocp_reg_read
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w23, w25, #2, eq
	add	w23, w23, #1
	b.lo	LBB0_2
; %bb.3:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ocp_reg_read
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ocp_reg_write
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _drv@GOTPAGE
Lloh9:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ocp_reg_read
	ldr	w8, [x22]
	bic	w2, w0, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ocp_reg_write
Lloh13:
	adrp	x8, _ETIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OCP_PHY_PATCH_CMD,4,2          ; @OCP_PHY_PATCH_CMD
	.comm	_PATCH_REQUEST,4,2              ; @PATCH_REQUEST
	.comm	_OCP_PHY_PATCH_STAT,4,2         ; @OCP_PHY_PATCH_STAT
	.comm	_PATCH_READY,4,2                ; @PATCH_READY
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"patch request fail\n"

	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_r8153_patch_request
.subsections_via_symbols
