	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcp_extract_router_msg        ## -- Begin function dhcp_extract_router_msg
	.p2align	4, 0x90
_dhcp_extract_router_msg:               ## @dhcp_extract_router_msg
	.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	%rdi, %rbx
	callq	_BPTR
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_BLEN
	movl	%eax, %ebx
	addl	$-12, %ebx
	js	LBB0_8
## %bb.1:
	movl	%eax, %r12d
	movq	(%r14), %rax
	movq	_OPENVPN_IPPROTO_UDP@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_8
## %bb.2:
	movq	16(%r14), %r15
	movq	_BOOTPS_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_8
## %bb.3:
	movq	24(%r14), %r15
	movq	_BOOTPC_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_8
## %bb.4:
	movq	40(%r14), %rax
	movq	_BOOTREPLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:
	leaq	40(%r14), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_dhcp_message_type
	movq	_DHCPACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
## %bb.6:
	movq	_DHCPOFFER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_13
LBB0_8:
	xorl	%eax, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	16(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %ebx
	callq	_do_extract
	movq	%rax, %r15
	movq	$0, 32(%r14)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$-4, %r12d
	leaq	12(%r14), %rcx
	movq	%r14, %r8
	addq	$8, %r8
	movq	(%r13), %r9
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_ip_checksum
	movl	%eax, %edi
	callq	_htons
	movq	%rax, 32(%r14)
	xorl	%eax, %eax
	movq	_DHCPACK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jne	LBB0_16
## %bb.14:
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	xorl	%eax, %eax
	callq	_gc_new
	movl	%eax, -48(%rbp)
	movq	_D_ROUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-48(%rbp), %r14
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_print_in_addr_t
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_msg
	movq	%r14, %rdi
	callq	_gc_free
	movq	%r15, %rax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENVPN_IPPROTO_UDP,8,3        ## @OPENVPN_IPPROTO_UDP
	.comm	_BOOTPS_PORT,4,2                ## @BOOTPS_PORT
	.comm	_BOOTPC_PORT,4,2                ## @BOOTPC_PORT
	.comm	_BOOTREPLY,8,3                  ## @BOOTREPLY
	.comm	_DHCPACK,4,2                    ## @DHCPACK
	.comm	_DHCPOFFER,4,2                  ## @DHCPOFFER
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_D_ROUTE,4,2                    ## @D_ROUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Extracted DHCP router address: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dhcp_extract_router_msg        ; -- Begin function dhcp_extract_router_msg
	.p2align	2
_dhcp_extract_router_msg:               ; @dhcp_extract_router_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	bl	_BPTR
	mov	x19, x0
	mov	x0, x20
	bl	_BLEN
	subs	w22, w0, #12
	b.mi	LBB0_9
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x25, _OPENVPN_IPPROTO_UDP@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OPENVPN_IPPROTO_UDP@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.2:
	mov	x20, x0
	mov	x21, x19
	ldr	x23, [x21, #16]!
Lloh2:
	adrp	x8, _BOOTPS_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BOOTPS_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_9
; %bb.3:
	ldr	x23, [x19, #24]
Lloh5:
	adrp	x8, _BOOTPC_PORT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BOOTPC_PORT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_9
; %bb.4:
	mov	x24, x19
	ldr	x8, [x24, #40]!
Lloh8:
	adrp	x9, _BOOTREPLY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BOOTREPLY@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x24
	mov	x1, x22
	bl	_get_dhcp_message_type
Lloh11:
	adrp	x26, _DHCPACK@GOTPAGE
Lloh12:
	ldr	x26, [x26, _DHCPACK@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh13:
	adrp	x9, _DHCPOFFER@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DHCPOFFER@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.ne	LBB0_9
; %bb.6:
	mov	x23, x0
	mov	x0, x24
	mov	x1, x22
	bl	_do_extract
	mov	x22, x0
Lloh16:
	adrp	x8, _AF_INET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
	str	xzr, [x19, #32]
Lloh18:
	ldr	w0, [x8]
	sub	w2, w20, #4
	add	x3, x19, #12
	add	x4, x19, #8
	ldr	x5, [x25]
	mov	x1, x21
	bl	_ip_checksum
	bl	_htons
	mov	x8, x0
	mov	x0, #0
	str	x8, [x19, #32]
	ldr	w8, [x26]
	cmp	w23, w8
	b.ne	LBB0_10
; %bb.7:
	cbz	x22, LBB0_10
; %bb.8:
	bl	_gc_new
	str	w0, [sp, #8]
Lloh19:
	adrp	x8, _D_ROUTE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D_ROUTE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #0
	bl	_print_in_addr_t
	mov	x2, x0
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_msg
	add	x0, sp, #8
	bl	_gc_free
	mov	x0, x22
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENVPN_IPPROTO_UDP,8,3        ; @OPENVPN_IPPROTO_UDP
	.comm	_BOOTPS_PORT,4,2                ; @BOOTPS_PORT
	.comm	_BOOTPC_PORT,4,2                ; @BOOTPC_PORT
	.comm	_BOOTREPLY,8,3                  ; @BOOTREPLY
	.comm	_DHCPACK,4,2                    ; @DHCPACK
	.comm	_DHCPOFFER,4,2                  ; @DHCPOFFER
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_D_ROUTE,4,2                    ; @D_ROUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Extracted DHCP router address: %s"

.subsections_via_symbols
