	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs2000_tab_set
_m88rs2000_tab_set:                     ## @m88rs2000_tab_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	$255, %rbx
	je	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rbx,%rbx,2), %rcx
	movl	(%r15,%rcx,4), %eax
	cmpl	$15, %eax
	jg	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15,%rcx,4), %esi
	movl	8(%r15,%rcx,4), %edx
	movq	%r14, %rdi
	callq	_m88rs2000_writereg
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$255, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$16, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15,%rcx,4), %edi
	testl	%edi, %edi
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_mdelay
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$170, 4(%r15,%rcx,4)
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$255, 8(%r15,%rcx,4)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	$255, %rbx
	jne	LBB0_2
	jmp	LBB0_16
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_12:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_m88rs2000_tab_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88rs2000_tab_set
_m88rs2000_tab_set:                     ; @m88rs2000_tab_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x1, LBB0_14
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w22, #12
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, #255
	b.eq	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mul	x8, x21, x22
	ldr	w8, [x19, x8]
	cmp	w8, #15
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x22, x19
	ldp	w1, w2, [x8, #4]
	mov	x0, x20
	bl	_m88rs2000_writereg
	tbz	w0, #31, LBB0_2
	b	LBB0_18
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #255
	b.eq	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #16
	b.ne	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x22, x19
	ldr	w0, [x8, #4]
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	bl	_mdelay
	b	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	madd	x8, x21, x22, x19
	ldr	w8, [x8, #4]
	cmp	w8, #170
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	madd	x8, x21, x22, x19
	ldr	w8, [x8, #8]
	cmp	w8, #255
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, #255
	b.ne	LBB0_3
	b	LBB0_17
LBB0_14:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_18:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_m88rs2000_tab_set
.subsections_via_symbols
