	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_create_net_device
_hso_create_net_device:                 ## @hso_create_net_device
	.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, %r14
	callq	_hso_create_device
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r12
	movq	_NET_NAME_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hso_net_init@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$64, %edi
	callq	_alloc_netdev
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, (%r12)
	movq	%r13, 56(%rax)
	movq	%r12, 48(%rax)
	movq	_USB_ENDPOINT_XFER_BULK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hso_get_ep
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r15), %esi
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hso_get_ep
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_SET_NETDEV_DEV
	movq	_hso_type@GOTPCREL(%rip), %rsi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_SET_NETDEV_DEVTYPE
	movq	_MUX_BULK_RX_BUF_COUNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_15
## %bb.9:
	xorl	%r13d, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	24(%rbx), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	24(%rbx), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_MUX_BULK_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_kzalloc
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r13,8)
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movq	_MUX_BULK_RX_BUF_COUNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_11
LBB0_15:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:
	movq	_MUX_BULK_TX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	%r12, %rdi
	callq	_add_net_device
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_register_netdev
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_13:
	movq	%r12, %rdi
	callq	_hso_free_net_device
LBB0_14:
	xorl	%r12d, %r12d
LBB0_20:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	%r12, %rdi
	callq	_hso_log_port
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_hso_create_rfkill
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hso%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ## @NET_NAME_UNKNOWN
	.comm	_hso_net_init,4,2               ## @hso_net_init
L_.str.1:                               ## @.str.1
	.asciz	"Unable to create ethernet device\n"

	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ## @USB_ENDPOINT_XFER_BULK
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
L_.str.2:                               ## @.str.2
	.asciz	"Can't find BULK IN endpoint\n"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
L_.str.3:                               ## @.str.3
	.asciz	"Can't find BULK OUT endpoint\n"

	.comm	_hso_type,4,2                   ## @hso_type
	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ## @MUX_BULK_RX_BUF_COUNT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MUX_BULK_RX_BUF_SIZE,4,2       ## @MUX_BULK_RX_BUF_SIZE
	.comm	_MUX_BULK_TX_BUF_SIZE,4,2       ## @MUX_BULK_TX_BUF_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register device\n"

	.no_dead_strip	_hso_create_net_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_create_net_device
_hso_create_net_device:                 ; @hso_create_net_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_hso_create_device
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x8, _NET_NAME_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_NAME_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _hso_net_init@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hso_net_init@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #64
	bl	_alloc_netdev
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	bl	_netdev_priv
	mov	x22, x0
	str	x0, [x19]
	stp	x19, x21, [x0, #48]
Lloh8:
	adrp	x23, _USB_ENDPOINT_XFER_BULK@GOTPAGE
Lloh9:
	ldr	x23, [x23, _USB_ENDPOINT_XFER_BULK@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hso_get_ep
	str	x0, [x22, #40]
	cbz	x0, LBB0_14
; %bb.3:
	ldr	w1, [x23]
Lloh13:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_hso_get_ep
	str	x0, [x22, #32]
	cbz	x0, LBB0_15
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_SET_NETDEV_DEV
Lloh16:
	adrp	x1, _hso_type@GOTPAGE
Lloh17:
	ldr	x1, [x1, _hso_type@GOTPAGEOFF]
	mov	x0, x21
	bl	_SET_NETDEV_DEVTYPE
Lloh18:
	adrp	x24, _MUX_BULK_RX_BUF_COUNT@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MUX_BULK_RX_BUF_COUNT@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh20:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh21:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x25, #0
Lloh22:
	adrp	x26, _MUX_BULK_RX_BUF_SIZE@GOTPAGE
Lloh23:
	ldr	x26, [x26, _MUX_BULK_RX_BUF_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	ldr	x8, [x22, #24]
	lsl	x27, x25, #3
	str	x0, [x8, x27]
	ldr	x8, [x22, #24]
	ldr	x8, [x8, x27]
	cbz	x8, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x26]
	ldr	w1, [x23]
	bl	_kzalloc
	ldr	x8, [x22, #16]
	str	x0, [x8, x27]
	ldr	x8, [x22, #16]
	ldr	x8, [x8, x27]
	cbz	x8, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_9:
	ldr	w1, [x23]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x22, #8]
	cbz	x0, LBB0_17
; %bb.10:
Lloh24:
	adrp	x8, _MUX_BULK_TX_BUF_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MUX_BULK_TX_BUF_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_kzalloc
	str	x0, [x22]
	cbz	x0, LBB0_17
; %bb.11:
	mov	x0, x19
	bl	_add_net_device
	mov	x0, x21
	bl	_register_netdev
	cbz	w0, LBB0_19
; %bb.12:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_15:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_16:
	mov	x0, x20
	bl	_dev_err
LBB0_17:
	mov	x0, x19
	bl	_hso_free_net_device
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	bl	_hso_log_port
	mov	x0, x19
	mov	x1, x20
	bl	_hso_create_rfkill
	b	LBB0_18
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hso%d"

	.comm	_NET_NAME_UNKNOWN,4,2           ; @NET_NAME_UNKNOWN
	.comm	_hso_net_init,4,2               ; @hso_net_init
l_.str.1:                               ; @.str.1
	.asciz	"Unable to create ethernet device\n"

	.comm	_USB_ENDPOINT_XFER_BULK,4,2     ; @USB_ENDPOINT_XFER_BULK
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
l_.str.2:                               ; @.str.2
	.asciz	"Can't find BULK IN endpoint\n"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
l_.str.3:                               ; @.str.3
	.asciz	"Can't find BULK OUT endpoint\n"

	.comm	_hso_type,4,2                   ; @hso_type
	.comm	_MUX_BULK_RX_BUF_COUNT,4,2      ; @MUX_BULK_RX_BUF_COUNT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MUX_BULK_RX_BUF_SIZE,4,2       ; @MUX_BULK_RX_BUF_SIZE
	.comm	_MUX_BULK_TX_BUF_SIZE,4,2       ; @MUX_BULK_TX_BUF_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register device\n"

	.no_dead_strip	_hso_create_net_device
.subsections_via_symbols
