	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x_snoop_init                   ## -- Begin function x_snoop_init
	.p2align	4, 0x90
_x_snoop_init:                          ## @x_snoop_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	cmpl	$0, 8(%rax)
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rbx
	movq	_DRV_BR_PORT_ATTR_HAIRPIN_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_hostapd_drv_br_port_set_attr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movq	_DRV_BR_PORT_ATTR_PROXYARP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hostapd_drv_br_port_set_attr
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
LBB0_8:
	movq	_DRV_BR_NET_PARAM_GARP_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hostapd_drv_br_set_net_param
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"x_snoop: ap_isolate must be enabled for x_snoop"

L_.str.1:                               ## @.str.1
	.asciz	"x_snoop: Bridge must be configured for x_snoop"

	.comm	_DRV_BR_PORT_ATTR_HAIRPIN_MODE,4,2 ## @DRV_BR_PORT_ATTR_HAIRPIN_MODE
L_.str.2:                               ## @.str.2
	.asciz	"x_snoop: Failed to enable hairpin_mode on the bridge port"

	.comm	_DRV_BR_PORT_ATTR_PROXYARP,4,2  ## @DRV_BR_PORT_ATTR_PROXYARP
L_.str.3:                               ## @.str.3
	.asciz	"x_snoop: Failed to enable proxyarp on the bridge port"

	.comm	_DRV_BR_NET_PARAM_GARP_ACCEPT,4,2 ## @DRV_BR_NET_PARAM_GARP_ACCEPT
L_.str.4:                               ## @.str.4
	.asciz	"x_snoop: Failed to enable accepting gratuitous ARP on the bridge"

	.comm	_DRV_BR_MULTICAST_SNOOPING,4,2  ## @DRV_BR_MULTICAST_SNOOPING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x_snoop_init                   ; -- Begin function x_snoop_init
	.p2align	2
_x_snoop_init:                          ; @x_snoop_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_4
; %bb.1:
	ldr	x8, [x8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh0:
	adrp	x8, _DRV_BR_PORT_ATTR_HAIRPIN_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_BR_PORT_ATTR_HAIRPIN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hostapd_drv_br_port_set_attr
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
Lloh9:
	adrp	x8, _DRV_BR_PORT_ATTR_PROXYARP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DRV_BR_PORT_ATTR_PROXYARP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostapd_drv_br_port_set_attr
	cbz	x0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _DRV_BR_NET_PARAM_GARP_ACCEPT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DRV_BR_NET_PARAM_GARP_ACCEPT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_hostapd_drv_br_set_net_param
	cbz	x0, LBB0_11
; %bb.9:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
Lloh19:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_wpa_printf
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"x_snoop: ap_isolate must be enabled for x_snoop"

l_.str.1:                               ; @.str.1
	.asciz	"x_snoop: Bridge must be configured for x_snoop"

	.comm	_DRV_BR_PORT_ATTR_HAIRPIN_MODE,4,2 ; @DRV_BR_PORT_ATTR_HAIRPIN_MODE
l_.str.2:                               ; @.str.2
	.asciz	"x_snoop: Failed to enable hairpin_mode on the bridge port"

	.comm	_DRV_BR_PORT_ATTR_PROXYARP,4,2  ; @DRV_BR_PORT_ATTR_PROXYARP
l_.str.3:                               ; @.str.3
	.asciz	"x_snoop: Failed to enable proxyarp on the bridge port"

	.comm	_DRV_BR_NET_PARAM_GARP_ACCEPT,4,2 ; @DRV_BR_NET_PARAM_GARP_ACCEPT
l_.str.4:                               ; @.str.4
	.asciz	"x_snoop: Failed to enable accepting gratuitous ARP on the bridge"

	.comm	_DRV_BR_MULTICAST_SNOOPING,4,2  ; @DRV_BR_MULTICAST_SNOOPING
.subsections_via_symbols
