	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdc_mbim_bind
_cdc_mbim_bind:                         ## @cdc_mbim_bind
	.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	%rsi, %r12
	movq	%rdi, %r14
	movq	_ENODEV@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	subl	(%r15), %edi
	callq	_ERR_PTR
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movq	%r12, %rdi
	callq	_cdc_ncm_select_altsetting
	movq	_CDC_NCM_COMM_ALTSETTING_MBIM@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_CDC_NCM_DATA_ALTSETTING_MBIM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_cdc_mbim_set_ctrlalt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.2:
	movl	(%r15), %ebx
LBB0_3:
	movl	(%r12), %edi
	callq	_cdc_ncm_comm_intf_is_mbim
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_cdc_ncm_bind_common
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	32(%r14), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movq	8(%r14), %r13
	testq	%r13, %r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	8(%rax), %r15d
	movl	(%rcx), %edi
	callq	_le16_to_cpu
	movq	_cdc_mbim_wdm_manage_power@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_usb_cdc_wdm_register
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_4:
	negl	%ebx
	jmp	LBB0_13
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cdc_ncm_unbind
	jmp	LBB0_13
LBB0_12:
	movq	$0, 8(%r14)
	movq	%rbx, 24(%r14)
	movq	_IFF_NOARP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	orl	%eax, 16(%rcx)
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	orl	%edx, (%rcx)
	movq	_cdc_mbim_netdev_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CDC_NCM_COMM_ALTSETTING_MBIM,8,3 ## @CDC_NCM_COMM_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_MBIM,4,2 ## @CDC_NCM_DATA_ALTSETTING_MBIM
	.comm	_cdc_mbim_wdm_manage_power,4,2  ## @cdc_mbim_wdm_manage_power
	.comm	_IFF_NOARP,4,2                  ## @IFF_NOARP
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_cdc_mbim_netdev_ops,4,2        ## @cdc_mbim_netdev_ops
	.no_dead_strip	_cdc_mbim_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdc_mbim_bind
_cdc_mbim_bind:                         ; @cdc_mbim_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _ENODEV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENODEV@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x21, x0
	ldr	w24, [x23]
	mov	x0, x20
	bl	_cdc_ncm_select_altsetting
Lloh2:
	adrp	x8, _CDC_NCM_COMM_ALTSETTING_MBIM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CDC_NCM_COMM_ALTSETTING_MBIM@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x2, x0
Lloh5:
	adrp	x8, _CDC_NCM_DATA_ALTSETTING_MBIM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDC_NCM_DATA_ALTSETTING_MBIM@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_cdc_mbim_set_ctrlalt
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	w24, [x23]
	b	LBB0_4
LBB0_3:
	mov	w22, #1
LBB0_4:
	ldr	w0, [x20]
	bl	_cdc_ncm_comm_intf_is_mbim
	cbz	w0, LBB0_11
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_cdc_ncm_bind_common
	cbnz	w0, LBB0_13
; %bb.6:
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
	cbz	x9, LBB0_9
; %bb.7:
	ldr	x22, [x19, #8]
	cbz	x22, LBB0_9
; %bb.8:
	ldr	w21, [x8, #8]
	ldr	w0, [x9]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh8:
	adrp	x8, _cdc_mbim_wdm_manage_power@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cdc_mbim_wdm_manage_power@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_usb_cdc_wdm_register
	mov	x21, x0
LBB0_9:
	mov	x0, x21
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cdc_ncm_unbind
	mov	x0, x21
	b	LBB0_13
LBB0_11:
	neg	w0, w24
	b	LBB0_13
LBB0_12:
	str	xzr, [x19, #8]
	str	x21, [x19, #24]
Lloh11:
	adrp	x8, _IFF_NOARP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFF_NOARP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, #16]
	orr	w8, w10, w8
Lloh14:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
	str	w8, [x9, #16]
Lloh16:
	ldr	w8, [x10]
Lloh17:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w8, w10, w8
	ldr	w10, [x9]
	orr	w8, w8, w10
	str	w8, [x9]
Lloh20:
	adrp	x8, _cdc_mbim_netdev_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cdc_mbim_netdev_ops@GOTPAGEOFF]
	str	x8, [x9, #8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CDC_NCM_COMM_ALTSETTING_MBIM,8,3 ; @CDC_NCM_COMM_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_MBIM,4,2 ; @CDC_NCM_DATA_ALTSETTING_MBIM
	.comm	_cdc_mbim_wdm_manage_power,4,2  ; @cdc_mbim_wdm_manage_power
	.comm	_IFF_NOARP,4,2                  ; @IFF_NOARP
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_cdc_mbim_netdev_ops,4,2        ; @cdc_mbim_netdev_ops
	.no_dead_strip	_cdc_mbim_bind
.subsections_via_symbols
