	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thumb_find_work_register
_thumb_find_work_register:              ## @thumb_find_work_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_LAST_ARG_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	_regs_ever_live@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	cmpl	$0, (%rdx,%rsi,4)
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rcx), %esi
	testl	%ecx, %ecx
	movl	%esi, %ecx
	jg	LBB0_2
LBB0_4:
	movq	_cfun@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rdx
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.5:
	movq	_current_function_pretend_args_size@GOTPCREL(%rip), %rsi
	cmpq	$0, (%rsi)
	jle	LBB0_7
LBB0_6:
	movl	%eax, %ecx
	jmp	LBB0_16
LBB0_7:
	testq	%rdx, %rdx
	jne	LBB0_12
## %bb.8:
	movq	_current_function_args_size@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %edx
	js	LBB0_12
## %bb.9:
	movq	_UNITS_PER_WORD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	imull	%eax, %esi
	cmpl	%esi, %edx
	jg	LBB0_12
## %bb.10:
	cmpl	$4, (%rcx)
	jl	LBB0_6
LBB0_12:
	movq	_LAST_LO_REGNUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	movslq	%edx, %rdx
	testq	%rdi, %rdx
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	decl	%ecx
	cmpl	%eax, %ecx
	jg	LBB0_13
LBB0_15:
	xorl	%eax, %eax
	callq	_gcc_unreachable
                                        ## implicit-def: $ecx
LBB0_16:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LAST_ARG_REGNUM,4,2            ## @LAST_ARG_REGNUM
	.comm	_regs_ever_live,8,3             ## @regs_ever_live
	.comm	_cfun,8,3                       ## @cfun
	.comm	_current_function_pretend_args_size,8,3 ## @current_function_pretend_args_size
	.comm	_current_function_args_size,4,2 ## @current_function_args_size
	.comm	_UNITS_PER_WORD,4,2             ## @UNITS_PER_WORD
	.comm	_LAST_LO_REGNUM,4,2             ## @LAST_LO_REGNUM
	.no_dead_strip	_thumb_find_work_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thumb_find_work_register
_thumb_find_work_register:              ; @thumb_find_work_register
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _LAST_ARG_REGNUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LAST_ARG_REGNUM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _regs_ever_live@GOTPAGE
Lloh4:
	ldr	x9, [x9, _regs_ever_live@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	x10, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, w10, uxtw #2]
	cbz	w11, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w10, #1
	cmp	w10, #0
	mov	x10, x11
	b.gt	LBB0_2
LBB0_4:
Lloh6:
	adrp	x9, _cfun@GOTPAGE
Lloh7:
	ldr	x9, [x9, _cfun@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x9, #8]
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _current_function_pretend_args_size@GOTPAGE
Lloh10:
	ldr	x11, [x11, _current_function_pretend_args_size@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, #0
	ccmp	x11, #0, #4, ne
	b.gt	LBB0_14
; %bb.5:
	cbnz	x10, LBB0_9
; %bb.6:
Lloh12:
	adrp	x10, _current_function_args_size@GOTPAGE
Lloh13:
	ldr	x10, [x10, _current_function_args_size@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tbnz	w10, #31, LBB0_9
; %bb.7:
Lloh15:
	adrp	x11, _UNITS_PER_WORD@GOTPAGE
Lloh16:
	ldr	x11, [x11, _UNITS_PER_WORD@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	mul	w11, w11, w0
	cmp	w10, w11
	b.gt	LBB0_9
; %bb.8:
	ldr	w9, [x9]
	cmp	w9, #4
	b.lt	LBB0_14
LBB0_9:
Lloh18:
	adrp	x9, _LAST_LO_REGNUM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LAST_LO_REGNUM@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_13
; %bb.10:
	mov	w10, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	w11, w10, w9
	sxtw	x11, w11
	tst	x11, x8
	b.ne	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w9, w9, #1
	cmp	w9, w0
	b.gt	LBB0_11
LBB0_13:
	bl	_gcc_unreachable
                                        ; implicit-def: $w0
LBB0_14:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x10
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	x0, x9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_LAST_ARG_REGNUM,4,2            ; @LAST_ARG_REGNUM
	.comm	_regs_ever_live,8,3             ; @regs_ever_live
	.comm	_cfun,8,3                       ; @cfun
	.comm	_current_function_pretend_args_size,8,3 ; @current_function_pretend_args_size
	.comm	_current_function_args_size,4,2 ; @current_function_args_size
	.comm	_UNITS_PER_WORD,4,2             ; @UNITS_PER_WORD
	.comm	_LAST_LO_REGNUM,4,2             ; @LAST_LO_REGNUM
	.no_dead_strip	_thumb_find_work_register
.subsections_via_symbols
