	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_register_send               ## -- Begin function if_register_send
	.p2align	4, 0x90
_if_register_send:                      ## @if_register_send
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$1, -20(%rbp)
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_register_bpf
	movl	%eax, 4(%r14)
	movq	_BIOCVERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-88(%rbp), %rdx
	movl	%eax, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	movq	-88(%rbp), %rax
	movq	_BPF_MAJOR_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rax
	movq	_BPF_MINOR_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_5:
	movq	_dhcp_bpf_wfilter_len@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_dhcp_bpf_wfilter@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, -40(%rbp)
	cmpl	$8191, 28(%rax)                 ## imm = 0x1FFF
	jne	LBB0_7
## %bb.6:
	movq	_IP_MF@GOTPCREL(%rip), %rax
	movq	_IP_OFFMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_htons
	movq	(%rbx), %rcx
	movl	%eax, 28(%rcx)
LBB0_7:
	movl	4(%r14), %edi
	movq	_BIOCSETWF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	callq	_error
LBB0_9:
	movl	4(%r14), %edi
	movq	_BIOCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_error
LBB0_11:
	movq	_CAP_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_cap_rights_init
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	callq	_caph_rights_limit
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	leaq	L_.str.4(%rip), %rdi
	callq	_error
LBB0_13:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rdi
	callq	_error
LBB0_15:
	movq	_IPPROTO_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IP_HDRINCL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movl	%ebx, %edi
	movl	$4, %r8d
	callq	_setsockopt
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.6(%rip), %rdi
	callq	_error
LBB0_17:
	movl	%ebx, (%r14)
	addq	$80, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_BIOCVERSION,4,2                ## @BIOCVERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get BPF version: %m"

	.comm	_BPF_MAJOR_VERSION,8,3          ## @BPF_MAJOR_VERSION
	.comm	_BPF_MINOR_VERSION,8,3          ## @BPF_MINOR_VERSION
L_.str.1:                               ## @.str.1
	.asciz	"Kernel BPF version out of range - recompile dhcpd!"

	.comm	_dhcp_bpf_wfilter_len,4,2       ## @dhcp_bpf_wfilter_len
	.comm	_dhcp_bpf_wfilter,8,3           ## @dhcp_bpf_wfilter
	.comm	_IP_MF,4,2                      ## @IP_MF
	.comm	_IP_OFFMASK,4,2                 ## @IP_OFFMASK
	.comm	_BIOCSETWF,4,2                  ## @BIOCSETWF
L_.str.2:                               ## @.str.2
	.asciz	"Can't install write filter program: %m"

	.comm	_BIOCLOCK,4,2                   ## @BIOCLOCK
L_.str.3:                               ## @.str.3
	.asciz	"Cannot lock bpf"

	.comm	_CAP_WRITE,4,2                  ## @CAP_WRITE
L_.str.4:                               ## @.str.4
	.asciz	"Can't limit bpf descriptor: %m"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
L_.str.5:                               ## @.str.5
	.asciz	"socket(SOCK_RAW): %m"

	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_HDRINCL,4,2                 ## @IP_HDRINCL
L_.str.6:                               ## @.str.6
	.asciz	"setsockopt(IP_HDRINCL): %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_if_register_send               ; -- Begin function if_register_send
	.p2align	2
_if_register_send:                      ; @if_register_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	mov	w8, #1
	str	w8, [sp, #4]
Lloh0:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_if_register_bpf
	str	w0, [x19, #4]
Lloh3:
	adrp	x8, _BIOCVERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIOCVERSION@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #40
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	ldr	x8, [sp, #40]
Lloh8:
	adrp	x9, _BPF_MAJOR_VERSION@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BPF_MAJOR_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [sp, #48]
Lloh11:
	adrp	x9, _BPF_MINOR_VERSION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BPF_MINOR_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
LBB0_4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_5:
Lloh16:
	adrp	x8, _dhcp_bpf_wfilter_len@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dhcp_bpf_wfilter_len@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x20, _dhcp_bpf_wfilter@GOTPAGE
Lloh20:
	ldr	x20, [x20, _dhcp_bpf_wfilter@GOTPAGEOFF]
	str	w8, [sp, #32]
	ldr	x8, [x20]
	str	x8, [sp, #24]
	ldr	w8, [x8, #28]
	mov	w9, #8191
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _IP_MF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IP_MF@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _IP_OFFMASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IP_OFFMASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_htons
	ldr	x8, [x20]
	str	w0, [x8, #28]
LBB0_7:
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x8, _BIOCSETWF@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BIOCSETWF@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbz	x0, #63, LBB0_9
; %bb.8:
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_9:
	ldr	w0, [x19, #4]
Lloh32:
	adrp	x8, _BIOCLOCK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BIOCLOCK@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_ioctl
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_11:
Lloh37:
	adrp	x8, _CAP_WRITE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _CAP_WRITE@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	sub	x0, x29, #20
	bl	_cap_rights_init
	ldr	w0, [x19, #4]
	sub	x1, x29, #20
	bl	_caph_rights_limit
	tbz	x0, #63, LBB0_13
; %bb.12:
Lloh40:
	adrp	x0, l_.str.4@PAGE
Lloh41:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_13:
Lloh42:
	adrp	x8, _AF_INET@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.14:
Lloh51:
	adrp	x0, l_.str.5@PAGE
Lloh52:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_error
LBB0_15:
Lloh53:
	adrp	x8, _IPPROTO_IP@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IPPROTO_IP@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x8, _IP_HDRINCL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _IP_HDRINCL@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
	add	x3, sp, #4
	mov	x0, x20
	mov	w4, #4
	bl	_setsockopt
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh59:
	adrp	x0, l_.str.6@PAGE
Lloh60:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_error
LBB0_17:
	str	w20, [x19]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_BIOCVERSION,4,2                ; @BIOCVERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get BPF version: %m"

	.comm	_BPF_MAJOR_VERSION,8,3          ; @BPF_MAJOR_VERSION
	.comm	_BPF_MINOR_VERSION,8,3          ; @BPF_MINOR_VERSION
l_.str.1:                               ; @.str.1
	.asciz	"Kernel BPF version out of range - recompile dhcpd!"

	.comm	_dhcp_bpf_wfilter_len,4,2       ; @dhcp_bpf_wfilter_len
	.comm	_dhcp_bpf_wfilter,8,3           ; @dhcp_bpf_wfilter
	.comm	_IP_MF,4,2                      ; @IP_MF
	.comm	_IP_OFFMASK,4,2                 ; @IP_OFFMASK
	.comm	_BIOCSETWF,4,2                  ; @BIOCSETWF
l_.str.2:                               ; @.str.2
	.asciz	"Can't install write filter program: %m"

	.comm	_BIOCLOCK,4,2                   ; @BIOCLOCK
l_.str.3:                               ; @.str.3
	.asciz	"Cannot lock bpf"

	.comm	_CAP_WRITE,4,2                  ; @CAP_WRITE
l_.str.4:                               ; @.str.4
	.asciz	"Can't limit bpf descriptor: %m"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
l_.str.5:                               ; @.str.5
	.asciz	"socket(SOCK_RAW): %m"

	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_HDRINCL,4,2                 ; @IP_HDRINCL
l_.str.6:                               ; @.str.6
	.asciz	"setsockopt(IP_HDRINCL): %m"

.subsections_via_symbols
