	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ip_boolean
_test_ip_boolean:                       ## @test_ip_boolean
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r13
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	testl	%r8d, %r8d
	movl	$255, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, -60(%rbp)
	movq	$-1, -56(%rbp)
	movl	$8, -64(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rcx
	leaq	-64(%rbp), %r8
	callq	_getsockopt
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movl	-64(%rbp), %r8d
	cmpl	$4, %r8d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movl	-56(%rbp), %r8d
	cmpl	$-1, %r8d
	je	LBB0_5
## %bb.6:
	cmpl	%ebx, %r8d
	je	LBB0_8
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_errx
LBB0_8:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_IPPROTO_IP@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	movl	-60(%rbp), %r8d
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movq	$-1, -56(%rbp)
	movl	$8, -64(%rbp)
	movl	(%r13), %esi
	leaq	-56(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_getsockopt
	testq	%rax, %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jns	LBB0_12
## %bb.11:
	movl	-60(%rbp), %r8d
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movl	-64(%rbp), %r9d
	cmpl	$4, %r9d
	je	LBB0_14
## %bb.13:
	movl	-60(%rbp), %r8d
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	movl	-56(%rbp), %r9d
	cmpl	$-1, %r9d
	jne	LBB0_16
## %bb.15:
	movl	-60(%rbp), %r8d
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
	movl	-56(%rbp), %r9d
LBB0_16:
	movl	-60(%rbp), %r8d
	xorl	%eax, %eax
	testl	%r8d, %r8d
	setne	%al
	cmpl	%eax, %r9d
	je	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_18:
	movl	%ebx, -60(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-60(%rbp), %rcx
	movl	%r14d, %edi
	movl	%r12d, %edx
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movl	$-1, %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_20:
	movq	$-1, -56(%rbp)
	movl	$8, -64(%rbp)
	movl	(%rbx), %esi
	leaq	-56(%rbp), %rcx
	leaq	-64(%rbp), %r8
	movl	%r14d, %edi
	movl	%r12d, %edx
	callq	_getsockopt
	testq	%rax, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_22
## %bb.21:
	leaq	L_.str.10(%rip), %rsi
	movl	$-1, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_22:
	movl	-64(%rbp), %r8d
	cmpl	$4, %r8d
	je	LBB0_24
## %bb.23:
	leaq	L_.str.11(%rip), %rsi
	movl	$-1, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_24:
	movl	-56(%rbp), %eax
	cmpl	$-1, %eax
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.12(%rip), %rsi
	movl	$-1, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
	movl	-56(%rbp), %eax
LBB0_26:
	movl	-60(%rbp), %r8d
	cmpl	%r8d, %eax
	je	LBB0_28
## %bb.27:
	leaq	L_.str.13(%rip), %rsi
	movl	$-1, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movq	%r13, %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_errx
	movl	-56(%rbp), %r8d
	cmpl	%ebx, %r8d
	jne	LBB0_7
	jmp	LBB0_8
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ip_boolean: initial getsockopt()"

L_.str.1:                               ## @.str.1
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() returned %d bytes"

L_.str.2:                               ## @.str.2
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() didn't return data"

L_.str.3:                               ## @.str.3
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() returned %d (expected %d)"

L_.str.4:                               ## @.str.4
	.asciz	"test_ip_boolean(%s, %s): setsockopt() to %d"

L_.str.5:                               ## @.str.5
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d"

L_.str.6:                               ## @.str.6
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d returned %d bytes"

L_.str.7:                               ## @.str.7
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d didn't return data"

L_.str.8:                               ## @.str.8
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d returned %d"

L_.str.9:                               ## @.str.9
	.asciz	"test_ip_boolean(%s, %s): setsockopt() to reset"

L_.str.10:                              ## @.str.10
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset"

L_.str.11:                              ## @.str.11
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset returned %d bytes"

L_.str.12:                              ## @.str.12
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset didn't return data"

L_.str.13:                              ## @.str.13
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset returned %d"

	.no_dead_strip	_test_ip_boolean
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ip_boolean
_test_ip_boolean:                       ; @test_ip_boolean
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	mov	w8, #255
	cmp	w4, #0
	csel	w8, w8, wzr, eq
	str	w8, [sp, #44]
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #28]
Lloh0:
	adrp	x24, _IPPROTO_IP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IPPROTO_IP@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x3, sp, #32
	add	x4, sp, #28
	bl	_getsockopt
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
	ldr	w8, [sp, #28]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_4:
	ldr	w8, [sp, #32]
	cmn	w8, #1
	b.eq	LBB0_28
; %bb.5:
	cmp	w8, w23
	b.eq	LBB0_7
LBB0_6:
	stp	x8, x23, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_7:
	ldr	w1, [x24]
	add	x3, sp, #44
	mov	x0, x22
	mov	x2, x21
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_9
; %bb.8:
	ldr	w8, [sp, #44]
	stp	x19, x8, [sp, #8]
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_9:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #28]
	ldr	w1, [x24]
	add	x3, sp, #32
	add	x4, sp, #28
	mov	x0, x22
	mov	x2, x21
	bl	_getsockopt
	tbz	x0, #63, LBB0_11
; %bb.10:
	ldr	w8, [sp, #44]
	stp	x19, x8, [sp, #8]
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_11:
	ldr	w8, [sp, #28]
	cmp	w8, #4
	b.eq	LBB0_13
; %bb.12:
	ldr	w9, [sp, #44]
	stp	x9, x8, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_13:
	ldr	w8, [sp, #32]
	cmn	w8, #1
	b.ne	LBB0_15
; %bb.14:
	ldr	w8, [sp, #44]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
	ldr	w8, [sp, #32]
LBB0_15:
	ldr	w9, [sp, #44]
	cmp	w9, #0
	cset	w10, ne
	cmp	w8, w10
	b.eq	LBB0_17
; %bb.16:
	stp	x9, x8, [sp]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_17:
	str	w23, [sp, #44]
	ldr	w1, [x24]
	add	x3, sp, #44
	mov	x0, x22
	mov	x2, x21
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_19
; %bb.18:
	stp	x20, x19, [sp]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_19:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #32]
	mov	w8, #8
	str	w8, [sp, #28]
	ldr	w1, [x24]
	add	x3, sp, #32
	add	x4, sp, #28
	mov	x0, x22
	mov	x2, x21
	bl	_getsockopt
	tbz	x0, #63, LBB0_21
; %bb.20:
	stp	x20, x19, [sp]
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_21:
	ldr	w8, [sp, #28]
	cmp	w8, #4
	b.eq	LBB0_23
; %bb.22:
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.11@PAGE
Lloh23:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_23:
	ldr	w8, [sp, #32]
	cmn	w8, #1
	b.ne	LBB0_25
; %bb.24:
Lloh24:
	adrp	x1, l_.str.12@PAGE
Lloh25:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
	ldr	w8, [sp, #32]
LBB0_25:
	ldr	w9, [sp, #44]
	cmp	w8, w9
	b.eq	LBB0_27
; %bb.26:
	str	x9, [sp]
Lloh26:
	adrp	x1, l_.str.13@PAGE
Lloh27:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
LBB0_27:
	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
	add	sp, sp, #112
	ret
LBB0_28:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_errx
	ldr	w8, [sp, #32]
	cmp	w8, w23
	b.ne	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ip_boolean: initial getsockopt()"

l_.str.1:                               ; @.str.1
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() returned %d bytes"

l_.str.2:                               ; @.str.2
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() didn't return data"

l_.str.3:                               ; @.str.3
	.asciz	"test_ip_boolean(%s, %s): initial getsockopt() returned %d (expected %d)"

l_.str.4:                               ; @.str.4
	.asciz	"test_ip_boolean(%s, %s): setsockopt() to %d"

l_.str.5:                               ; @.str.5
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d"

l_.str.6:                               ; @.str.6
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d returned %d bytes"

l_.str.7:                               ; @.str.7
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d didn't return data"

l_.str.8:                               ; @.str.8
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after set to %d returned %d"

l_.str.9:                               ; @.str.9
	.asciz	"test_ip_boolean(%s, %s): setsockopt() to reset"

l_.str.10:                              ; @.str.10
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset"

l_.str.11:                              ; @.str.11
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset returned %d bytes"

l_.str.12:                              ; @.str.12
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset didn't return data"

l_.str.13:                              ; @.str.13
	.asciz	"test_ip_boolean(%s, %s): getsockopt() after reset returned %d"

	.no_dead_strip	_test_ip_boolean
.subsections_via_symbols
