	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freebsd_swap_magic
_freebsd_swap_magic:                    ## @freebsd_swap_magic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_bfd_getl32
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_bfd_getb32
	movzwl	%r14w, %esi
	movzwl	%ax, %edx
	movq	_OMAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_NMAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_ZMAGIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movb	$1, %cl
	cmpl	%edi, %esi
	je	LBB0_4
## %bb.1:
	cmpl	%ebx, %esi
	je	LBB0_4
## %bb.2:
	cmpl	%r8d, %esi
	je	LBB0_4
## %bb.3:
	movq	_QMAGIC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	sete	%cl
LBB0_4:
	cmpl	%edi, %edx
	je	LBB0_8
## %bb.5:
	cmpl	%ebx, %edx
	je	LBB0_8
## %bb.6:
	cmpl	%r8d, %edx
	je	LBB0_8
## %bb.7:
	movq	_QMAGIC@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	setne	%dl
	orb	%dl, %cl
LBB0_8:
	testb	%cl, %cl
	cmovneq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAGIC,4,2                     ## @OMAGIC
	.comm	_NMAGIC,4,2                     ## @NMAGIC
	.comm	_ZMAGIC,4,2                     ## @ZMAGIC
	.comm	_QMAGIC,4,2                     ## @QMAGIC
	.no_dead_strip	_freebsd_swap_magic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freebsd_swap_magic
_freebsd_swap_magic:                    ; @freebsd_swap_magic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_bfd_getl32
	mov	x19, x0
	mov	x0, x20
	bl	_bfd_getb32
	and	w9, w19, #0xffff
	and	w8, w0, #0xffff
Lloh0:
	adrp	x10, _OMAGIC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _OMAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _NMAGIC@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NMAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _ZMAGIC@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ZMAGIC@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	ccmp	w9, w12, #4, ne
Lloh9:
	adrp	x13, _QMAGIC@GOTPAGE
Lloh10:
	ldr	x13, [x13, _QMAGIC@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w9, #1
	b	LBB0_3
LBB0_2:
	ldr	w14, [x13]
	cmp	w9, w14
	cset	w9, eq
LBB0_3:
	cmp	w8, w10
	ccmp	w8, w11, #4, ne
	ccmp	w8, w12, #4, ne
	b.eq	LBB0_5
; %bb.4:
	ldr	w10, [x13]
	cmp	w8, w10
	cset	w8, ne
	orr	w9, w8, w9
LBB0_5:
	cmp	w9, #0
	csel	x0, x19, x0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAGIC,4,2                     ; @OMAGIC
	.comm	_NMAGIC,4,2                     ; @NMAGIC
	.comm	_ZMAGIC,4,2                     ; @ZMAGIC
	.comm	_QMAGIC,4,2                     ; @QMAGIC
	.no_dead_strip	_freebsd_swap_magic
.subsections_via_symbols
