	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int51x1_set_multicast
_int51x1_set_multicast:                 ## @int51x1_set_multicast
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_PACKET_TYPE_DIRECTED@GOTPCREL(%rip), %rax
	movq	_PACKET_TYPE_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movl	(%rbx), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_PACKET_TYPE_PROMISCUOUS@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devinfo
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_PACKET_TYPE_ALL_MULTICAST@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	callq	_devdbg
LBB0_7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r12
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movq	_USB_TYPE_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_SET_ETHERNET_PACKET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movl	%eax, 24(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r12)
	movq	%rbx, %r13
	movl	(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_int51x1_async_cmd_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r12
	pushq	%r10
	callq	_usb_fill_control_urb
	addq	$16, %rsp
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	js	LBB0_11
## %bb.13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devwarn                        ## TAILCALL
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_devwarn
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_devwarn
	movq	%r12, %rdi
	callq	_kfree
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_free_urb                   ## TAILCALL
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET_TYPE_DIRECTED,4,2       ## @PACKET_TYPE_DIRECTED
	.comm	_PACKET_TYPE_BROADCAST,4,2      ## @PACKET_TYPE_BROADCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_PACKET_TYPE_PROMISCUOUS,4,2    ## @PACKET_TYPE_PROMISCUOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"promiscuous mode enabled"

	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_PACKET_TYPE_ALL_MULTICAST,4,2  ## @PACKET_TYPE_ALL_MULTICAST
L_.str.1:                               ## @.str.1
	.asciz	"receive all multicast enabled"

L_.str.2:                               ## @.str.2
	.asciz	"receive own packets only"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.3:                               ## @.str.3
	.asciz	"Error allocating URB"

L_.str.4:                               ## @.str.4
	.asciz	"Error allocating control msg"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ## @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
	.comm	_SET_ETHERNET_PACKET_FILTER,4,2 ## @SET_ETHERNET_PACKET_FILTER
	.comm	_int51x1_async_cmd_callback,4,2 ## @int51x1_async_cmd_callback
L_.str.5:                               ## @.str.5
	.asciz	"Error submitting control msg, sts=%d"

	.no_dead_strip	_int51x1_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int51x1_set_multicast
_int51x1_set_multicast:                 ; @int51x1_set_multicast
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _PACKET_TYPE_DIRECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET_TYPE_DIRECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PACKET_TYPE_BROADCAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PACKET_TYPE_BROADCAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
	ldr	w8, [x21]
Lloh6:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _PACKET_TYPE_PROMISCUOUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PACKET_TYPE_PROMISCUOUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w20, w8, w20
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devinfo
	b	LBB0_6
LBB0_2:
	ldr	x9, [x21, #8]
	cbnz	x9, LBB0_4
; %bb.3:
Lloh14:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_4:
Lloh17:
	adrp	x8, _PACKET_TYPE_ALL_MULTICAST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PACKET_TYPE_ALL_MULTICAST@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w20, w8, w20
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_devdbg
LBB0_6:
Lloh22:
	adrp	x23, _GFP_ATOMIC@GOTPAGE
Lloh23:
	ldr	x23, [x23, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	cbz	x0, LBB0_10
; %bb.7:
	mov	x21, x0
	ldr	w1, [x23]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x22, x0
Lloh24:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh26:
	adrp	x9, _USB_TYPE_CLASS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _USB_TYPE_CLASS@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
Lloh33:
	adrp	x8, _SET_ETHERNET_PACKET_FILTER@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SET_ETHERNET_PACKET_FILTER@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	mov	x0, x20
	bl	_cpu_to_le16
	str	w0, [x22, #24]
	stp	xzr, xzr, [x22, #8]
	ldr	w20, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x2, x0
Lloh36:
	adrp	x8, _int51x1_async_cmd_callback@GOTPAGE
Lloh37:
	ldr	x8, [x8, _int51x1_async_cmd_callback@GOTPAGEOFF]
Lloh38:
	ldr	w6, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	mov	x7, x22
	bl	_usb_fill_control_urb
	ldr	w1, [x23]
	mov	x0, x21
	bl	_usb_submit_urb
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #31, LBB0_12
; %bb.9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_devwarn
LBB0_11:
Lloh41:
	adrp	x1, l_.str.4@PAGE
Lloh42:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devwarn
	b	LBB0_13
LBB0_12:
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devwarn
	mov	x0, x22
	bl	_kfree
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_usb_free_urb
LBB0_14:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET_TYPE_DIRECTED,4,2       ; @PACKET_TYPE_DIRECTED
	.comm	_PACKET_TYPE_BROADCAST,4,2      ; @PACKET_TYPE_BROADCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_PACKET_TYPE_PROMISCUOUS,4,2    ; @PACKET_TYPE_PROMISCUOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"promiscuous mode enabled"

	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_PACKET_TYPE_ALL_MULTICAST,4,2  ; @PACKET_TYPE_ALL_MULTICAST
l_.str.1:                               ; @.str.1
	.asciz	"receive all multicast enabled"

l_.str.2:                               ; @.str.2
	.asciz	"receive own packets only"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.3:                               ; @.str.3
	.asciz	"Error allocating URB"

l_.str.4:                               ; @.str.4
	.asciz	"Error allocating control msg"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_CLASS,4,2             ; @USB_TYPE_CLASS
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
	.comm	_SET_ETHERNET_PACKET_FILTER,4,2 ; @SET_ETHERNET_PACKET_FILTER
	.comm	_int51x1_async_cmd_callback,4,2 ; @int51x1_async_cmd_callback
l_.str.5:                               ; @.str.5
	.asciz	"Error submitting control msg, sts=%d"

	.no_dead_strip	_int51x1_set_multicast
.subsections_via_symbols
