	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_setup_spi
_si_setup_spi:                          ## @si_setup_spi
	.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	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_15
## %bb.1:
	movl	%edx, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	incl	%r13d
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_si_select_se_sh
	movq	_SPI_STATIC_THREAD_MGMT_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_si_get_cu_enabled
	movl	$-2, %ecx
	testb	$1, %al
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$-3, %ecx
	testb	$2, %al
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$-9, %ecx
	testb	$8, %al
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$-65, %ecx
	testb	$64, %al
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$-1025, %ecx                    ## imm = 0xFBFF
	testl	$1024, %eax                     ## imm = 0x400
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$-32769, %ecx                   ## imm = 0xFFFF7FFF
	testl	$32768, %eax                    ## imm = 0x8000
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$-2097153, %ecx                 ## imm = 0xFFDFFFFF
	testl	$2097152, %eax                  ## imm = 0x200000
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	$-268435457, %ecx               ## imm = 0xEFFFFFFF
	testl	$268435456, %eax                ## imm = 0x10000000
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=2
	andl	%ecx, %r14d
	movq	_SPI_STATIC_THREAD_MGMT_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%r12d
	cmpl	%r12d, %r15d
	jne	LBB0_4
	jmp	LBB0_14
LBB0_15:
	movq	%rbx, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_si_select_se_sh                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_STATIC_THREAD_MGMT_3,4,2   ## @SPI_STATIC_THREAD_MGMT_3
	.no_dead_strip	_si_setup_spi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_setup_spi
_si_setup_spi:                          ; @si_setup_spi
	.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
	cmp	w1, #1
	b.lt	LBB0_23
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	w23, #0
Lloh0:
	adrp	x26, _SPI_STATIC_THREAD_MGMT_3@GOTPAGE
Lloh1:
	ldr	x26, [x26, _SPI_STATIC_THREAD_MGMT_3@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w23, w22
	b.eq	LBB0_23
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w24, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_si_select_se_sh
	ldr	w0, [x26]
	bl	_RREG32
	mov	x25, x0
	mov	x0, x20
	mov	x1, x19
	bl	_si_get_cu_enabled
	tbnz	w0, #0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #1, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #3, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #6, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #10, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #15, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	tbnz	w0, #21, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=2
	tbz	w0, #28, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-268435457
	b	LBB0_21
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-2
	b	LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-3
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-9
	b	LBB0_21
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-65
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-1025
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-32769
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	w8, #-2097153
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=2
	and	w1, w25, w8
	ldr	w0, [x26]
	bl	_WREG32
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w24, w24, #1
	cmp	w21, w24
	b.ne	LBB0_5
	b	LBB0_2
LBB0_23:
	mov	x0, x20
	mov	w1, #-1
	mov	w2, #-1
	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
	b	_si_select_se_sh
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_STATIC_THREAD_MGMT_3,4,2   ; @SPI_STATIC_THREAD_MGMT_3
	.no_dead_strip	_si_setup_spi
.subsections_via_symbols
