	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdTransformAffineBoundingBox   ## -- Begin function gdTransformAffineBoundingBox
	.p2align	4, 0x90
_gdTransformAffineBoundingBox:          ## @gdTransformAffineBoundingBox
	.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	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -96(%rbp)
	movq	$0, -72(%rbp)
	cvtdq2pd	(%rdi), %xmm1
	movlpd	%xmm1, -80(%rbp)
	movapd	%xmm1, -64(%rbp)
	movq	$0, -48(%rbp)
	movhpd	%xmm1, -40(%rbp)
	movapd	%xmm0, -112(%rbp)
	leaq	-96(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_gdAffineApplyToPointF
	movq	_GD_TRUE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.1:
	leaq	-80(%rbp), %rdi
	movapd	-80(%rbp), %xmm0
	movapd	%xmm0, -112(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_gdAffineApplyToPointF
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.2:
	leaq	-64(%rbp), %rdi
	movapd	-64(%rbp), %xmm0
	movapd	%xmm0, -112(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_gdAffineApplyToPointF
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %rdi
	movapd	-48(%rbp), %xmm0
	movapd	%xmm0, -112(%rbp)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_gdAffineApplyToPointF
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movsd	-96(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-88(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movsd	-80(%rbp), %xmm2                ## xmm2 = mem[0],zero
	movapd	%xmm2, %xmm3
	minsd	%xmm0, %xmm3
	movsd	-72(%rbp), %xmm4                ## xmm4 = mem[0],zero
	movapd	%xmm4, %xmm5
	minsd	%xmm1, %xmm5
	maxsd	%xmm0, %xmm2
	maxsd	%xmm1, %xmm4
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm6
	minsd	%xmm3, %xmm6
	movsd	-56(%rbp), %xmm3                ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm7
	minsd	%xmm5, %xmm7
	maxsd	%xmm2, %xmm1
	maxsd	%xmm4, %xmm3
	movsd	-48(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm2
	minsd	%xmm6, %xmm2
	movsd	-40(%rbp), %xmm4                ## xmm4 = mem[0],zero
	movapd	%xmm4, %xmm5
	minsd	%xmm7, %xmm5
	movsd	%xmm5, -120(%rbp)               ## 8-byte Spill
	maxsd	%xmm1, %xmm0
	maxsd	%xmm3, %xmm4
	movsd	%xmm4, -128(%rbp)               ## 8-byte Spill
	cvttsd2si	%xmm2, %eax
	movl	%eax, 8(%r14)
	cvttsd2si	%xmm5, %eax
	movl	%eax, 12(%r14)
	subsd	%xmm2, %xmm0
	callq	_floor
	decl	%eax
	movl	%eax, (%r14)
	movsd	-128(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	-120(%rbp), %xmm0               ## 8-byte Folded Reload
	callq	_floor
	movl	%eax, 4(%r14)
	movl	(%r15), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_GD_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GD_TRUE,8,3                    ## @GD_TRUE
	.comm	_GD_FALSE,4,2                   ## @GD_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdTransformAffineBoundingBox   ; -- Begin function gdTransformAffineBoundingBox
	.p2align	2
_gdTransformAffineBoundingBox:          ; @gdTransformAffineBoundingBox
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #96]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x2
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	stp	xzr, xzr, [sp, #24]
	ldp	s0, s1, [x0]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	str	d0, [sp, #40]
	str	xzr, [sp, #48]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	stp	d0, d1, [sp, #56]
	str	xzr, [sp, #72]
	str	d1, [sp, #80]
	stp	xzr, xzr, [sp]
	add	x22, sp, #24
	add	x0, sp, #24
	mov	x1, sp
	mov	x2, x20
	bl	_gdAffineApplyToPointF
Lloh3:
	adrp	x21, _GD_TRUE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GD_TRUE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	add	x0, x22, #16
	ldur	q0, [sp, #40]
	str	q0, [sp]
	mov	x1, sp
	mov	x2, x20
	bl	_gdAffineApplyToPointF
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	add	x22, sp, #24
	add	x0, x22, #32
	ldur	q0, [sp, #56]
	str	q0, [sp]
	mov	x1, sp
	mov	x2, x20
	bl	_gdAffineApplyToPointF
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.3:
	add	x0, x22, #48
	ldur	q0, [sp, #72]
	str	q0, [sp]
	mov	x1, sp
	mov	x2, x20
	bl	_gdAffineApplyToPointF
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	d0, d1, [sp, #24]
	ldp	d2, d3, [sp, #40]
	fcmp	d0, d2
	fcsel	d4, d2, d0, gt
	fcsel	d0, d2, d0, mi
	fcmp	d1, d3
	fcsel	d2, d3, d1, gt
	fcsel	d1, d3, d1, mi
	ldp	d3, d5, [sp, #56]
	fcmp	d4, d3
	fcsel	d4, d3, d4, gt
	fcmp	d2, d5
	fcsel	d2, d5, d2, gt
	fcmp	d0, d3
	fcsel	d0, d3, d0, mi
	fcmp	d1, d5
	fcsel	d1, d5, d1, mi
	ldp	d3, d5, [sp, #72]
	fcmp	d4, d3
	fcsel	d4, d3, d4, gt
	fcmp	d2, d5
	fcsel	d8, d5, d2, gt
	fcmp	d0, d3
	fcsel	d0, d3, d0, mi
	fcmp	d1, d5
	fcvtzs	w8, d4
	fcsel	d9, d5, d1, mi
	fcvtzs	w9, d8
	stp	w8, w9, [x19, #8]
	fsub	d0, d0, d4
	bl	_floor
	sub	w8, w0, #1
	str	w8, [x19]
	fsub	d0, d9, d8
	bl	_floor
	str	w0, [x19, #4]
	ldr	w0, [x21]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _GD_FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GD_FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #96]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GD_TRUE,8,3                    ; @GD_TRUE
	.comm	_GD_FALSE,4,2                   ; @GD_FALSE
.subsections_via_symbols
