	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_new_wine_thunks
_elf_new_wine_thunks:                   ## @elf_new_wine_thunks
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	-72(%rbp), %r15
	movq	%rsi, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_hash_table_iter_init
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	(%rbx), %r12
	addq	%rdi, %r12
	movq	%r14, %rsi
	callq	_elf_is_in_thunk_area
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r13), %esi
	movl	8(%r13), %edx
	movl	%eax, %eax
	movl	(%r14,%rax,4), %ecx
	movq	(%r13), %rax
	movl	8(%rax), %r9d
	movq	%rbx, %rdi
	movq	%r12, %r8
	callq	_symt_new_thunk
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_hash_table_iter_up
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r13
	cmpq	$0, 16(%rax)
	jne	LBB0_1
	jmp	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_symt_find_nearest
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rdi
	leaq	-64(%rbp), %rsi
	callq	_symt_get_address
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	-64(%rbp), %r12
	je	LBB0_1
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movl	12(%rax), %edi
	callq	_ELF32_ST_TYPE
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r13), %esi
	movl	8(%r13), %edx
	movq	(%r13), %rax
	movl	8(%rax), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_symt_new_function
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_loc_absolute@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$32, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movl	12(%rax), %edi
	callq	_ELF32_ST_BIND
	xorl	%ecx, %ecx
	movq	_STB_LOCAL@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	sete	%cl
	movq	(%r13), %rax
	movl	8(%rax), %eax
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	$0
	pushq	%rax
	callq	_symt_new_global_variable
	addq	$16, %rsp
	jmp	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_1
LBB0_14:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_loc_absolute,4,2               ## @loc_absolute
	.comm	_STB_LOCAL,4,2                  ## @STB_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Shouldn't happen\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_elf_new_wine_thunks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_new_wine_thunks
_elf_new_wine_thunks:                   ; @elf_new_wine_thunks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x8, x1
	mov	x19, x0
	add	x1, sp, #8
	mov	x0, x8
	mov	x2, #0
	bl	_hash_table_iter_init
Lloh0:
	adrp	x28, _STB_LOCAL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _STB_LOCAL@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x27, _TRUE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x0, [x9]
	add	x22, x0, x8
	mov	x1, x20
	bl	_elf_is_in_thunk_area
	tbnz	w0, #31, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w2, w1, [x23, #8]
	ldr	w3, [x20, w0, uxtw #2]
	ldr	x8, [x23]
	ldr	w5, [x8, #8]
	mov	x0, x19
	mov	x4, x22
	bl	_symt_new_thunk
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_hash_table_iter_up
	cbz	x0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_3
	b	LBB0_1
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_symt_find_nearest
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	bl	_symt_get_address
	ldr	x8, [sp]
	cmp	w0, #0
	ccmp	x22, x8, #4, ne
	b.eq	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, #12]
	bl	_ELF32_ST_TYPE
	cmp	w0, #128
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #129
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w2, w1, [x23, #8]
	ldr	x8, [x23]
	ldr	w4, [x8, #8]
	mov	x0, x19
	mov	x3, x22
	mov	x5, #0
	bl	_symt_new_function
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _loc_absolute@GOTPAGE
Lloh7:
	ldr	x8, [x8, _loc_absolute@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x24, x8, #32
	ldp	w26, w25, [x23, #8]
	ldr	x8, [x23]
	ldr	w0, [x8, #12]
	bl	_ELF32_ST_BIND
	ldr	w8, [x28]
	cmp	w0, w8
	cset	w3, eq
	ldr	x8, [x23]
	ldr	w6, [x8, #8]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	x4, x22
	mov	x5, x24
	mov	x7, #0
	bl	_symt_new_global_variable
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_FIXME
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	str	w8, [x19, #8]
	b	LBB0_3
LBB0_13:
Lloh9:
	adrp	x8, _FALSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w0, [x27]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_loc_absolute,4,2               ; @loc_absolute
	.comm	_STB_LOCAL,4,2                  ; @STB_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Shouldn't happen\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_elf_new_wine_thunks
.subsections_via_symbols
