	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function expand_builtin_lock_test_and_set
_expand_builtin_lock_test_and_set:      ## @expand_builtin_lock_test_and_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	%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	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r12d
	movl	%esi, %edi
	callq	_TREE_VALUE
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_get_builtin_sync_mem
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_TREE_CHAIN
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_TREE_VALUE
	movq	_EXPAND_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_expand_expr
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_GET_MODE
	movq	_VOIDmode@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	%r13d, %edi
	callq	_TREE_VALUE
	movl	%eax, %edi
	callq	_TREE_TYPE
	movl	%eax, %edi
	callq	_TYPE_MODE
LBB0_2:
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	callq	_convert_modes
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_expand_sync_lock_test_and_set  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXPAND_NORMAL,4,2              ## @EXPAND_NORMAL
	.comm	_VOIDmode,4,2                   ## @VOIDmode
	.no_dead_strip	_expand_builtin_lock_test_and_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function expand_builtin_lock_test_and_set
_expand_builtin_lock_test_and_set:      ; @expand_builtin_lock_test_and_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	mov	x0, x1
	bl	_TREE_VALUE
	mov	x1, x20
	bl	_get_builtin_sync_mem
	mov	x21, x0
	mov	x0, x22
	bl	_TREE_CHAIN
	mov	x23, x0
	bl	_TREE_VALUE
Lloh0:
	adrp	x8, _EXPAND_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXPAND_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, #0
	mov	x2, x20
	bl	_expand_expr
	mov	x22, x0
	bl	_GET_MODE
	mov	x1, x0
Lloh3:
	adrp	x8, _VOIDmode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VOIDmode@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x23
	bl	_TREE_VALUE
	bl	_TREE_TYPE
	bl	_TYPE_MODE
	mov	x1, x0
LBB0_2:
	mov	x0, x20
	mov	x2, x22
	mov	w3, #1
	bl	_convert_modes
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_expand_sync_lock_test_and_set
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXPAND_NORMAL,4,2              ; @EXPAND_NORMAL
	.comm	_VOIDmode,4,2                   ; @VOIDmode
	.no_dead_strip	_expand_builtin_lock_test_and_set
.subsections_via_symbols
