	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ip_hdrincl
_test_ip_hdrincl:                       ## @test_ip_hdrincl
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_2:
	movl	$-1, -56(%rbp)
	movl	$4, -60(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IP_HDRINCL@GOTPCREL(%rip), %rax
	movq	%rax, %r12
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%r14d, %edi
	callq	_getsockopt
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	_ENOPROTOOPT@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_6:
	movl	$1, -56(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_8:
	movq	(%r13), %rbx
	cmpq	(%r15), %rbx
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	movl	%r14d, %edi
	callq	_close
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_12:
	movl	$-1, -56(%rbp)
	movl	$4, -60(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%r14d, %edi
	callq	_getsockopt
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.6(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_14:
	movq	(%r13), %rbx
	cmpq	(%r15), %rbx
	je	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_strerror
	leaq	L_.str.7(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_16:
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	movl	%r14d, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_18:
	movq	(%r13), %rbx
	cmpq	(%r15), %rbx
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_strerror
	leaq	L_.str.9(%rip), %rsi
	movl	$-1, %edi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_errx
LBB0_20:
	movl	%r14d, %edi
	callq	_close
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_geteuid
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	cmpl	$-1, %ebx
	je	LBB0_46
## %bb.22:
	xorl	%eax, %eax
	callq	_geteuid
	leaq	L_.str.10(%rip), %rsi
	movl	$-1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_46
LBB0_23:
	cmpl	$-1, %ebx
	jne	LBB0_25
## %bb.24:
	leaq	L_.str.11(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_25:
	movq	$-1, -56(%rbp)
	movl	$8, -60(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%ebx, %edi
	callq	_getsockopt
	testq	%rax, %rax
	jns	LBB0_27
## %bb.26:
	leaq	L_.str.12(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_27:
	movl	-60(%rbp), %edx
	cmpl	$4, %edx
	je	LBB0_29
## %bb.28:
	leaq	L_.str.13(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_29:
	movl	-56(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_31
## %bb.30:
	leaq	L_.str.14(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_31:
	movl	$1, -56(%rbp)
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_33
## %bb.32:
	leaq	L_.str.15(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_33:
	movq	$-1, -56(%rbp)
	movl	$8, -60(%rbp)
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%ebx, %edi
	callq	_getsockopt
	testq	%rax, %rax
	jns	LBB0_35
## %bb.34:
	leaq	L_.str.16(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_35:
	movl	-56(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_36
## %bb.37:
	cmpl	$8, %esi
	je	LBB0_39
LBB0_38:
	leaq	L_.str.18(%rip), %rdi
	callq	_warnx
LBB0_39:
	movl	$0, -56(%rbp)
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	jns	LBB0_41
## %bb.40:
	leaq	L_.str.19(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_41:
	movq	$-1, -56(%rbp)
	movl	$8, -60(%rbp)
	movl	(%r14), %esi
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movl	%ebx, %edi
	callq	_getsockopt
	testq	%rax, %rax
	jns	LBB0_43
## %bb.42:
	leaq	L_.str.20(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_43:
	movl	-56(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_45
## %bb.44:
	leaq	L_.str.17(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_45:
	movl	%ebx, %edi
	callq	_close
LBB0_46:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.47:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	leaq	L_.str.17(%rip), %rsi
	movl	$-1, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_errx
	movl	-56(%rbp), %esi
	cmpl	$8, %esi
	jne	LBB0_38
	jmp	LBB0_39
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_ip_hdrincl(): socket(SOCK_STREAM)"

	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_HDRINCL,4,2                 ## @IP_HDRINCL
L_.str.1:                               ## @.str.1
	.asciz	"test_ip_hdrincl(): initial getsockopt(IP_HDRINCL)"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOPROTOOPT,8,3                ## @ENOPROTOOPT
L_.str.2:                               ## @.str.2
	.asciz	"test_ip_hdrincl(): initial getsockopt(IP_HDRINC) returned %d (%s) not ENOPROTOOPT"

L_.str.3:                               ## @.str.3
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP succeeded\n"

L_.str.4:                               ## @.str.4
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP returned %d (%s) not ENOPROTOOPT\n"

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
L_.str.5:                               ## @.str.5
	.asciz	"test_ip_hdrincl(): socket(SOCK_DGRAM"

L_.str.6:                               ## @.str.6
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on UDP succeeded\n"

L_.str.7:                               ## @.str.7
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on UDP returned %d (%s) not ENOPROTOOPT\n"

L_.str.8:                               ## @.str.8
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on UDP succeeded\n"

L_.str.9:                               ## @.str.9
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on UDP returned %d (%s) not ENOPROTOOPT\n"

	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
L_.str.10:                              ## @.str.10
	.asciz	"test_ip_hdrincl: created raw socket as uid %d"

L_.str.11:                              ## @.str.11
	.asciz	"test_ip_hdrincl(): socket(PF_INET, SOCK_RAW)"

L_.str.12:                              ## @.str.12
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on raw socket"

L_.str.13:                              ## @.str.13
	.asciz	"test_ip_hdrincl(): %d bytes returned on initial get\n"

L_.str.14:                              ## @.str.14
	.asciz	"test_ip_hdrincl(): initial flag value of %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL, 1)"

L_.str.16:                              ## @.str.16
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after set"

L_.str.17:                              ## @.str.17
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after set had flag of %d\n"

L_.str.18:                              ## @.str.18
	.asciz	"test_ip_hdrincl(): WARNING: getsockopt(IP_HDRINCL) after set had non-historical value of %d\n"

L_.str.19:                              ## @.str.19
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL, 0)"

L_.str.20:                              ## @.str.20
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after reset"

	.comm	_HISTORICAL_INP_HDRINCL,4,2     ## @HISTORICAL_INP_HDRINCL
	.no_dead_strip	_test_ip_hdrincl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_ip_hdrincl
_test_ip_hdrincl:                       ; @test_ip_hdrincl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
Lloh0:
	adrp	x23, _PF_INET@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PF_INET@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	mov	w9, #-1
	mov	w8, #4
	stp	w8, w9, [sp, #20]
Lloh7:
	adrp	x21, _IPPROTO_IP@GOTPAGE
Lloh8:
	ldr	x21, [x21, _IPPROTO_IP@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x22, _IP_HDRINCL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IP_HDRINCL@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	bl	_getsockopt
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_4:
Lloh13:
	adrp	x24, _errno@GOTPAGE
Lloh14:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	ldr	x20, [x24]
Lloh15:
	adrp	x25, _ENOPROTOOPT@GOTPAGE
Lloh16:
	ldr	x25, [x25, _ENOPROTOOPT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	bl	_errx
LBB0_6:
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbnz	x0, LBB0_8
; %bb.7:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_8:
	ldr	x20, [x24]
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	bl	_errx
LBB0_10:
	mov	x0, x19
	bl	_close
	ldr	w0, [x23]
Lloh23:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.11:
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_err
LBB0_12:
	mov	w9, #-1
	mov	w8, #4
	stp	w8, w9, [sp, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	bl	_getsockopt
	cbnz	x0, LBB0_14
; %bb.13:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_14:
	ldr	x20, [x24]
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	bl	_errx
LBB0_16:
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	cbnz	x0, LBB0_18
; %bb.17:
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_18:
	ldr	x20, [x24]
	ldr	x8, [x25]
	cmp	x20, x8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	bl	_errx
LBB0_20:
	mov	x0, x19
	bl	_close
	ldr	w0, [x23]
Lloh36:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x19, x0
	bl	_geteuid
	cbz	w0, LBB0_23
; %bb.21:
	cmn	w19, #1
	b.eq	LBB0_44
; %bb.22:
	bl	_geteuid
	mov	x2, x0
Lloh39:
	adrp	x1, l_.str.10@PAGE
Lloh40:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #-1
	bl	_errx
	b	LBB0_44
LBB0_23:
	cmn	w19, #1
	b.ne	LBB0_25
; %bb.24:
Lloh41:
	adrp	x1, l_.str.11@PAGE
Lloh42:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_25:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	bl	_getsockopt
	tbz	x0, #63, LBB0_27
; %bb.26:
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_27:
	ldr	w2, [sp, #20]
	cmp	w2, #4
	b.eq	LBB0_29
; %bb.28:
Lloh45:
	adrp	x1, l_.str.13@PAGE
Lloh46:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_29:
	ldr	w2, [sp, #24]
	cbz	w2, LBB0_31
; %bb.30:
Lloh47:
	adrp	x1, l_.str.14@PAGE
Lloh48:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_31:
	mov	w8, #1
	str	w8, [sp, #24]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_33
; %bb.32:
Lloh49:
	adrp	x1, l_.str.15@PAGE
Lloh50:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_33:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	bl	_getsockopt
	tbnz	x0, #63, LBB0_45
; %bb.34:
	ldr	w1, [sp, #24]
	cbz	w1, LBB0_46
LBB0_35:
	cmp	w1, #8
	b.eq	LBB0_37
LBB0_36:
Lloh51:
	adrp	x0, l_.str.18@PAGE
Lloh52:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_warnx
LBB0_37:
	str	wzr, [sp, #24]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	mov	x0, x19
	mov	w4, #4
	bl	_setsockopt
	tbz	x0, #63, LBB0_39
; %bb.38:
Lloh53:
	adrp	x1, l_.str.19@PAGE
Lloh54:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_39:
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [sp, #24]
	mov	w8, #8
	str	w8, [sp, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x19
	bl	_getsockopt
	tbz	x0, #63, LBB0_41
; %bb.40:
Lloh55:
	adrp	x1, l_.str.20@PAGE
Lloh56:
	add	x1, x1, l_.str.20@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_41:
	ldr	w2, [sp, #24]
	cbz	w2, LBB0_43
; %bb.42:
Lloh57:
	adrp	x1, l_.str.17@PAGE
Lloh58:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_43:
	mov	x0, x19
	bl	_close
LBB0_44:
	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
	add	sp, sp, #112
	ret
LBB0_45:
Lloh59:
	adrp	x1, l_.str.16@PAGE
Lloh60:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	w0, #-1
	bl	_err
	ldr	w1, [sp, #24]
	cbnz	w1, LBB0_35
LBB0_46:
Lloh61:
	adrp	x1, l_.str.17@PAGE
Lloh62:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	w0, #-1
	mov	w2, #0
	bl	_errx
	ldr	w1, [sp, #24]
	cmp	w1, #8
	b.ne	LBB0_36
	b	LBB0_37
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_ip_hdrincl(): socket(SOCK_STREAM)"

	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_HDRINCL,4,2                 ; @IP_HDRINCL
l_.str.1:                               ; @.str.1
	.asciz	"test_ip_hdrincl(): initial getsockopt(IP_HDRINCL)"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOPROTOOPT,8,3                ; @ENOPROTOOPT
l_.str.2:                               ; @.str.2
	.asciz	"test_ip_hdrincl(): initial getsockopt(IP_HDRINC) returned %d (%s) not ENOPROTOOPT"

l_.str.3:                               ; @.str.3
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP succeeded\n"

l_.str.4:                               ; @.str.4
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on TCP returned %d (%s) not ENOPROTOOPT\n"

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
l_.str.5:                               ; @.str.5
	.asciz	"test_ip_hdrincl(): socket(SOCK_DGRAM"

l_.str.6:                               ; @.str.6
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on UDP succeeded\n"

l_.str.7:                               ; @.str.7
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on UDP returned %d (%s) not ENOPROTOOPT\n"

l_.str.8:                               ; @.str.8
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on UDP succeeded\n"

l_.str.9:                               ; @.str.9
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL) on UDP returned %d (%s) not ENOPROTOOPT\n"

	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
l_.str.10:                              ; @.str.10
	.asciz	"test_ip_hdrincl: created raw socket as uid %d"

l_.str.11:                              ; @.str.11
	.asciz	"test_ip_hdrincl(): socket(PF_INET, SOCK_RAW)"

l_.str.12:                              ; @.str.12
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) on raw socket"

l_.str.13:                              ; @.str.13
	.asciz	"test_ip_hdrincl(): %d bytes returned on initial get\n"

l_.str.14:                              ; @.str.14
	.asciz	"test_ip_hdrincl(): initial flag value of %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL, 1)"

l_.str.16:                              ; @.str.16
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after set"

l_.str.17:                              ; @.str.17
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after set had flag of %d\n"

l_.str.18:                              ; @.str.18
	.asciz	"test_ip_hdrincl(): WARNING: getsockopt(IP_HDRINCL) after set had non-historical value of %d\n"

l_.str.19:                              ; @.str.19
	.asciz	"test_ip_hdrincl(): setsockopt(IP_HDRINCL, 0)"

l_.str.20:                              ; @.str.20
	.asciz	"test_ip_hdrincl(): getsockopt(IP_HDRINCL) after reset"

	.comm	_HISTORICAL_INP_HDRINCL,4,2     ; @HISTORICAL_INP_HDRINCL
	.no_dead_strip	_test_ip_hdrincl
.subsections_via_symbols
